#217 Get a handle on mappedFields property from CustomConverter.

Dozer v5.3.2

We have a scenario as follows:
class Party {
private PartyName defaultName;
private Set<PartyName> allNames;

class PartyName {
private String firstName;
private String lastName;
We need to use CustomConverters to convert both the <code>defaultName</code> and <code>allNames</code> fields. The instance of the <code>defaultName</code> object will exist in the <code>allName</code> as well. The CustomConverters do some additional logic but also
utilize the MapperAware Interface to map the fields. We need to be able to set the instances of <PartyName> on to the mappedFields in the MappingProcessor so that when either of the CustomConverters get executed they can first attempt to see if the object was already mapped
previously and use that value before mapping it again. This introduces a problem for us as we end up with multiple instances due to the requirements
we have for needing CustomConverters for these fields.


  • dmitry (lv)

    dmitry (lv) - 2011-01-13

    fixed. MapperAware converter will track the same converted objects and reuse the results if necessary.

  • dmitry (lv)

    dmitry (lv) - 2011-01-13
    • milestone: 1049136 --> Dozer v5.3.2
    • assigned_to: nobody --> buzdin
    • 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