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(VariableExpression{id})}
On 18 апр, 12:59, datanucleus <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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 [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.