Re: More than one ordering for in memory sort

2007-12-10 Thread Kevin Menard
On 12/10/07 12:31 PM, "Andrus Adamchik" <[EMAIL PROTECTED]> wrote: > You should use a static Ordering method that takes a list of orderings: > > Ordering.orderList(List objects, List> > orderings) > > Andrus Ahh, yes. I forgot about that one. I was actually just playing with it last week

Re: Additional class dependency of a CayenneDataObject class at runtime

2007-12-10 Thread Andrus Adamchik
I know next to nothing about osgi environment, but Cayenne does not create any runtime classes. What you have at compile time, you get at runtime. Nothing more. (unless you are playing with JPA, which you didn't mention). Andrus On Dec 10, 2007, at 6:46 PM, james yong wrote: Hi, I have

Re: More than one ordering for in memory sort

2007-12-10 Thread Andrus Adamchik
You should use a static Ordering method that takes a list of orderings: Ordering.orderList(List objects, List> orderings) Andrus On Dec 10, 2007, at 7:21 PM, Kevin Menard wrote: I'm not sure how you'd go about it this way, but you can add any number of Orderings to a SelectQuery.

Re: jpa provider

2007-12-10 Thread Gilberto C Andrade
> So is it the same error as before or something else? > > Andrus Yes, it is the same one! >>> --- >>> T E S T S >>> --- >>> Running com.gilbertoca.gfi.service.PessoaServiceTest >>> Dec 10, 2

Re: More than one ordering for in memory sort

2007-12-10 Thread Kevin Menard
I'm not sure how you'd go about it this way, but you can add any number of Orderings to a SelectQuery. If the objects are already cached, you shouldn't really see a performance hit. I've not tried it myself, however. -- Kevin On 12/10/07 11:53 AM, "Alexander Lamb (dev)" <[EMAIL PROTECTED]> wro

More than one ordering for in memory sort

2007-12-10 Thread Alexander Lamb (dev)
Hello List, I am sorting a to-many list in memory: List re = getEnrollments(); Ordering ordering = new Ordering("year", true); ordering.orderList(re); return re; But I would like to add a second sort criteria (month after year) I found there were expressions, but no example for

Additional class dependency of a CayenneDataObject class at runtime

2007-12-10 Thread james yong
Hi, I have a subclass of an CayenneDataObject class. However, when it is instantiated in an osgi environment, an java.lang.NoClassDefFoundError exception is thrown. Does Cayenne creates any new class at runtime that is used by the CayenneDataObject instance? The reason I need to know this, is b

Re: jpa provider

2007-12-10 Thread Andrus Adamchik
So is it the same error as before or something else? Andrus On Dec 10, 2007, at 4:33 PM, Gilberto C Andrade wrote: Andrus Adamchik wrote: maven-specific advice - configuration we are using from our own integration tests: org.apache.maven.plugins maven-surefire-plugin

Re: jpa provider

2007-12-10 Thread Gilberto C Andrade
Andrus Adamchik wrote: > maven-specific advice - configuration we are using from our own > integration tests: > > > org.apache.maven.plugins > maven-surefire-plugin > > > once > > > -javaagent:${settings.localRepository}/org/apache/cayenne/cayenne-ag