According to JPA specification 4.4.5.3, "It is not permitted to specify an identification variable for the objects referenced by the right side of the FETCH JOIN clause". Specifying an alias for a FETCH JOIN can be used as an extension feature. However, the current JPQL parser expects an alias to always exist for each JOIN, so FETCH JOINs without alias will result in parsing errors.
test-jpa.zip