Based on decoupling, Java will design a variety of objects and packages. PO (Persistent object): Each property of the Entity,po in the Object/relation mapping framework corresponds essentially to a field in the database table. VO (Value object): Typically used for data transfer between business tiers, as well as a PO that contains only data. BO (Business object): A Java object that encapsulates the business logic, which is combined with PO,VO to perform business operations by invoking the DAO method. DTO (data Transfer Object): An object that transmits data between design patterns, and the difference between a data-interacting object or a data-access object is a data that is stored and retrieved in addition to any behavior. POJO (Simple Java object): A simple entity class that makes it easy for programmers to use data tables in a database. A pojo after the persistence of the PO, directly with its transmission, transfer process is a DTO, directly used to correspond to the presentation layer is VO. DAO (Object-oriented Database interface): It can be pojo to a PO, with a po assembled VO, DTO.
Appendix Revision History
| Time |
Description |
| 2017-10-26 |
Blog completed |
Copyright
Csdn:http://blog.csdn.net/y550918116j
github:https://github.com/937447974