Re: [OJB-developers] Multiple fields for Criteria.orderBy()?
Brought to you by:
thma
From: Jakob B. <jbr...@ho...> - 2002-04-20 16:13:08
|
hi john, i just returned from my 2 weeks holidays. i've implemented 'groupBy' with an array of fields, so it will be easy for me to do so for 'orderBy' also. greetings jakob ----- Original Message ----- From: "John Freeborg" <jfr...@so...> To: "ojb" <obj...@li...> Sent: Tuesday, April 16, 2002 8:45 PM Subject: [OJB-developers] Multiple fields for Criteria.orderBy()? I just ran across wanting to perform a query where I have multiple fields listed for sorting, e.g.: SELECT areaCode, exchange, number, state, cost FROM phoneNumbers ORDER BY areaCode, exchange However, OJB 0.8.375 at the PersistenceBroker layer doesn't seem to allow this as Criteria.orderBy() and SqlGenerator.getOrderByClause() clearly want to deal with just a single field name. Anyone already working on this functionality? I was thinking of simplying adding an array like capability just like the Criteria.groupBy() which would adapt well to existing code. Regards, - John Freeborg _______________________________________________ Objectbridge-developers mailing list Obj...@li... https://lists.sourceforge.net/lists/listinfo/objectbridge-developers |