1 What is ORM
Or-mapping is a relational mapping object-relational mapping and is a program technology that enables the conversion of data between different types of systems in an object-oriented programming language. It solves the problems caused by different SQL syntax of different database, and Hibernate,mybatis is a common framework technology in Java.
2 Hibernate profile
Hibernate provides a lightweight object encapsulation of JDBC, and you can use hibernate to develop a persistence layer, whether you use Oracle,db2,mysql. Hibernate consists of 6 major core interfaces:
Configuration Interface: Configure and start hibernate
Sessionfactory Interface: Initialize Hibernate
Session interface: Crud for persisted objects
Transation: Transaction
Query: Querying
3 Advantages and disadvantages of hibernate
Pros: Only need to manipulate objects, code can be reused, low intrusion
Disadvantages: Difficult to tune, if you encounter a large number of tables, the configuration file is very large, not suitable for bulk modification Delete
Hibernate development (1)