Re: abator: dynamic order by

2006-08-11 Thread Thomas Karl Schwaerzler
thnx. think, thats what i was looking for... greets t. On Fri, 11 Aug 2006, Jeff Butler wrote: With Abator generated methods you could use the selectByExample method, passing in an empty example parameter, to do the select all. Then you can also pass the order by clause. Like this: OdmCus

Re: abator: dynamic order by

2006-08-11 Thread Jeff Butler
With Abator generated methods you could use the selectByExample method, passing in an empty example parameter, to do the select all.  Then you can also pass the order by clause.  Like this:   OdmCustomerExample example = new OdmCustomerExample(); List answer = dao.selectByExample(example, "FIRST_NA

Re: abator: dynamic order by

2006-08-11 Thread Gwyn Evans
I think you're almost there, but note that you need "$value$" rather than "#value#" there. Maybe compare with the code here (http://www.wicket-wiki.org.uk/wiki/index.php/IBATIS#Oracle_paging) and see the 'notes' at the end of the section /Gwyn On 11/08/06, Thomas Karl Schwaerzler <[EMAIL PROTEC

abator: dynamic order by

2006-08-11 Thread Thomas Karl Schwaerzler
hello, i'm looking for something that allows me to use a dynamic order by value in abator. the method could look something like this: List getCustomersOrdered(Long groupId, String orderColumn, String ascDesc) ..where orderColumn is a column name and ascDesc is either 'ASC' or 'DESC' in