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
1.4m articles
1.4m replys
5 comments
57.0k users