I have a custom VARRAY type:
create or replace TYPE ARRAY_NUMBERS AS VARRAY(1000000) OF NUMBER;
when I retrieve a result set of the ARRAY_NUMBERS type, JAVA is interpreting the numbers as java.math.BigDecimal, however I am expecting it to be a Long.
Is there a way to do this?
Error:
Caused by: org.apache.ibatis.reflection.ReflectionException: Could not set property 'ids' of 'class com.myproject.NumberValue' with value '[Ljava.math.BigDecimal;@d2037d' Cause: java.lang.IllegalArgumentException: argument type mismatch