I\'m a newbie to Hibernate.
I have an Item POJO which contains a Set consisting of labels. The labels are contained on anothe
Based on the comments on the bug HHH-5209, which is about the same exception being thrown from a similar JPQL query, i believe the correct form here is:
select item from Item item where 'hello' in elements(item.labels)
The elements function there is the key. This is perhaps slightly simpler than Yuri's suggestion, because it avoids the explicit join.