@Override
    protected void visitOperation(Class<?> type, Operator operator, List<? extends Expression<?>> args) {
        if (operator == SQLOps.ALL
                && !(args.get(0) instanceof RelationalPath)
                && wrapEntityProjections) {
            append("{");
            super.visitOperation(type, operator, args);
            append("}");
        } else {
            super.visitOperation(type, operator, args);
        }
    }
{@code NativeSQLSerializer} extends {@link SQLSerializer} to extract referenced entity paths and change
some serialization formats

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