2013-07-20 168 views
0

刚接触java时,我使用org.plasma.query.dsl.domainroot.orderby(dataproperty) 但它没有给我正确的答案。 有关示例org.plasma.query.OrderBy not working

Qxxx xxx = new Qxxx.newquery(); 
xxx.select(xxx.wildcard()); 
xxx.orderby(xxx.no_of_hates()); //orderby no_of_hates(datafields) 

此查询通过no_of_hates获得在有序XXX,也试过这种

xxx.orderby(xxx.no_of_hates().desc()); 

但给人错误的答案。

回答