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
Code:
Class Page {
List aliases;
...
query = pm.newQuery(Page.class);
query.setFilter(":aliases.contains(alias)");
query.declareVariables("String alias");
List results = (List)query.execute(alias);
...
}
I want to select Page objects where the aliases property con