Thanks Yasuo, it works!  Do you know how I can set filter for multiple
keys? that is, how I can do something like:
query.setFilter("detailKeySet.contains(:keyList)");

On Oct 21, 10:36 pm, Yasuo Higa <[email protected]> wrote:
> Hi king,
>
> On Thu, Oct 22, 2009 at 6:19 AM, king <[email protected]> wrote:
>
> > Can anyone help me to figure out how to write a query to do contains
> > (Key) in JDO?  Here is my scriplet:
> > select from " + master.class.getName()
> > + " where detailKeySet.contains('" + detail.getKey().toString() + "')"
>
> PersistenceManager pm = PMF.get().getPersistenceManager();
> Query query = pm.newQuery(Master.class);
> query.setFilter("detailKeySet.contains(:key)");
> List<Master> list = (List<Master>) query.execute(detail.getKey());
>
> Hope this helps,
>
> Yasuo Higa
--~--~---------~--~----~------------~-------~--~----~
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