Sorry...i have posted multiple times same content. My mistake. On 26 Lug, 17:08, salvatore <[email protected]> wrote: > :-( > As you can see here > > http://code.google.com/intl/it-IT/appengine/docs/java/javadoc/com/goo... > 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 <[email protected]> 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<[email protected]> 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 [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.
