What is the difference between using a @OneToMany and @ElementCollection annotation since both work on the one-to-many relationship?
@OneToMany
@ElementCollection
@ElementCollection marks a collection. This does not necessarily mean that this collection references a 1-n join.