This looks like a question for the community on StackOverflow.

On 22 May, 19:15, Bharath Kumaar <bharathkumar.manoha...@a-cti.com>
wrote:
> Hello everyone,  i am querying a table with two filters and after that i am
> adding set ordering for the another field. Everything seems to be correct
> but its not fetching the ordered list.
>
> The code template is :
>
> Query query = pm.newQuery("select from " + POJO.class.getName() + " where A
> == '"+A+"' && B == 'B'");
>
> query.setOrdering("date asc");
>
> query.setRange(Long.parseLong(offset), Long.parseLong(offset) + 20);
>
>    List<POJO> result = (List< POJO >) query.execute();
>
> i could see the datastore index for this query in the xml file still i dont
> know why it is not fetching ordered list..

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to