#136 DozerBeanMapper doesn't resolve graphs properly

Dozer v5.0
closed
None
5
2009-01-02
2008-03-20
No

When Mapping complex object graphs, the DozerBeanMapper doesn't Honor the object identity.
The Map which saves alread visited nodes uses the "equals"-Method to determine if two objects are the same. When Overriding the equals-Method in the object which are mapped there are many "odd" effects.

To solve the problem an IdentityHashMap should be used instead of a normal HashMap.

Discussion

  • dmitry (lv)

    dmitry (lv) - 2008-10-18
    • milestone: --> 888638
    • assigned_to: nobody --> sterala
     
  • Matt Tierney

    Matt Tierney - 2009-01-02

    Switched dozer's node mapped fields table to use IdentityHashMap

     
  • Matt Tierney

    Matt Tierney - 2009-01-02
    • milestone: 888638 --> Dozer v5.0
    • assigned_to: sterala --> mhtierney
    • status: open --> 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