Dozer可以在JavaBean到JavaBean之间进行递归数据复制,并且这些JavaBean可以是不同的
复杂的类型。
所有的mapping,Dozer将会很直接的将名称相同的fields进行复制,如果field名不同,或者有特别的对应要求,则可以在xml中进行定义。
新版本主要是为了解决XSD schema 类型和domain objects之间的 SOA mapping 问题。
2.0的新特性包括:
Context based mapping
Collection and Array mapping handling Lists, Sets, Arrays and allowing for class type hints
Support for custom converters
Custom bean factories for beans that do not follow the JavaBean specification
Inheritance mapping including abstract classes and interfaces
Field exclusion and custom getter() setter() functionality
Copy-by-reference and 'self' mappingNull and empty quote source value exclusionBi-directional or one-way mapping
String to date mapping
Data type conversion like String to Integer Wrapper or String to primitive
Class level mapping recursion and deep property mapping
Spring integration
Map backed property support
8X speed improvement over dozer 1.x
Collection and Array mapping handling Lists, Sets, Arrays and allowing for class type hints
Support for custom converters
Custom bean factories for beans that do not follow the JavaBean specification
Inheritance mapping including abstract classes and interfaces
Field exclusion and custom getter() setter() functionality
Copy-by-reference and 'self' mappingNull and empty quote source value exclusionBi-directional or one-way mapping
String to date mapping
Data type conversion like String to Integer Wrapper or String to primitive
Class level mapping recursion and deep property mapping
Map backed property support
8X speed improvement over dozer 1.x
标签: