select from comments.Comment
where ownerType == 'looks.Look'
AND ownerName == 'Yakuza' order by date
I get exception:
Portion of expression could not be parsed: AND ownerName == 'Yakuza'
While this query works nice:
select from comments.Comment
where ownerType == 'looks.Look'
order by date
And this too:
select from comments.Comment
where ownerName == 'Yakuza' order by date
The full code:
PersistenceManager pm = PMF.get().getPersistenceManager();
String query = "... query goes here ...";
List<Comment> comments = null;
try {
comments = (List<Comment>) pm.newQuery(query).execute();
}
...
Replace "AND" with "&&"