I have class like
public User{ Long id; Set roles; }
How do I query all User objects with the role of
User
I've found solution:
"from User as user where 'ADMIN' in elements(user.roles)";
Somehow hql function value() have to help with this, you can also experiment with it, but that hql query above works for me.