+ "and (o1.WarehouseId = :warehouseId))) "
+ "and (o.CustomerId = :customerId) "
+ "and (o.WarehouseId = :warehouseId)";
em.getTransaction().begin();
TypedQuery<OrderJPA> q1 = em.createQuery(jpql, OrderJPA.class);
q1.setParameter("customerId", 339)
.setParameter("districtId", 3)
.setParameter("warehouseId", 23);
assertEquals(JPQLParser.LANG_JPQL, OpenJPAPersistence.cast(q1).getLanguage());