Menu

#297 java.util.Map is not mapped entirely

Dozer v5.1
closed
nobody
5
2011-02-04
2010-12-06
Anonymous
No

I have a Entity containing translations in java.util.Map<String, EntityInt>.
EntityInt is a classe that contain a label, a code and a parent reference (baseObject) to translate my bean.

When i try to map my Entity into a DTO that contains DTOInt like this : java.util.Map<String, DTOInt>.
My map contains a DTOInt in the first element of my map but all the rest of my map contains EntityInt.

If I set the baseObject to null or if I delete it from the superclass of DTOInt so all works fine.

The mapping configuration :
<mapping>
<class-a>poc.Entity</class-a>
<class-b>poc.dto.DTO</class-b>
<field>
<a>translations</a>
<b>translations</b>
<a-hint>poc.EntityInt</a-hint>
<b-hint>poc.dto.DTOInt</b-hint>
</field>
</mapping>

Regards.

Discussion

  • dmitry (lv)

    dmitry (lv) - 2010-12-20

    Can you reproduce that with the latest version of Dozer?
    If I get the problem only first element in the map was translated correctly and the rest is copied as is. I remember fixing something similar in 5.3.0.

     
  • dmitry (lv)

    dmitry (lv) - 2010-12-21
    • status: open --> pending
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 45 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.