來源:互聯網網民 2008-05-19 06:27:15
評論Java Bean 映射工具 Dozer 2.0 發布了。
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
<buzzword>Spring integration</buzzword>
Map backed property support
8X speed improvement over dozer 1.x
在一個多層架構中,mapping框架是非常重要的,因爲我們經常需要把某個層的對象傳輸到另外一個層,這個時候,一個好的mapping框架,可以幫你減輕負擔。
官方站點:http://dozer.sourceforge.net/
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
Java Bean 映射工具 Dozer 2.0 發布了。
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
<buzzword>Spring integration</buzzword>
Map backed property support
8X speed improvement over dozer 1.x
在一個多層架構中,mapping框架是非常重要的,因爲我們經常需要把某個層的對象傳輸到另外一個層,這個時候,一個好的mapping框架,可以幫你減輕負擔。
官方站點:http://dozer.sourceforge.net/