Playフレームワークでクエリを作成しようとしています。
select * from Candidate c where (:schools member of c.schools)
:schoolを1つの要素でListにバインドすると結果が返されますが、Listを複数の要素でバインドしても何も起こりません。
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()]
実は私は次のようなものが必要です
select * from candidate where schools in (x,x,x,x,x);
候補者と学校の関係はリンクされた表にあります。
複数の値をバインドする方法はありますか?