I have a question about Parallel Object Hierarchies such as DTO.
Theses hierarchies has to be somehow mapped between each other. Most straightforward method is to use simple mapping by hand. In this case you simply write code which transfers property values one-by-one from one object to the other.
This method is very laborious, but it offers the most variability and the best performance. Also it's very easy to write such mapping.
Another method is to use some mapping framework such as DOZER. It should be less laborious this way but you loose some variability. Some complicated mappings are hard to achieve if not impossible. You also loose some performance.
So my question is:
Are there any recommendations when to use mapping framework and when to rather map by hand?
Does it depend on complexity of your mapping? Or it's better to always use mapping framework?
Thanks in advance.