On Thu, Jan 6, 2011 at 12:32 AM, Didier Durand <durand.did...@gmail.com> wrote:
> 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.

Looks like the docs changed between then and now, probably coincident
with the 1.4.1 release.

> I would guess that your issue comes from the '-' interpreted as
> operand minus in the query.

I gathered as much from the exception, yes. Glancing through the new
docs, it looks like the question is moot, since the snippet I quoted
no longer appears. For now I'm explicitly storing the parent's id in
the child, which seems to work just fine. Though it looks like a
"mappedBy" annotation would also do the trick.

--
rwsims

> regards
> didier
>
> On Jan 5, 9:01 pm, decitrig <rws...@gmail.com> 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 google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to