It's my mistake - in my class primary key names key instead of id; On 20 апр, 19:35, Timofey Koolin <timo...@koolin.ru> wrote: > I tried it: > > List<DBObjectAccess>accessList = (List<DBObjectAccess>) > query.execute(user.getKey()); > ArrayList<Key> ids = new ArrayList<Key>(); > ... > query = pm.newQuery(DBPurchaseItem.class, > ":idCollection.contains(id)"); > List<DBPurchase> dPurchases = (List<DBPurchase>)query.execute(ids); > > and catch Exception: > org.datanucleus.store.appengine.query.DatastoreQuery > $UnsupportedDatastoreFeatureException > > Problem with query <SELECT FROM > ru.abc_software.shoplist.server.data.DBPurchaseItem > WHERE :idCollection.contains(id)>: Unsupported method <contains> while > parsing expression: > InvokeExpression{[ParameterExpression{idCollection}].contains(VariableExpre > ssion{id})} > > On 18 апр, 12:59, datanucleus <andy_jeffer...@yahoo.com> wrote: > > > > > Is exsists any other way to get objects by one query from program, if > > > > I don't sure in exsists every of it? > > > Errm, a JDOQL query perhaps > > > SELECT FROM mydomain.MyClass WHERE :idCollection.contains(id) > > > and pass in a collection containing the ids of the objects you need. > > > -- > > 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 > > athttp://groups.google.com/group/google-appengine-java?hl=en. > > -- > 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 > athttp://groups.google.com/group/google-appengine-java?hl=en.
-- 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.