What is Dozer?
masterDozer is a Java Bean to Java Bean mapper designed to recursively copy data from one object to another. It is primarily used at architectural boundaries (entry/exit points) to prevent internal domain objects from leaking into external presentation layers or API calls.
Key Capabilities:
- Mapping Types: Supports simple property mapping, complex type mapping, bi-directional mapping, implicit-explicit mapping, and recursive mapping (including collection elements).
- Automatic Conversion: Automatically converts between types for most common scenarios.
- Mapping Logic:
- Automatic: Uses reflection to map fields with identical names.
- Explicit: Custom mappings can be defined using XML.
- Bi-directional: Defining a relationship between two classes allows for mapping in both directions.
Dependencies:
Dozer is written in Java and relies on the Jakarta Commons Bean Utils package for utility methods.