Entity To DTO Conversion using ModelMapper in Spring Boot Application

preview_player
Показать описание
In this tutorial, we'll handle the conversions that need to happen between the internal entities of a Spring boot application and the external DTOs (Data Transfer Objects) that are published back to the client.

We gonna use the ModelMapper library to convert Entity to DTO and vice versa.

#springboot #javaguides

Рекомендации по теме
Комментарии
Автор

The most descriptive tutorial I've ever seen

talhaakkoc
Автор

This is very useful, something new to me to learnings 👍

meenajadhav
Автор

Hi The Tuto is very helpful. Thank you for sharing. I notice that the field on the relationship return null value. one to many and many to one. How can i solve that problem. Best

girbsonbijou
Автор

Basically to send response of rest API call we use DTO?

vikrantharne
Автор

One thing I dont understand the comment class is the same as comment DTO and the post class is the same as the Post DTO, why do you need DTO in these two cases?

WeilongYou
Автор

This will work only if the field names of both source and destination are same rite? Wts the practical use of an utility like tis where in both source and destination have same field names??

KishoreKumar-slfk
Автор

Hi! Can I ask how to map multipke tables from 1 database? I'm having trouble with my springboot mapper. 😭

Pain-qunr
Автор

how to test the mapping of entity to dto or dto to entity?

eniyakulshreshtha
Автор

Another stupid framework that introduces more magic into your project. THis stuff works as long as you use very simple objects. if there is anything with a hint of more complexity (like transfering a string from a child object of one object, and put it into an array of the other object) everything becomes a hundret times more complicated with this magic stuff, than just writing the conversion by hand.

Seff
welcome to shbcf.ru