I am trying to build query in Play framework, I have
select * from Candidate c where (:schools member of c.schools)
After I bind :school with List with one element it returns result, but if I bind List with multiple elements nothing happens.
Caused by: org.hibernate.hql.ast.QuerySyntaxException: unexpected AST node: {vector} [select c from models.Candidate c where (:schools0_, :schools1_ member of c.schools) group by c.id order by RAND()]
Actually I need something like
select * from candidate where schools in (x,x,x,x,x);
Relation between candidate and school is in linked table.
Is there any way to bind multiple values?