same problem here...

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.

This proves that indexes are not working properly, i am stuck in the middle
of development because of this bug and no body seems to listening to this
problem.

--

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


Reply via email to