I have what seems like a basic sql question. I have a many to many relationship through a junction table. Say Employees to Roles through EmployeeRoles
Table: EMPLOYEES
Columns: id, name, etc.
Table: ROLES
Columns: id, name
Table: EMPLOYEES_ROLES
Columns: employee_id, role_id
How do I query for an employee who has two roles, say Admin and Supervisor? Bonus points in Hibernate.