Hi Andy,
>> query.setFilter("key == :keyList");
>> List<Master> list = (List<Master>) query.execute(keyList);
>
> I'd like to know if that works with GAE/J, because it is illegal JDOQL
> syntax and would be a bug. JDOQL is supposed to follow Java syntax,
> and you simply cannot do
> Key == List<Key>
> and get success in Java.
You are right, but unfortunately the above query works on GAE/J.
I should have recommended the following query:
List<Key> keys = ...;
List<Object> ids = new ArrayList<Object>();
for (Key key : keys) {
ids.add(pm.newObjectIdInstance(Master.class, key));
}
List<Master> list = (List<Master>) pm.getObjectsById(ids);
Thanks,
Yasuo Higa
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---