JDO Query Parsing for field names starting with "new"
I have a persistent class NewsClass with persistent field newsSource.
// PERSISTENT
class NewsDTO {
// Persistent
String newsSource;
// Other persistent fields
}
Now to query this entity
Query q = pm.newQuery(NewsClass.class);
q.setFilter("newsSource=='http://somerandomurl'");
It turns out that JDO doesn't look for the newsSource field but rather
tries an instantiation like new sSource(). I also tried things like
q.setFileter("\"newsSource\"=='http://reandomurl'"); as a workaround but
didn't work either.
There's about 1GB of data already (on the AppEngine datastore which uses a
soft schema) so renaming the field doesn't really look like a good idea.
Please how do I make this query work?
No comments:
Post a Comment