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.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Here the class diagram of my beans to reproduce the "bug"
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.
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).