Robert Niestrojrobertniestroj.hashnode.dev·Jul 3, 2024Think 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...3 likes·1.4K readsJavaAdd a thoughtful commentNo comments yetBe the first to start the conversation.