@Override
    public List<JoinExpression> getJoins() {
        if (joinTarget == null) {
            return Collections.unmodifiableList(joins);
        } else {
            List<JoinExpression> j = new ArrayList<>(joins);
            j.add(new JoinExpression(joinType, joinTarget, joinCondition, Collections.unmodifiableSet(new HashSet<>(joinFlags))));
            return j;
        }
    }
Disable validation

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