Search code examples
javajaxbmappingdozerapache-commons-beanutils

JAXB generated objects to business/domain objects


Which library to choose for mapping JAXB generated objects to business/domain objects? I'm just thinking between Dozer, Apache Commons BeanUtils, Spring BeanUtils. I read that Dozer has some performance issues. Is that true? Is there anything better than those three?

I'll mention that there will be something a little more than 100 JAXB classes.


Solution

  • I used Orika, Smooks and dozer.

    Orika: is very intuitive, but the development is programmatic.

    Dozer: uses the xml mappings, but is able to avoid them if the source and the target are equal.

    Smooks: i do not recommend it, the mapping files are too complex.