Mapping Dozer vs MapStruct
POSTED BY MARIUSZ WYSZOMIERSKI
In multi-tier applications there is often a need for mapping between two data models. In this article you can read about comparing two mapping libraries:
- Dozer (http://dozer.sourceforge.net/) – popular library, where mapping is configured by XML files
- MapStruct (http://mapstruct.org/) – library, which is used for example in JHipster generator
The most common use case is coping data from entity objects to DTO objects usually used in service REST/SOAP.
<