Naming conventions

Hierarchical domain model statute

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.

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

1) Data Objects: xxxDO, xxx is the table name.

2) Data Transfer Object: xxxDTO, xxx is the name associated with the business.

3) display objects: xxxVO, xxx generally page name.

4) POJO is DO / DTO / BO / VO collectively prohibited named as xxxPOJO.

Guess you like

Origin www.cnblogs.com/lvhouhou/p/11982504.html