Java Bean, POJO, Entity, VO, PO, DAO

Source: Internet
Author: User
Java beans, POJO, Entity, VO are actually Java objects, just for different occasions.  Java Bean: An ordinary Java object, but with some constraints. The property declared is private, and the Get and set methods are implemented. Pojo:plain old Java Object. An ordinary object; entity: The meaning of a substance. Entity is declared when the database is accessed. To be blunt, an entity is a record in the corresponding table. When you insert a record, you insert an Entity. The Vo:value object (Value objects).  Po:persistent Object.      Persistent objects.  VO, PO also nothing special, because with Hibernate, naturally there will be some new stuff. Dao:data Access object: Data Access objects. Others directly translate them into database access objects. The common understanding is to deal with the database. Follow the Spring MVC hierarchy: JavaBean: Presentation layer (Presentation layer) Entity: Business tier (service layer) Dao: data access layer.

Java Bean, POJO, Entity, VO, PO, DAO

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.