1. Introduction to the framework:Definition: A set of ORM frameworks developed based on Java language; advantages: A. easy to develop; B. Significantly reduce the amount of code; C. Slightly higher performance (can not compare with the database master, compared to the general database user-written code has some advantages); d. Cross-database platform; ORM (Object Relation Mapping):
| Object |
Entity class |
Property |
Data type |
Object |
| Relation |
Table name |
Field |
Data type |
Recording |
| Mapping |
Map the object type data to a relational database so that you can manipulate only the objects without manipulating the database. |
The 2.Hibernate operation process is as follows:
3.Hibernate Architecture:
Noun interpretation (refer to the intermediate Architecture diagram): Transient object: Instantaneous objects; Persistent object: Persistent objects (physical storage media such as hard disks); Session:hibernate session; session Factory: Conversation Factory, Process-level objects (heavyweight); Transation factory:s transaction Factory; Connection provider: third-party data source; JNDI (Java naming Director Interface): Provides a resource directory; JDBC (Java Data Basic Connection): Database link; JTA (Java transation API): cross-database things; 4. Nature of Hibernate: 5. Other persistent layer frameworks on the market: jdbc,hibernate,jpa,ibatis/mybatis,springjdbctemplate
1.Hibernate Introduction