Thank you for your answers. I have more than 30 criterion to search and this is only one of them!
I have to use criteria API. So if you now the right criterion to use, let me know.
I have used this code:
DetachedCriteria criteria = DetachedCriteria.forClass(Document.class);
Criterion tagCriterion = Restrictions.in("tags",new String[] {"TAG1"});
criteria.add( tagCriterion );
this code throws an exception:
could not execute query;
nested exception is org.hibernate.exception.SQLGrammarException: could not execute query
...
No value specified for parameter 1
Any help?