Skip to content
Advertisement

Mapping array with Hibernate

Can you please help me to map this class using Hibernate?

JavaScript

I’m using PostgreSQL and the column type in the table is integer[] How my array should be mapped?

Advertisement

Answer

I have never mapped arrays to hibernate. I always use collections. So, I have slightly changed you class:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement