• Post Reply Bookmark Topic Watch Topic
  • New Topic

Integer array operations using Hibernate  RSS feed

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

I have int[] field in my postgresql database which holds some ids. Changing it to separate table wouldn't be a good choice as it would became very big in short time. I need to stay with this solution then. However I cannot read/write this field using entity manager, as there is not proper mapping for this type. Temporary I changed type of this field to varchar, but this of course means performance degradation.

Could anyone guide me how to use integer arrays in hibernate?

Michal
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!