Setting a parameter as a list for an IN expression
Your JPQL is invalid, remove the brackets List<String> logins = em.createQuery(“SELECT a.accountManager.loginName ” + “FROM Account a ” + “WHERE a.id IN :ids”) .setParameter(“ids”,Arrays.asList(new Long(1000100), new Long(1000110))) .getResultList();