You might want to try one of the javax.jdo.PersistenceManager.getObjectsById(...)
methods. I have not done this myself yet (although I do use getObjectById(...)), so I have not used an array or collection of OIDs. You might want to give this a try. Failing that, you might want to have as an instance of each ManyToManyLink not a key for Entity1 and Entity2 but instead a key for one entity and an array list of keys for the other entity type, so your original query will return an array list of keys. On Jun 8, 8:03 am, wilberforce <wilberfo...@arcor.de> wrote: > I have used the above mentioned solution for my many to many > relations. Now if I want to get all the entities of type Entity2 for > one entity of type Entity1 I query the ManyToManyLink with the key of > Entity1. As a result I get a list of keys for Entity2. Now how do I > query Entity2 to get all the instances for my list of keys in one go? > I ended up in querying Entity2 for every single key I have in my list > which is surely not acceptable. Any ideas? -- 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-j...@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.