Sunday 18 July 2021

Object Mappers in Java

What is the mean by object mapper? 


As the name suggests mapping the data from one object to another? Consider the situation where you want to convert the object from one form to another. If the Object is simpler, then we can iterate and save it in the new object where else in case of the complex objects it is tougher to save it, because you need to iterate all the objects and save it. Which will add more adhoc. In order to overcome this, we have the Object mapper APIs.


There are various Object Mapper APIs are available, which we can see in the individual posts. Some are


1. Dozer.

2. MapStruts

3. ModelMapper 

4. Apache Bean Utils.


Using these API we can convert from one object to another with minimal effort.

No comments:
Write comments