Closed GoogleCodeExporter closed 8 years ago
Dom,
I've constructed my own version of your example and it's working for me. I
noticed
in your logs that your query looks like this:
Select demand(s) with: SELECT id FROM class twetailer.dto.Demand WHERE ownerKey
== attributeValue PARAMETERS Long attributeValue ORDER BY creationDate desc
RANGE 0,1
Note that you have "class twetailer.dto.Demand" as opposed to just
"tweatiler.dto.Demand" This is the string from of Demand.class, which is not
what
you want. I suspect if you change Demand.class to Demand.class.getName() this
will
work fine. Can you please give that a try?
Thanks,
Max
Original comment by max.r...@gmail.com
on 6 Jan 2010 at 5:39
My bad! I should have catched the typo myself, especially because it's correctly
documented on
http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html. It
appears I thought the usual Query creation was just updated with a prefix and I
did
not see the explicit call to getName()!!!
Thanks for the clarification.
A+, Dom
Original comment by dominiqu...@gmail.com
on 7 Jan 2010 at 6:08
Original comment by max.r...@gmail.com
on 7 Jan 2010 at 6:00
Original issue reported on code.google.com by
dominiqu...@gmail.com
on 5 Jan 2010 at 5:41Attachments: