How to properly express JPQL “join fetch” with “where” clause as JPA 2 CriteriaQuery?
In JPQL the same is actually true in the spec. The JPA spec does not allow an alias to be given to a fetch join. The issue is that you can easily shoot yourself in the foot with this by restricting the context of the join fetch. It is safer to join twice. This is … Read more