শনিবার, ১৩ জুলাই, ২০১৩

Google App Engine + JDO + Datastore: OR operator on key based filter

I'm trying to get a list of instances from Datastore through a query that filters on an unowned relation on a field named "account". This query works (it returns some results):

SELECT FROM it.example.model.Entity WHERE (account == alias0) PARAMETERS com.google.appengine.api.datastore.Key alias0 ORDER BY creationDate desc RANGE 0,10 

this query doesn't (it returns an empty resultset):

SELECT FROM it.example.model.Entity WHERE (account == alias0 || account == alias1) PARAMETERS com.google.appengine.api.datastore.Key alias0, com.google.appengine.api.datastore.Key alias1 ORDER BY creationDate desc RANGE 0,10 

I cannot figure out why the OR relation does not work!

Thank you in advance for any help!

Source: http://stackoverflow.com/questions/17618525/google-app-engine-jdo-datastore-or-operator-on-key-based-filter

disco inferno b.i.g 1000 words ron white ron white buckyballs buckyballs

কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন