It looks to me like you have the query reversed. Page contains a list of
aliases, and you're looking to filter on Page entities to try to match all
Page entities that have the target alias in the list. That is, say a page
has the aliases "red" and "blue" - you'd want the code to return that page
if you executed a query on "red". Here's the code you want:

   query = pm.newQuery(Page.class);
   query.setFilter("aliases == alias");
   query.declareVariables("String alias");
   List<Page> results = (List<Page>)query.execute("red");

Filtering for collection inclusion is just an equality filter. To read more
about this, check this out:

http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html

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

Reply via email to