Enhancement 171 : ENHANCEMENT: Add ability to chain Order By clause for a Query
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.2.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
31/10/2009
Updated 
31/10/2009
Type 
Enhancement
 
Attachments 
No attachments

... I'm missing the option to chain the order by statements.

Something like:

query.addOrderBy("someProp");
query.addOrderBy("otherProp, OrderBy.DESCENDING);

 
Rob 31 Oct 04:33
This safes time looking up the right syntax...

... or more like:

Ebean.find(Person.class).order().asc("name");

... but I am missing the option to chain the order by statements, now I have to append them myself and set the long string. It would be nice to be able to chaing most properties of a query. This safes time looking up the right syntax...

Rob 01 Nov 09:03
Added to HEAD

I have added this to HEAD.

In addition there is now a OrderBy object which represents the order by clause.

woResponse

Upload a file