What is DTO?
DTO stands for Data Transfer Object, these are the objects that move from one layer to another layer. DTO can be also used to hide the implementation detail of database layer objects. ModelMapper is a maven library that is used for the conversion of entity objects to DTO and vice-versa.
How to Use ModelMapper in Spring Boot with Example Project?
ModelMapper is an intelligent, refactoring safe object mapping library that automatically maps objects to each other. The goal of ModelMapper is to make object mapping easy, by automatically determining how one object model maps to another, based on conventions. Some of the cool features of ModelMapper are:
- Intelligent
- Refactoring Safe
- Convention Based
- Extensible
Contact Us