Hello
I have the following class
public class SecurityPermission {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

      @Persistent
      private String name;
}

I have the following query on SecurityPermission Entity to filter by keys.
        Query q = pm.newQuery("select key from " +
SecurityPermission.class.getName() + " where :p1.contains(key)");
        return (List<SecurityPermission>) q.execute(secPermKeyList);

I always get zero results if I supply the key's filter.  I remove the key's
filter, then I get all the entities.

How should the query be which involves a list of keys?

-Aswath

-- 
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