How to join multiple unrelated entities in JPA Criteria with ON condition ?
CriteriaBuilder cb = entityManager.getCriteriaBuilder();
CriteriaQuery<College> cq = cb.createQuery(College.class);
Root<College> colleges= cq.from(College.class)
Join<College,Student> studentJoin = colleges.join(?,JoinType.LEFT) //How to
define on condition with column of both entities?(eg:college.studId=stud.studId)
Query which i want to build in criteria : select * from college coll left outer join student stud on coll.stuId=stud.stuId