Hi: On Wed, 2010-03-31 at 22:51 -0700, Jeff Schnitzer wrote: > On Wed, Mar 31, 2010 at 6:41 PM, jd <[email protected]> wrote: > > > > On Apr 1, 3:14 am, Jeff Schnitzer <[email protected]> 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); >
This is the required pattern shown in Google IO scalable application for GAE. Duong BaTien DBGROUPS and BudhNet > 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 [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.
