I have a function in Repository which calls a function like this:
@Query(value="select * from my_postgres_function(?1)",nativeQuery = true)
List<Map<String, String>> getScrutinyData(List<Integer> numbers;);
In .sql file, I have that function defined as
CREATE OR REPLACE FUNCTION public.my_postgres_function(numbers Integer[]);
The query in function is something like
select * from table t where t.id in numbers;
There seems to be an error and it doesn't work. Has anyone faced this before?
I have tried to send it as String and convert the value and put it, but it did work.