Dozer does not map to collection that don't have setters.
The attached test does not work, because there is no setter for the collection in A class.
In fact, a setter is not mandatory for collection, because the getList().add(....) is sufficient.
Supporting this will allow direct support of JAXB2.1 generated beans, because the collections by default don't have setters.
PS: If you uncomment the setter methods, test is working.
Log in to post a comment.