类似于这样:
@Entity class A { List< Integer>磷; @OneToMany getP(...){..}; setP(...){..}; }解决方案
使用@ElementCollection映射。请参阅文档
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