POJO 、 VO 、 BO 、 DTO 、 PO

1, POJO, VO, BO, DTO, PO related?

VO, BO, DTO, and PO are all a category of POJO, which are different names of POJO in different usage scenarios.

2. What are POJO, VO, BO, DTO, PO?

POJO

Conceptual connection of POJO

VO

VO (View Object, presentation layer object), encapsulates the object data needed for the entire interface display.

BO

BO (Business Object, business object), a java object that encapsulates business logic, performs business operations by calling DAO methods and combining PO and VO.

DTO

DTO (Data Transfer Object, data transfer object). PO re-encapsulation object before transmission.
To put it simply, when we need the contents of 10 fields of an object, but the PO corresponding to this object has a total of 20 fields, we do not need to transfer all the fields of the entire PO object to the client, but can use DTO to repackage and transfer To the client.

PO

PO (Persistent Object, persistent object), each attribute basically corresponds to a field in the database table.

references

https://www.cnblogs.com/lyjin/p/6389349.html Different Java objects (PO, BO, VO, DTO, POJO, DAO, Entity, JavaBean, JavaBeans)

Guess you like

Origin blog.csdn.net/u013617791/article/details/104777429