Use setParameterList(). You’ll also have to put parenthesis around the list param.
session.createQuery("select cat from Cat cat where cat.id in (:ids)").setParameterList("ids", new Long[]{1,2,3,4,5})
Use setParameterList(). You’ll also have to put parenthesis around the list param.
session.createQuery("select cat from Cat cat where cat.id in (:ids)").setParameterList("ids", new Long[]{1,2,3,4,5})