您的JPQL无效,请删除括号
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();
您的JPQL无效,请删除括号
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();