JPA hibernates left join code example Example: JPA hibernates left join CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery cq = cb.createTupleQuery(); Root root = cq.from(Author.class); Join book = root.join(Author_.BOOKS, JoinType.LEFT); cq.multiselect(root, book); ParameterExpression pLastName = cb.parameter(String.class); cq.where(cb.equal(root.get(Author_.LAST_NAME), pLastName)); TypedQuery q = em.createQuery(cq); q.setParameter(pLastName, "Janssen"); List authorBooks = q.getResultList();