使用a @OneToMany和@ElementCollection注释有什么区别,因为两者都在一对多关系上工作?
@OneToMany
@ElementCollection
java hibernate jpa
hibernate ×1
java ×1
jpa ×1