Hi there. OpenJPA does indeed support queries that use a list parameter as query criteria. Here's a snippet of code that uses a JPQL query to return those Person entities which have a matching id in a list of personId.
Query qry = em.createQuery("SELECT p FROM Person p WHERE p.personId
IN ( :pids )");
List<Integer> ids = new ArrayList<Integer>();
ids.add(1);
ids.add(2);
qry.setParameter("pids", pids);
List<Person> people = qry.getResultList();
-Jeremy
