cb.isTrue(cb.disjunction())));
em.createQuery(c).getResultList();
}
public void testDefaultProjectionWithUntypedResult() {
CriteriaQuery cquery = cb.createQuery();
Root<Customer> customer = cquery.from(Customer.class);
//Get Metamodel from Root
EntityType<Customer> Customer_ = customer.getModel();
cquery.where(cb.equal(
customer.get(Customer_.getSingularAttribute("name", String.class)),
cb.nullLiteral(String.class)));
Query q = em.createQuery(cquery);
}