• Post Reply Bookmark Topic Watch Topic
  • New Topic

map integer[] column to EJB 3  RSS feed

 
Michal Glowacki
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i try to map array of integers column from my postgresql 8.3 database to ejb 3.0 entity bean field. In EJB 2.1 I simply declared that column as java.sql.Array and worked fine. However, it's not working this way in 3.0. I tried using @Lob annotation, changing types from Integer[] to int[], to Serializable and so on... Nothing works, all the time when trying to insert via bean I got this error:

column "my_column_ is of type integer[] but expression is of type bytea (or bigint)

I also can't find any help over internet...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!