following is my JDO class:
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class _Contact{
@Persistent(primaryKey = "true")
private String EmailID;
@Persistent
private String Name;
@Persistent
private List<String> Groups;
}
following is my test case:
PersistenceManager pm = pmf.getPersistenceManager();
Query query = pm.newQuery(_Contact.class);
query.setOrdering("EmailID");
query.setFilter("Groups.contains(\"mygroup\")");
int i = 1;
for(_Contact cont : (List<_Contact>) query.execute()){
resp.getWriter().print(i++ + " " + cont.getID() + "<br>");
}
pm.close();
above code printed 23 contacts and when I replaced *
query.setOrdering("EmailID"); *by *query.setOrdering("EmailID desc"); *it
printed 18 contacts only. Is it a bug or I am missing something?
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.