@Override
    public HibernateQuery<?> query() {
        return new HibernateQuery<Void>(session.get(), templates);
    }
Factory class for query and DML clause creation

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