[appengine-java] Re: Problem getting list of JDO objects with List of of keys

2010-05-24 Thread timwhunt
This article from the GAE Java Persistence Blog, Executing Batch Gets, might help: http://gae-java-persistence.blogspot.com/2009/10/executing-batch-gets.html That blog seems like the missing manual for using the datastore with Java. I've found many of very useful tips and examples in it, but I

[appengine-java] Re: Problem getting list of JDO objects with List of of keys

2010-05-24 Thread tempy
I've had trouble with the .getById methods, so I do it like this, which seems to work reliably: query = pm.newQuery(MyClass.class); query.setFilter(_ID == :keyList); //_ID is the PK ListMyClass results = (ListMyClass)query.execute(Keys); // Keys