服务热线:13616026886

技术文档 欢迎使用技术文档,我们为你提供从新手到专业开发者的所有资源,你也可以通过它日益精进

位置:首页 > 技术文档 > JAVA > 新手入门 > 基础入门 > 查看文档

java bean 映射工具 dozer 2.0 发布


  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/

扫描关注微信公众号