AND:

ofy.query(Obj.class).filter("name", "value").filter("email",
"value").list();

OR

ofy.query(Obj.class).filter("name in", Arrays.asList("name1",
"name2")).list();


I'm not sure about null/not null values on queries. Take a look at the
Partial Indexes section, it might be helpful for you situation.
http://code.google.com/p/objectify-appengine/wiki/IntroductionToObjectify#Partial_Indexes



On Mon, Jul 4, 2011 at 5:30 PM, hadf <[email protected]> wrote:

> Hello,
>
> Two questions :
>
> How can I filter a query with logical constraints (or, and) ? (where
> attribut = foo1 or attribut = foo2)
> And furthermore, how can I filter a query with null or non null
> values ? (where attribut is null / where attribut is not null)
>
> Thank you for your help :)
>
> --
> 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.
>
>


-- 
Bruno Fuster

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