Max, thanks, this works pretty well for me :-)

On Sep 9, 3:14 am, Max Ross <maxr+appeng...@google.com> wrote:
> You can do the equivalent of a low level batch get with jdoql:
>
>     Query q = pm.newQuery("select from " + Flight.class.getName() + " where
> id == :ids");
>     @SuppressWarnings("unchecked")
>     List<Flight> flights = (List<Flight>) q.execute(listOfKeys);
>
> Hope this helps,
> Max
>
> 2009/9/6 Zhi Le Zou <zouzh...@gmail.com>
>
>
>
> > Hi,
> > I have a class Foo defined as below:
>
> >                               public class Foo{
>
> >                                           @PrimaryKey
> >                                           @Persistent(valueStrategy=
> > IdGeneratorStrategy.IDENTITY)
> >                                           private String fooID;
>
> >                                            ...............................
>
> >                               }
>
> > Now, I have a list of IDs of the Foo entities, is it possible to retrieve
> > the corresponding collection of Foo entities in a single query? I found the
> > in the documentation, it says logic "or" and "IN" are not supported in the
> > java version app engine sdk, although it is supported in the python version.
>
> > Thanks in advance :-)
>
> > --
> > Best Regards
> > Robin (邹志乐)
--~--~---------~--~----~------------~-------~--~----~
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-java@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to