Results 1 to 2 of 2

Thread: StackOverflow Exception while using bidirectional mapping

  1. #1
    Join Date
    Aug 2008
    Posts
    21

    Default 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. #2

    Default

    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.
    Gabriel Axel
    Sparklix | Blog | Twitter | Github

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •