Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternative to dozer for bean mapping? [closed]

Tags:

I am trying to figure out an easy way to map DTOs to entities without the boiler-plate code. While I was thinking of using dozer it appears to require a lot of xml configuration. Has anybody seen a dozer alternative that uses a DSL to configure the bean mapping in pure Java?

Ideally I am hoping to find a bean mapper that is inspired by the way Guice does things.

like image 297
benstpierre Avatar asked Nov 25 '09 23:11

benstpierre


People also ask

What is Dozer Bean mapper?

Dozer is a Java Bean to Java Bean mapper that recursively copies data from one object to another, attribute by attribute. The library not only supports mapping between attribute names of Java Beans, but also automatically converts between types – if they're different.

Is MapStruct slow?

Throughput. In throughput mode, MapStruct was the fastest of the tested frameworks, with JMapper a close second.

Does Dozer use reflection?

Dozer uses reflection to access data object properties, so it is designed to work with data objects that have corresponding getter and setter methods for its fields.

What is Net SF Dozer?

net.sf.dozer » dozer-parentApache. Dozer is a powerful Java Bean to Java Bean mapper that recursively copies data from one object to another. Last Release on Apr 22, 2014.


1 Answers

Look at Orika.

Orika is a Java Bean mapping framework that recursively copies (among other capabilities) data from one object to another. It can be very useful when developing multi-layered applications.

like image 161
Sidi Avatar answered Sep 21 '22 11:09

Sidi