use of jakarta.persistence.criteria.JoinType in project eclipselink by eclipse-ee4j.
the class QueryTestSuite method testCriteriaGetJoinType.
public void testCriteriaGetJoinType() {
EntityManager em = createEntityManager();
CriteriaBuilder qbuilder = em.getCriteriaBuilder();
CriteriaQuery<Employee> query = qbuilder.createQuery(Employee.class);
Root<Employee> employee = query.from(Employee.class);
JoinType jt = employee.join("phoneNumbers", JoinType.LEFT).getJoinType();
assertEquals("The join type was incorect.", jt, JoinType.LEFT);
}
use of jakarta.persistence.criteria.JoinType in project eclipselink by eclipse-ee4j.
the class QueryTestSuite method testCriteriaGetJoinType.
public void testCriteriaGetJoinType() {
EntityManager em = createEntityManager();
CriteriaBuilder qbuilder = em.getCriteriaBuilder();
CriteriaQuery<Employee> query = qbuilder.createQuery(Employee.class);
Root<Employee> employee = query.from(Employee.class);
JoinType jt = employee.join("phoneNumbers", JoinType.LEFT).getJoinType();
assertEquals("The join type was incorect.", jt, JoinType.LEFT);
}
Aggregations