@Override
    public boolean transform(Query query, FactoryExpression<?> projection) {
        try {
            ResultTransformer transformer = new FactoryExpressionTransformer(projection);
            query.unwrap(org.hibernate.query.Query.class).setResultTransformer(transformer);
            return true;
        } catch (PersistenceException e) {
            return false;
        }
    }
{@code HibernateHandler} is the {@link QueryHandler} implementation for Hibernate

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