How would you convert a java.util.List instance into a java.sql.Array?
java.util.List
java.sql.Array
The type argument to createArrayOf is the element type, not the array type, so you probably want something like "varchar" or "text". VARIADIC is a function argument modifier, not a type specifier.