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?

At 
http://code.google.com/appengine/docs/java/datastore/transactions.html#Uses_For_Transactions,
 
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.

Reply via email to