How can I map a list of integers in Hibernate?
Something like this:
@Entity class A{ List<Integer> p; @OneToMany getP(...){..}; setP(...){..}; }
Use @ElementCollection mapping. See documentation
2.1m questions
2.1m answers
60 comments
57.0k users