-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
loadAll(Collection<T> objects, int depth); does not maintain input collection's sequence #196
Comments
<T> Collection<T> loadAll(Collection<T> objects, int depth);
does not maintain input collection's sequence
Hi Jonation, List order is arbitrary unless you do a query which specifies order. If you try doing a simple query in Neo4j itself you will not necessarily get a list back in a repeatable order. You can get around this by doing a custom query and specifying an order by clause. This way you should always get the list back the way you want. Let me know how you get on. |
@mangrish this applies when a collection of objects is supplied. If the collection preserves ordering, the OGM can do so too. But all bets are off if the collection supplied does not preserve insert order. |
Hi Mark, Luanne said it. Basically in my case: I did a query returning whatever is Jonathan. On Wed, Aug 3, 2016 at 3:03 AM, Luanne Misquitta notifications@github.com
|
Hey there, |
when calling
<T> Collection<T> loadAll(Collection<T> objects, int depth);
, given a collection input, the resulted collection does not maintain the original sequence.The text was updated successfully, but these errors were encountered: