I am trying to use ActiveJDBC
to properly convert an integer[]
from my PostgreSQL
database into the java equivalent int[]
. I get the fetch done properly, but the object that is returned is weblogic.jdbc.wrapper.Array_org_postgresql_jdbc_PgArray
. I have yet to find a way to convert that.
I have tried 2 different ways of accessing the data:
First, using the standard record.findFirst("id = ?", id)
format. Because I have multiple schemas in my database, I added the @Table
notation to my Model.
Second, I tried doing a record.findBySQL("select array from record where id = ?", id)
. I also tried array::integer[]
.
Each time I get back the PgArray type. I have searched for a way to convert this type into something else for use, but nothing has worked.
Is there a way to do this? Do I need to use a different way of data retrieval other than ActiveJDBC
?