.setParameter("warehouseId", 23);
assertEquals(JPQLParser.LANG_JPQL, OpenJPAPersistence.cast(q1).getLanguage());
assertFalse(q1.getResultList().isEmpty());
TypedQuery<OrderJPA> q2 = em.createQuery(jpql, OrderJPA.class);
assertEquals(QueryLanguages.LANG_PREPARED_SQL, OpenJPAPersistence.cast(q2).getLanguage());
q2.setParameter("customerId", 2967)
.setParameter("districtId", 5)
.setParameter("warehouseId", 22);