The Collection are not restored in order

8 views
Skip to first unread message

Alberto

unread,
Mar 23, 2011, 6:35:19 AM3/23/11
to jo4neo
Hi,

I'm a beginner with jo4neo. Thats seems a very good nosql framework.

I create a java class that has a global variable of type Collection,
and persist the content with jo4neo. Everything works perfectly.
However, when I restart the instance on jo4neo and reaload the content
of the Collection, the order inside are not respected. Do you know a
solution to warn jo4neo to reload in a correct order the content of a
Collection?
I know that by default the order into a Collection haven't be
respected...but I need it!

Best,

Alberto

Alberto

unread,
Mar 29, 2011, 4:31:58 AM3/29/11
to jo4neo
Any idea?

thx

Taylor Cowan

unread,
Mar 29, 2011, 8:44:45 PM3/29/11
to Alberto, jo4neo
Sorry, its a graph. Mathematically speaking, the order of edges is
undefined...is the order defined in neo4j? If jo4neo is reversing the
order, that can be fixed. Had you considered attaching an index
property and using regular Java collection sorting?

Sent from my Windows Phone From: Alberto
Sent: Tuesday, March 29, 2011 3:31 AM
To: jo4neo
Subject: Re: The Collection are not restored in order

Reply all
Reply to author
Forward
0 new messages