cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: New features in Select API
Date Wed, 08 Apr 2015 15:23:13 GMT

> On Apr 8, 2015, at 4:24 AM, Aristedes Maniatis <ari@maniatis.org> wrote:
> 
>> 
>> // Add ordering
>> 
>> query.addOrdering(new Ordering(Article.PUBLISHED.getName()));
> 
> Can we have a shorter syntax for this as well (for a typical use case):
> 
> query.addOrdering(Article.PUBLISHED);

Such syntax is available already:

query.addOrdering(Article.PUBLISHED.asc());

Savva's ordering example is a "legacy" one.

Andrus

Mime
View raw message