@Override
    public JDOSQLQuery<T> clone() {
        JDOSQLQuery<T> query = new JDOSQLQuery<T>(persistenceManager, configuration, getMetadata().clone(), detach);
        query.clone(this);
        return query;
    }
{@code JDOSQLQuery} is a {@link SQLQuery} implementation that uses JDO's SQL query functionality
to execute queries

@author tiwe

@param <T> result type
querydsl-jdo/src/main/java/com/querydsl/jdo/sql/JDOSQLQuery.java