Several Java objects (PO, Vo, Dao, Bo, pojo)

Source: Internet
Author: User

Several Java objects (PO, Vo, Dao, Bo, pojo)
I. Po: persistence object of persistant object. It can be regarded as a Java object mapped to a table in the database. The simplest Po is to correspond to a record in a table in the database. A set of PO can be used for multiple records. The PO should not contain any operations on the database.

Ii. VO: Value Object value object. It is usually used for data transmission between business layers. Like Po, it only contains data. However, it should be an abstract business object, which can correspond to a table or not. This is based on the business needs. I personally think it is the same as DTO (data transmission object) and transmitted on the web.

3. Dao: Data Access Object: the data access object used to access the database. It is usually used in combination with Po. Dao contains various database operation methods. It combines Po with other methods to perform database operations.

4. Bo: Business Object business object. It encapsulates Java objects of business logic and performs business operations by calling Dao and combining Po and VO.

5. pojo: plain ordinary Java object is a Java object with no rules. I personally think it and others are not at the same level. Vo and PO should both belong to it.

Related Article

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.