Update:
Digging into the source code for
org.datanucleus.store.appengine.query.DatastoreQuery.getSortProperty
allowed me to figure out what was causing the problem. In the follow code,
the emboldened on is the one that threw the exception, it will be noticed
that I have ordered by 'keyx' which is my parameter name and NOT the name or
my attribute in the class JDOTrack, changing it to a proper attribute name
works as expected. NB This was not a problem with Datanucleus and the rdbms
persistence manager there.
Query q = pm.newQuery(JDOTrack.class);
q.setFilter("key == keyx ");
q.declareParameters("String keyx");
q.setUnique(true);
* q.setOrdering("keyx ascending");*
res = (JDOTrack) q.execute(key);
--
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.