01 ORM Framework Overview

ORM Overview

           ORM (Object-Relational Mapping) represents an object-relational mapping. In object-oriented software development by ORM, you can put objects mapped to a relational database. As long as a set of procedures can do to associate objects with the database, the operation object can directly manipulate database data, you can say that this program implements object-relational mapping ORM
          Simply put: ORM is established between the entity classes and database tables relationship, so as to achieve the purpose of operating the entity class is equivalent to the operation of the database tables.

Why use ORM

            When implementing an application (without using the O / R Mapping), we may write code in particular multiple data access layer, the data from the database to save, modify data, delete data, and these codes are repetitive. The use of ORM will greatly reduce repetitive code. Object-relational mapping (Object Relational Mapping, referred to as ORM), the main implementor of the object to relational mapping database data.

Common ORM framework

           Common orm framework: Mybatis (ibatis), Hibernate, JPA

 

Guess you like

Origin www.cnblogs.com/zhaochengf/p/12127379.html