Hi,

Following is a snippet of JDO class:


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class _Contact{

    @Persistent(primaryKey = "true")
    private String EmailID;

    @Persistent
    private String Name;

    @Persistent
    private List<String> Groups;



I am trying to display entities with pagination. Every thing is working fine
except for following query:


Query query = pm.newQuery(_Contact.class);
query.setOrdering("EmailID desc");
query.setRange("0,10");

String filter = "EmailID < '" + *cursor *+ "'";

if(groups != null)
           for(String group : *groups*){
                filter += " && Groups.contains(\"" + group + "\")";
            }

query.setFilter(filter);


For this query, some entities are not getting fetched which actually fall in
the selection criteria although it works fine for *EmailID > cursor &&
Groups.contains(group) ORDER BY EmailID asc* OR if there is no *
Groups.contains* filter.

One more thing I figured out that if I use* Groups.contains *filter
with *EmailID
> cursor*, entity *EmailID == cursor* is also being returned.


Any idea where I am wrong or is it a known bug?

Thanks.

--

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.


Reply via email to