Hi all, I'm trying to set a parameter in my query, for example:
select * from Cars where Cars.color NOT IN (:color_params)
And when I'm adding the parameter in my JavaClass is like:
...
query.setParameter("color_params", "RED,BLUE");
...
And this is not working, is only working with only one parameter.
I've tried with
"'RED','BLUE'"
and is not working to.
If I put my parameters in the query is working for example:
select * from Cars where Cars.color NOT IN ('RED','BLUE')
What I'm doing wrong!?
Thanks in advance