Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Integer array operations using Hibernate

 
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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!