With JPA 2 Criteria Join method I can do the following:
//Join Example (default inner join) int age = 25; CriteriaBuilder cb = entityManager.getC
I am using JPA 2.1 with Hibernate 4.3.7 and the below works for me well. It does not even look that ugly.
Join p = (Join) t.fetch(Team_.players);