开发者

Automapper for Java [closed]

开发者 https://www.devze.com 2023-01-08 08:42 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to 开发者_如何学Gobe supported by facts, references,or expertise, but this question will likely so
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to 开发者_如何学Gobe supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 9 years ago.

Is there Java equivalent of .Net's Automapper?


Checkout the Dozer project.

Dozer supports simple property mapping, complex type mapping, bi-directional mapping, implicit-explicit mapping, as well as recursive mapping.

It makes use of BeanUtils and extends on it.


Check out my ModelMapper. It was inspired by AutoMapper, but adds a few new things such as intelligent mapping.

ModelMapper is an intelligent object mapping framework that eliminates the need to manually map objects to each other. It uses a convention-based approach to map objects while providing a simple refactoring safe API for handling specific mapping scenarios.

http://modelmapper.org

Also a brief blog post from Jimmy Bogard, the creator of AutoMapper:

http://lostechies.com/jimmybogard/2012/09/17/automapper-for-java/


You should check the open source project Beanutils from Apache Commons.

0

精彩评论

暂无评论...
验证码 换一张
取 消