On Wed, Mar 31, 2010 at 6:41 PM, jd <jdpatter...@gmail.com> wrote:
>
> On Apr 1, 3:14 am, Jeff Schnitzer <j...@infohazard.org> wrote:
>> What does Twig do when someone issues a type-less query?
>>
>> datastore.find().addFilter("color", EQUAL, "green"). returnResultsNow()
>
> The expression above is actually not possible to enter using the
> fluent commands.  You can only set a filter on the interface that is
> returned from calling FindCommand.type(Class<?>)
>
> It is also illegal according to the datastore docs for a Query with no
> kind:
>
> "Currently the only operations supported on a kind-less query are
> filter by __key__, ancestor, and order by __key__ ascending"

In other words, Twig cannot perform the simple query:

Iterable<Object> foo = ofy.query().ancestor(yourobject);

If you ever want to support something like this, you will need a
registration process.

If you ever want to support true polymorphic queries, you will need a
registration process.

Don't claim this short-sightedness as a feature.

Jeff

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