Think twice before using @OneToMany
@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...
robertniestroj.hashnode.dev3 min read