select * from User where friends in (200,300,400)

On Tue, Jul 19, 2011 at 3:46 PM, keyvez <key...@gmail.com> wrote:

> Hi,
>
> I need help with doing a query that uses a "contains" filter operation. The
> specific use case is that I have to find all users that are have me as a
> friend. The User class has a List<Long> of friends. In JPA I am able to do
> something like this "SELECT FROM User u WHERE u.friends.contains(:myId)".
> However, I haven't figured out how to do this with low-level datastore API.
> The Query.FilterOperation enum doesn't have a CONTAINS constant.
>
> I really want to use low-level datastore API to be able to use paging
> operations. I could do some sort of paging using JPA too, but I don't want
> to do that.
>
> Thanks,
> Gaurav
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine-java/-/6Ezy_-yx5JoJ.
> To post to this group, send email to
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> 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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to