Are Hibernate POJOs an entity, a business entity, or a data entity?

I have classes (POJOs) annotated by JPA and populated by Hibernate.

Because these objects are transferred from the DAOs database to Business Services and do not have any behavior or business logic, they are DTOs.

But I read several articles that they are business objects or business objects, and that confused me.

Can someone clarify the differences?

+3
source share
2 answers

Business entities encapsulate data relevant to business. Unlike controllers that encapsulate business logic. Controllers implement business processes and use entities.

DTO, . , .

+2

DTO.

- , ( DTO`s).
, - .

- , , .
-. Hibernate .

+2

All Articles