Dozer is a Java Bean to Java Bean mapper that recursively copies data from one object to another.
Features
a. Matched property names are automatically handled by Dozer.
b. Mapping can be specified either Programmatically or with xml configuration.
c. Implicit data type conversion is automatically performed by Dozer mapping engine. At the time of writing this post, Dozer supports the following types of conversions:
Primitive to Primitive Wrapper
Primitive to Custom Wrapper
Primitive Wrapper to Primitive Wrapper
Primitive to Primitive
Complex Type to Complex Type
String to Primitive
String to Primitive Wrapper
String to Complex Type if the Complex Type contains a String constructor
String to Map
Collection to Collection
Collection to Array
Map to Complex Type
Map to Custom Map Type
Enum to Enum
String to any of the supported Date/Calendar Objects.
Objects containing a toString() method that produces a long representing time in (ms) to any supported Date/Calendar object.
Dependency used
<!-- https://mvnrepository.com/artifact/net.sf.dozer/dozer -->
<dependency>
<groupId>net.sf.dozer</groupId>
<artifactId>dozer</artifactId>
<version>5.5.1</version>
</dependency>
You can download all the working applications from this link.
For more information on dozer library, refer below FAQ section.
http://dozer.sourceforge.net/documentation/faq.html
Previous Next Home
No comments:
Post a Comment