Delete comment from: Inspired by Actual Events
Nice intro to Dozer, thanks.
It's worth noting that some of your reasons for doing mapping can be resolved with the JAXB2 Basics Plugins: http://confluence.highsource.org/display/J2B/JAXB2+Basics+Plugins namely toString, hashCode, and equals. There's even a mapping one, tho I haven't used it.
But I admit I still use business model objects, largely to separate concerns between application layers and avoid tight coupling.
Here's some other reasons tho. Does Dozer help with any of these?
- Immutable business model objects with builders for thread-safety
- Method argument and return preconditions (@Nonnull, @Nullable, etc) for ease of use
- Flat schema, deep hierarchical business model
- Business model objects shared between multiple APIs with different schemas.
Dec 13, 2013, 11:29:11 AM
Posted to Dozer: Mapping JAXB Objects to Business/Domain Objects

