Re: [appengine-java] How to use Key as filter

2010-05-31 Thread Chau Huynh
Check this out http://gae-java-persistence.blogspot.com/2010/01/querying-with-key-parameters.html Key is special datatype and you will need to use help API by Google to re-create the key before passing it in. On Sun, May 30, 2010 at 9:47 PM, Dormand wrote: > Hi, I have a persistance class. now i

[appengine-java] How to use Key as filter

2010-05-31 Thread Dormand
Hi, I have a persistance class. now i want to query with its key and other one field. I have tried in this waya Query qry2 = pm.newQuery(File.class); qry2.setFilter("key == keyParam"); qry2.setFilter("initialVersion <= version"); qry2.declareParameters("com.google.appengine.api.datastore.Key keyPa