Hibernate Team |
 |
Joined: Tue Aug 26, 2003 3:00 pm Posts: 1816 Location: Austin, TX
|
Hibernate appropriately sets the index value for list elements based on their position within the List (a List be definition is ordered). So when persisting the many side of the association, just make sure the List is sorted based upon your comparison requirements.
Then, when you hydrate the object graph to include this List, Hibernate will make sure the list elements are ordered by the index property.
So based on what you said, it seems like just an additional step prior to persisting the owner of the List association to make sure it is appropriately sorted.
|
|