Announcement Announcement Module
Collapse
No announcement yet.
StackOverflow Exception while using bidirectional mapping Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Spring 2.5
    Is this an issue with hibernate ?
    If anyone has comeaccross such
    an instance please help me to resolve the issue

  • #2
    Hi,
    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.

    Comment

    Working...
    X