[appengine-java] Re: JDO queries on owned/unowned one-to-many relationships

2009-09-04 Thread leszek
You can run queries on keys: http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Queries_on_Keys The first part of child key (ContactInfo.class) contains parent (Employee) key. Employee e; query = pm.newQuery(ContactInfo.class); query.setFilter(key ==

[appengine-java] Re: JDO queries on owned/unowned one-to-many relationships

2009-09-04 Thread leszek
query.setFilter(key keyParam and key keyParam1); --~--~-~--~~~---~--~~ 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

[appengine-java] Re: JDO queries on owned/unowned one-to-many relationships

2009-09-04 Thread Jason (Google)
Owned relationships uses entity groups behind-the-scenes: http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html#Entity_Groups_Ancestors_and_Paths An entity group is basically a hierarchy of entities, with one entity as the root and all other entities below this root.