I need to pass an array of integers from Hibernate to PL/SQL function. The current solution is the covert the array to a comma separated string and surround it with parenthesis to use it as parameter. This is solution is outlined here.
But, this approach doesn't look like a good solution when an array of 200k elements need to be passed around.
Is there any way to pass this array using Hibernate's constructs?
Edit: I am using PostgreSQL.