There are certain problems in Dozer when you try to work with Arrays or Collections directly. Somehow the framework was originally built to work with plain objects as the source and destination. So we could call that a bug. It is on the list, but quite a complex issue.
Dmitry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I spend couple of hours trying to figure out how to copy List<Office> to List<IdNameBean> without wrapping object.
void myMethod(List<Office> list1, List<IdNameBean> list2) {
mapper.map(list1,list2);
}
Should I write some custom mapper or there is easer way to do this?
There are certain problems in Dozer when you try to work with Arrays or Collections directly. Somehow the framework was originally built to work with plain objects as the source and destination. So we could call that a bug. It is on the list, but quite a complex issue.
Dmitry