afaicr, OpenJPA was maintaining ordering for elements for field that is declared (or even instantiated) as java.util.List. It has the capability of creating synthetic column to maintain element ordering even when @OrderBy or some other ordering spec is absent.
Tim McConnell wrote: > > Hi, I see a number of inconsistencies in the OpenJPA Junit testcases > concerning > the usage of the @PersistentCollection annotation on a java.util.List > variable > without the @OrderBy annotation. If I'm interpreting this scenario > correctly, > without the @OrderBy annotation there is no column in the database used > for > ordering when retrieving the List back into memory, and thus there can be > no > assumption made about that order in the testcase. This appears to be why > these > testcases work on some database and not others (e.g., works on Derby, > fails on > PostgreSQL). Am I interpreting it correctly ?? Or am I missing something > obvious ?? > > -- > Thanks, > Tim McConnell > > -- View this message in context: http://n2.nabble.com/%40PersistentCollection-question-tp2369556p2372385.html Sent from the OpenJPA Developers mailing list archive at Nabble.com.
