
@OneToMany is one of the most often used annotations in #JPA. Whenever a Parent Entity can have multiple Childs we use a Collection with the @OneToMany annotation. import javax.persistence.*; import java.util.HashSet; import java.util.Set; import org...
Software Developer doing Java, JavaScript for over 10 years. Working in Polish and German projects.
Markdown supported · ⌘↵ to post
No responses yet.