Distinguishing __java of various engineering objects in Java

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.