[appengine-java] Re: Unsupported method while parsing expression:

2012-03-14 Thread James M
Sorry, it was 2 years ago. I added wrong :) James On Wednesday, February 3, 2010 9:40:27 AM UTC-8, Ftaylor wrote: > > There actually seems to be a mistake in the documentation: > > > // Give me all Employees with lastName equal to Smith or Jones > Query query = pm.newQuery(Employee.class, >

[appengine-java] Re: Unsupported method while parsing expression:

2012-03-14 Thread James M
Hey Google, If that really is a mistake in the documentation that Ftaylor pointed out, can you take the 5 minutes and update it? That 5 minutes sure would pay lots of dividends on the other side in terms of saved minutes trying to figure out why things aren't working. The documentation is pos

[appengine-java] Re: Unsupported method while parsing expression:

2010-02-03 Thread Ftaylor
Wow that mistake in the documentation wasted days of my time. Thankyou datanucleus. On Feb 3, 5:40 pm, Ftaylor wrote: > There actually seems to be a mistake in the documentation: > > > // Give me all Employees with lastName equal to Smith or Jones > >     Query query = pm.newQuery(Employee.class,

[appengine-java] Re: Unsupported method while parsing expression:

2010-02-03 Thread Ftaylor
There actually seems to be a mistake in the documentation: > // Give me all Employees with lastName equal to Smith or Jones Query query = pm.newQuery(Employee.class, ":p.contains(lastName)"); query.execute(Arrays.asList("Smith", "Jones")); Surely it should be

Re: [appengine-java] Re: Unsupported method while parsing expression:

2010-02-02 Thread Ikai L (Google)
Oy, this is what I get for not running code before posting it. Good looking out. On Tue, Feb 2, 2010 at 1:06 AM, datanucleus wrote: > >query.setFilter("aliases == alias"); > > That is invalid JDOQL syntax; the spec is the spec and JDOQL uses Java > syntax. > If you have a collection field the

[appengine-java] Re: Unsupported method while parsing expression:

2010-02-02 Thread datanucleus
>    query.setFilter("aliases == alias"); That is invalid JDOQL syntax; the spec is the spec and JDOQL uses Java syntax. If you have a collection field then the filter should be aliases.contains(:alias) The poster put the colon in front of a field name (wrong), and declared a parameter as a vari