I have an object in which a member is a list. When I try to swap the position of 2 elements in the list and save it, the list's original position is restored and my change discarded.
*Repro steps:* -With an object that has a list member. -Save the object in the database. -Swap 2 elements in the list. -Validate that the 2 elements are swapped. -Save the object in the database. -Validate the order of the elements in the list. --> The order is back to what it was when I first saved the object. *Repro steps 2:* -With an object that has a list member. -Save the object in the database. -Remove an element in the list. -Save the object. -Add the removed element at another position. -Validate that the element are now in the desired order. -Save the object in the database. -Validate the order of the elements in the list. --> The order is back to what it was when I first saved the object. *Question:* Are lists ordered in Orient? Or is the order random when the object is loaded? Should I use something else than a List to get order? Is there an annotation to add to tell Orient that the list order matters? Thanks. -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
