Re: Bind a Postgresql array to a java list instead of a java Array.

2019-08-22 Thread Lukas Eder
Hi Max, The main reason why jOOQ prefers arrays over lists in such cases is the fact that the array component type is not erased at runtime. Quite a bit of jOOQ's internals depends on being able to reflect on the type of a column, and in case of arrays, the component type of the array.

Bind a Postgresql array to a java list instead of a java Array.

2019-08-21 Thread Max Kremer
Using Jooq 3.10 and Postgresql 10 - Not using the code generator I'm trying to improve some code that uses primitive arrays, specifically String[ ] . As everyone knows arrays can be clunky to work with, Lists are much preferred but I can't figure out how to bind a PostgreSQL array field to a