dipaksavaliya / datanucleus-appengine

Automatically exported from code.google.com/p/datanucleus-appengine
0 stars 0 forks source link

JDOQL method chaining doesn't work #150

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.in a query filter put "fieldName.toLowerCase().startsWith('string')"

What is the expected output? What do you see instead?

The query dosen't work it throws exception for Un supported operation
-startsWith, yet startsWith is supported (and works fine) but not as
chained method

What version of the product are you using? On what operating system?

App Engine SDK 1.2.6 on XP

Please provide any additional information below.

Original issue reported on code.google.com by asafcar...@gmail.com on 30 Oct 2009 at 12:57

GoogleCodeExporter commented 8 years ago
The issue here is that toLowerCase() isn't related to method chaining.  The 
query
yields an exception because toLowerCase() isn't a supported operation.  The 
reason
this isn't a supported operation is that the datastore does not natively support
case-insensitive queries.  If you need to do case-insensitive queries there is 
an
approach described in my blog post here:

http://gae-java-persistence.blogspot.com/2009/11/case-insensitive-queries.html 

Original comment by max.r...@gmail.com on 28 Nov 2009 at 5:56

GoogleCodeExporter commented 8 years ago

Original comment by max.r...@gmail.com on 28 Nov 2009 at 5:56