You can not do it like above You have to use in
as below
Query query=em.createQuery(
"select t from Thing t where t.status in (:list)")
query.setParameterList("list", statusList)
query.getResultList();
Your statusList.toSting()
will not produce a string like 'A','E'
becuase you have added the statusList.toSting()
in ()
so if your ultimate result will looks like ('A','E')
then only your query will give correct results