@Override
    public boolean isWithForOn() {
        // Hibernate supports the on-clause since 5.0, and the ON clause is actually mandatory for entity joins
        return true;
    }
Hibernate5Templates extends {@link JPQLTemplates} with Hibernate specific extensions

@author Jan-Willem Gmelig Meyling
querydsl-jpa/src/main/java/com/querydsl/jpa/Hibernate5Templates.java