Hi, Don't see the code snippet in the page that you quote: it seems that I get another version of the page when i use your url.
I would guess that your issue comes from the '-' interpreted as operand minus in the query. regards didier On Jan 5, 9:01 pm, decitrig <[email protected]> wrote: > In JDO, I'm trying to get all the ImportVendor entities that are children of > a specific ImportSession entity, which has a Set<ImportVendor>. I want to > page through them using query cursors. I've tried the following, based on > the docs: > > Query children = pm.newQuery(ImportedVendor.class); > children.setFilter("parent-pk == keyParam"); > children.declareParameters("Long keyParam"); > List<ImportedVendor> vendors = (List<ImportedVendor>) > children.execute(page.getSession().getId()); > > I get an UnspportedDatastoreOperatorException saying that AppEngine doesn't > support the "-" operator. > > What am I doing wrong? > > Athttp://code.google.com/appengine/docs/java/datastore/transactions.htm..., > there's this snippet: > query = pm.newQuery("select from Account " + > "where parent-pk == keyParam " + > "parameters Key keyParam"); > > Does this snippet actually work? I feel like I'm doing exactly the same > thing, and getting an exception. How do I specify a parent key in a query? > > -- > rwsims -- 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.
