Jan 1st, 2009, 01:10 AM
StackOverflow Exception while using bidirectional mapping
I am using hibernate with spring
While i try using a bidirectional mapping.
I get an indefinite loop between the parent and child object causing Stack Overflow
Hibernate version is 3.2.5
Is this an issue with hibernate ?
If anyone has comeaccross such
an instance please help me to resolve the issue
Jan 5th, 2009, 12:15 PM
When you have a bidirectional relation, at least one side must be lazy, otherwise both sides will try to load each other in an infinite recursion.