DTO vs JPA Entity

--

In a Spring Boot Application, we need to create a DTO class and a JPA Entity class commonly. These are Java Bean classes, but they are used for different purposes. There are some differences between them, and we need to understand these differences to better use them in the application.

DTO
It is a Data transfer object used to transfer data from one layer to another.

JPA Entity

A Java Bean class that is annotated with @Enity annotation is called JPA Entity.

These are the basic differences between DTO and Entity read more to check out the article click here…

--

--

Jiledar_Dhakad
Jiledar_Dhakad

Written by Jiledar_Dhakad

Spring Java tutorials provides well contents to learn java, spring framework and also the architecture of spring technology for beginners and professionals.

No responses yet