I have tried the simplest approach and it works:
query.setFilter("tags == '" + aTagValue + "' ");
On Jan 3, 5:05 pm, Itzik Yatom <[email protected]> wrote:
> I consider to use the built in Category class for implementing tags
> for one of my datastore classes. Something like:
> .
> import com.google.appengine.api.datastore.Category;
> .
> @Persistent
> protectedList<Category> tags;
> .
> My question is how do I filter objects by a tag value, for example I
> want to get all objects that have a 'pollution' tag.
> Actually, there are here two questions:
> 1. How to query by fields that are lists (or collections)?
> 2. How to use Category class in queries ?
>
> 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].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.