[appengine-java] Re: Is there any way that key name/id can be used in JPQL/JDQL?

2010-05-06 Thread Kenyth
Thanks for the reply! I use KeyFactory extensively in my code and I've read almost all the blog posts on that blog. It's not a question of yes or no but just for a better solution:-) On May 6, 10:44 pm, Chau Huynh wrote: > Have you tried with > KeyFactory?http://code.google.com/appengine/docs/

Re: [appengine-java] Re: Is there any way that key name/id can be used in JPQL/JDQL?

2010-05-06 Thread Chau Huynh
Have you tried with KeyFactory? http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/KeyFactory.html In this post Max Ross of Google guided how to query with Key, may it help you.. http://gae-java-persistence.blogspot.com/2010/01/querying-with-key-parameters.html

[appengine-java] Re: Is there any way that key name/id can be used in JPQL/JDQL?

2010-05-06 Thread Kenyth
I was partly wrong in the previous post, and finding what was wrong also leads me to the answer to the question asked in the previous post. Even using the encoded String key in conjunction with annotated "gae.pk-name" or "gae.pk-id", it is still impossible to make a query with only the key name/id

[appengine-java] Re: Is there any way that key name/id can be used in JPQL/JDQL?

2010-05-06 Thread datanucleus
SELECT FROM mydomain.MyClass where myPkField = :val -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-