@Override
    public JPASQLQuery<T> clone(EntityManager entityManager) {
        JPASQLQuery<T> q = new JPASQLQuery<T>(entityManager, configuration, queryHandler, getMetadata().clone());
        q.clone(this);
        return q;
    }
{@code JPASQLQuery} is an SQLQuery implementation that uses JPA Native SQL functionality
to execute queries

@param <T> result type

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