If you have an indexed property in your class, and a
getter for one element of it, but not a getter for the
whole array/collection, it is not possible to exclude
it with <exclude-field>.
Instead, it fails with this error:
net.sf.dozer.util.mapping.MappingException: Unable to
determine read method for field: emailAdres class:
The case is: the source class contains the methods
(It's dutch, hence the weird spelling, but
emailAdressen is the plural of emailAdres)
This source class is wrong in JavaBeans terms, the
first getter should have been named
But it's a legacy class and I can't change it. So I
want to exclude the field emailAdres, but that gives
the above exception.
It seems that even if I ignore a field, it still
requires a (non-indexed) read method for it.
Log in to post a comment.