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