java - bidirectional hibernate relationship -
to hibernate with me and use the following institutions have a web application I'm doing wrong? ... @Entity implements public class registration BaseEntity {... @OneToMany (cascade = {} CascadeType.PERSIST, mappedBy = "registration", bringing = FetchType. Aajiaar) Private List & the lift; Product & gt; Ordered products = new array list & lieutenant; Ordered Products & gt; (); ... public list & lt; Ordered product & gt; GetOrderedProducts () {Product ordered back; } Public Zero Set-up Products (List; Ordering Products & gt; Products ordered) {this.orderedProducts = orderedProducts; } ... ... @Entity implements public square OrderedProduct BaseEntity {... @ManyToOne @JoinColumn (name = "registration_id", null = true ) Private Registration Registration; ... public registration getRegistration () {return registration; } Public Zero Set Registration (Registration Registration) {this.registration = Registration; } ... When I...