I have changed to
query.setFilter("tags.contains('" + aTagValue + "')");
and it still works!
It took me a while to get into this concept, that although it's a
filter clause it's written in java object style and not SQL style, I
mean:
NOT tags contains tagParam BUT tags.contains(tagParam) as you wrote
Thanks
On Jan 4, 12:58 pm, datanucleus <[email protected]> wrote:
> > I have tried the simplest approach and it works:
> > query.setFilter("tags == '" + aTagValue + "' ");
>
> It may work, but is actually invalid JDOQL and you should always use
> valid JDOQL syntax like
> tags.contains(tagParam)
> and your current query would fail in future releases.
--
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.