@Override
    public String getTypeForCast(Class<?> cl) {
        String typeName = typeNames.get(cl);
        if (typeName == null) {
            return super.getTypeForCast(cl);
        }
        return typeName;
    }
HQLTemplates extends {@link JPQLTemplates} with Hibernate specific extensions

@author tiwe
querydsl-jpa/src/main/java/com/querydsl/jpa/HQLTemplates.java