@Override
    public Query<?> createQuery(String queryString) {
        throw new UnsupportedOperationException("No session in detached Query available");
    }
{@code NoSessionHolder} is a session holder for detached {@link HibernateQuery} usage

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