@Override
    public void visitConstant(Object constant) {
        if (constant instanceof Collection<?>) {
            append("(");
            boolean first = true;
            for (Object element : ((Collection<?>) constant)) {
                if (!first) {
                    append(", ");
                }
                visitConstant(element);
                first = false;
            }
            append(")");
        } else {
            super.visitConstant(constant);
        }
    }
{@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