任何java对象到对象映射的工具? [英] any tool for java object to object mapping?

查看:161
本文介绍了任何java对象到对象映射的工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用java将DO转换为DTO,并在开始编写自己的工具之前寻找自动化工具。我只是想知道是否有相同的免费工具。

I am trying to convert DO to DTO using java and looking for automated tool before start writing my own. I just wanted to know if there any free tool available for the same.

推荐答案

你可以试试推土机


Dozer是Java的Java Bean Bean
映射器以递归方式将数据
从一个对象复制到另一个对象。通常,
这些Java Bean将具有不同的
复杂类型。

Dozer is a Java Bean to Java Bean mapper that recursively copies data from one object to another. Typically, these Java Beans will be of different complex types.

Dozer支持简单属性
映射,复杂类型映射,
双向映射,
隐式显式映射,以及
递归映射。这包括
映射集合属性,
也需要映射元素
级别。

Dozer supports simple property mapping, complex type mapping, bi-directional mapping, implicit-explicit mapping, as well as recursive mapping. This includes mapping collection attributes that also need mapping at the element level.

这篇关于任何java对象到对象映射的工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆