Hello

"App Engine datastore does not support operator  - ."
...this is what I get when trying to mimic the following query example
from Uses
For 
Transactions<http://code.google.com/appengine/docs/java/datastore/transactions.html#Uses_For_Transactions>
.

           query = pm.newQuery("select from Account " +
                                "where *parent-pk* == keyParam " +
                                "parameters Key keyParam");


I'm trying to obtain entity parent using  its key which I keep in a property
of that child entity. (Assuming it is not possible to obtain parent key out
of child key.)

    @Persistent
    @Extension(vendorName="datanucleus", key="gae.*parent-pk*", value="true")
    private Key customerKey;


Why does the example query above use "parent-pk" instead of "customerKey"?
Is it a mistake or should the query/operator actually work somehow? And why
does the customerKey need to be defined with the @Extension annotation?

Regards
  J. Záruba

-- 
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.

Reply via email to