openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim McConnell <tim.mcco...@gmail.com>
Subject @PersistentCollection question
Date Sun, 22 Feb 2009 23:03:07 GMT
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

Mime
View raw message