JavaBean映射工具Dozer2.0发布

王朝java/jsp·作者佚名  2008-05-19
宽屏版  字体: |||超大  

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/

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有