App Engine's datastore is markedly different from a traditional RDBMS and queries for does not support the full range of query filters that other databases do. Even though JDOQL technically supports endsWith, App Engine's implementation does not because of the way its datastore works. It does support startsWith, however.
For more information on how the datastore works at a lower level, please see the following presentations: http://sites.google.com/site/io/under-the-covers-of-the-google-app-engine-datastore http://code.google.com/events/io/2009/sessions/BuildingScalableComplexApps.html - Jason On Mon, Jan 11, 2010 at 12:30 AM, Steph <[email protected]> wrote: > When I make a query of type: > > SELECT FROM Business WHERE url.endsWith('google.com') > > I get the following exception: > > [java] org.datanucleus.store.appengine.query.DatastoreQuery > $UnsupportedData > storeFeatureException: Problem with query <SELECT FROM Business WHERE > url.endsWith('google.com')>: Unsupported method <endsWith> while pa > rsing expression: InvokeExpression{[PrimaryExpression{url}].endsWith > (Literal{google.com})} > > > Is endsWith(String) not supported? > > Seemed like the documentation was saying otherwise: > http://www.datanucleus.org/products/accessplatform/jdo/jdoql_methods.html > > Am I missing something? > > 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.
