Automapper for Java

Java.NetMappingAutomapper

Java Problem Overview


Is there Java equivalent of .Net's Automapper?

Java Solutions


Solution 1 - Java

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.

Solution 2 - Java

Check out 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/

Solution 3 - Java

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionmgamerView Question on Stackoverflow
Solution 1 - Javauser159088View Answer on Stackoverflow
Solution 2 - JavaJonathanView Answer on Stackoverflow
Solution 3 - JavafrmView Answer on Stackoverflow