If you're searching by key, why not use KeyFactory and get the object
director by key instead? It'll run faster.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Sun, Oct 31, 2010 at 8:38 PM, Andy <[email protected]> wrote:

> I created unowned key in child objects for query.  When I try to query by
> the key, I tried the following because I read the GQL statement:
>
> "where product = KEY('"+KeyFactory.keyToString(product)+"')");
>
>
> But it complains:
>
>
> SEVERE: Portion of expression could not be parsed: product =
> KEY('aghiYXRoY2FydHINCxIHUHJvZHVjdBgMDA')
>
>
> Please anybody?
>
>
> Thanks
>
>  --
> 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]<google-appengine-java%[email protected]>
> .
> 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 [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