Skip to main content
1 of 3

what is the use of DTO instead of Entity

I am working on RCP application, I am new to this application,

Spring beans are used to write business logic to save/fetch entities.

But, instead of sending entities directly to client we are converting to DTOs and populating clinet.

While saving again converting DTO to entity and saving.

What's the benefit of these conversions?

Can someone explain?