I have class like
public User{ Long id; Set roles; }
How do I query all User objects with the role of
User
You can use the query below
"from User as user where user.id in (select user.id from Role as role left join role.user as user where role.name = 'ADMIN')"