Given the following HQL Query:
FROM Foo WHERE Id = :id AND Bar IN (:barList)
I set :id using the Query object\'s <
:id
Use Query.setParameterList(), Javadoc here.
Query.setParameterList()
There are four variants to pick from.