:-(
As you can see here

http://code.google.com/intl/it-IT/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Query.html
Gae low level API don't support, query.setParameter(...)
there are some other solutions?
(tank's for the answer Tony)

On 25 Lug, 16:14, Tony Qiu <tony.qiu.sm...@gmail.com> wrote:
> Of course you can do it.
> there is a keyword "member of" in JP-QL. you can use the JP-QL below
> to do what you want.
>
> Query query = new Query("select o from user o where :tag member of
> o.tags");
> query.setParameter("tag","abc")
>
> On 7月25日, 下午8时28分,salvatore<salvatore.bela...@gmail.com> wrote:
>
> > Hi i've  problem
> > How a can query a data inside an ArrayList?
> > I use low level Datastore API
> > the data is structured like this
> > entity (kind 'User')
> > -String username
> > -String pass
> > -ArrayList<String> tags
> > I want to query all the user with a specific role
> > my code
> >          //...
> >         DatastoreService ds=
> > DatastoreServiceFactory.getDatastoreService();
> >         Query query = new Query("User");
> >         query.addFilter("tag????", Query.FilterOperator.EQUAL,
> > "admin");   // <<<<<-----HERE
> >         PreparedQuery pq = ds.prepare(query);
> >         Iterable<Entity> it = pq.asIterable();
> >          //...

-- 
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.

Reply via email to