I get List<Strings>
by executing a query. This must be passed to another query of IN clause values. How to pass them in HQL?
We can convert List
to Array
and can pass it, that's not a problem.
Finally, I must pass the list in List<String>
or Array
or String
form to the IN clause.
I know it's been a while and you have been trying to pass the value of a different query as a queryParameter, you can also pass set or collections to in clause in HQL with 'elements()' - here's a simple example of such usage: Hibernate query: does a Set contains a certain Object?
or