java - Using List collection makes Hibernate throw stackoverflow error -
I have three domain objects, one parent object with the two children, the parent object with the two children There is a lot of relationship, and therefore there is a collection of guardian items in both children, whereas parents are references to the objects of both children. Parents Pre> parents of the public class {other children other children; Some children some children; / * Other methods and attributes * / @ManyToOne (fetch = FetchType.EAGER) Public SomeChild getSomeChild () {this.someChild; } Public Zero Set Some Children (Some Children Some Children) {this.someChild = someChild; } @ManyToOne (fetch = FetchType.EAGER) Public other children meet other infants () {this return.otherChild; } Public Zero set other infant (other children other children) {this.otherChild = otherChild; }} Kids Public category SomeChild {Private list & lt; Parents & gt; mother-father; / * Other methods and attributes * / @OneToMany (fetch = FetchType.LAZY, mapped = "som...