Alibaba Java Developer's Handbook DO, DTO, BO, AO, VO, POJO

Alibaba Java Developer's Handbook DO, DTO, BO, AO, VO, POJO

Hierarchical model statute areas:

  • DO (Data Object): one correspondence with the database table structure, by DAO layer uplinked data source object.
  • DTO (Data Transfer Object): data transfer object, Service Manager or outward transfer object.
  • BO (Business Object): business objects. Encapsulate business logic layer output by the Service object.
  • AO (Application Object): application object. In the abstract object model multiplexing layer between the Web and Service layer, very close to the presentation layer, reusability is not high.
  • VO (View Object): Object display layer, typically a Web rendering engine to the transmission layer template object.
  • POJO (Plain Ordinary Java Object): In this manual, POJO refers specifically only setter / getter / toString simple categories, including DO / DTO / BO / VO and so on.
  • Query: query object data, the upper layers receiving a query request. Note that more than two parameter query package, prohibit the use of the Map class transmitted.

Domain model naming convention:

  • Data Objects: xxxDO, xxx is the table name.
  • Data Transfer Object: xxxDTO, xxx is the name of the relevant business areas.
  • The display object: xxxVO, xxx generally page name.
  • POJO is DO / DTO / BO / VO, collectively, prohibit named as xxxPOJO.
Published 125 original articles · won praise 36 · views 20000 +

Guess you like

Origin blog.csdn.net/qq_30757161/article/details/104304552