openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <>
Subject Re: @PersistentCollection question
Date Mon, 23 Feb 2009 14:41:08 GMT

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:
Sent from the OpenJPA Developers mailing list archive at

View raw message