I know how to use a parameter in QueryDSL queries for single values like the following:
QFilmEntity fe = QFilmEntity.filmEntity;
Param<String> param = new Param<>(String.class,"rating");
JPAQuery query = new JPAQuery().from(fe).where(fe.rating.eq(param)).distinct();
I can set the parameter like this:
query.set(param,"G");
I now want to use a parameter for a collection of values like the following:
QFilmEntity fe = QFilmEntity.filmEntity;
JPAQuery query = new JPAQuery().from(fe).where(fe.rating.in([Some Collection Parameter]));
It looks like 'in' will accept a CollectionExpression but so far I have not figured out how to construct one so it is interpreted as a parameter.
Does QueryDSL support this feature? Any help on how to achieve this would be appreciated.