#72 Recursive object mapping issue

closed
None
5
2007-02-09
2006-11-15
No

Hi Franz and Matt,
I refer to the following thread on the Dozer support site http://sourceforge.net/forum/forum.php?thread_id=1472795&forum_id=452530 .
I was wondering if you had time to modify the Dozer code to stop the infinite loops happening without having to exclude a field in the dozer mapping file. You've probably been asked this before. I started looking at the private mapField method in MappingProcessor to see if I could store a key of the field being processed in a map with some incrementing counter to stop it from being mapped again, but I'm not sure if this is the correct place in the code to do such a thing. Hibernate bi-directional relationships are important to us and I'd really appreciate a feature to support this.
If you both don't have the time, or think its not important or an issue, I'm happy to pursue it further, but would appreciate some hints in where to start (you may remember some months ago we offered some code b to get allowed runtime exceptions to be passed up - you integrated this into 2.4). From the forum entry above, it seems like other people would benefit as well.
Any help would be greatly appreciated.
Regards
Alan

Discussion

  • Matt Tierney

    Matt Tierney - 2006-11-15

    Logged In: YES
    user_id=1236069
    Originator: YES

    Attaching patch from Alan Stewart

     
  • Matt Tierney

    Matt Tierney - 2006-11-16

    Logged In: YES
    user_id=1236069
    Originator: YES

    Attaching more recent patch

     
  • Matt Tierney

    Matt Tierney - 2006-12-20

    Logged In: YES
    user_id=1236069
    Originator: YES

    I applied the patch code and all appears to be working. Thanks for the code submission

     
  • Matt Tierney

    Matt Tierney - 2006-12-20
    • status: open --> pending
     
  • Matt Tierney

    Matt Tierney - 2007-01-24

    Logged In: YES
    user_id=1236069
    Originator: YES

    touch

     
  • Matt Tierney

    Matt Tierney - 2007-01-24
    • status: pending --> open
     
  • Matt Tierney

    Matt Tierney - 2007-01-24
    • status: open --> pending
     
  • Matt Tierney

    Matt Tierney - 2007-02-09
    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks