I have a JAXB generated class which has a *ListType property which has a List<> member with no setter. I attempt to map this as follows:
<field>
<a is-accessible="true">amenityCodes</a>
<b is-accessible="true">amenityList.amenties</b>
</field>
It appears that the is-accessible feature will not traverse a deep-property specification, instead failing because there is no such property "amenityList.amenities" on the destination object.
It would be nice if dozer would negotiation the chain of properties and then assume that the last nested property is the field to lookup.
Hi, I have the same problem nearly 3 years later. Why no comments on this one? Are we doing something wrong? Is this still an issue?
Best regards
/Lasse Bergström
did you find any workaround ?
Somehow yes:
http://sourceforge.net/projects/dozer/forums/forum/452530/topic/3737951
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Indeed, I also have this problem. It's really annoying when using JAXB since it doesn't allow the generation of setter for collections. I have to modify the auto-generated classes in order for Dozer to work correctly, which is painful.
Can someone fix it once and for all, please ?
I may look at the code but I'm not that comfortable with it so it would take time to come with a clean solution.
This was never implemented. I am currently working on resolution.
Fixed in trunk.
Mappings, which are nested *and* indexed at the same moment are not currently supported.