What is the difference between using a @OneToMany and @ElementCollection annotation since both work on the one-to-many relationship?
Basic or Embedded: @ElementCollection
Entities: @OneToMany or @ManyToMany
@ElementCollection:
@OneToMany / @ManyToMany: