@Override
    public QueryMetadata clone() {
        try {
            DefaultQueryMetadata clone = (DefaultQueryMetadata) super.clone();
            clone.exprInJoins = copyOf(exprInJoins);
            clone.groupBy = copyOf(groupBy);
            clone.having = having;
            clone.joins = copyOf(joins);
            clone.joinTarget = joinTarget;
            clone.joinCondition = joinCondition;
            clone.joinFlags = copyOf(joinFlags);
            clone.joinType = joinType;
            clone.modifiers = modifiers;
            clone.orderBy = copyOf(orderBy);
            clone.projection = projection;
            clone.params = copyOf(params);
            clone.where = where;
            clone.flags = copyOfSorted(flags);
            return clone;
        } catch (CloneNotSupportedException e) {
            throw new QueryException(e);
        }
    }
Disable validation

@return the current object
querydsl-core/src/main/java/com/querydsl/core/DefaultQueryMetadata.java