table of Contents
- Introduction to JPA
Introduction to JPA
- JPA (Java Persistence API) is used to manage Java EE and Java SE environments persistence, and Java API object / relational mapping
- JPA is based ORM (Object Relational Mapping) standard specification, the term standard specification is only defined rules (such as: an interface, annotations), does not provide specific implementation
- The main realization
- Hibernate、Eclipse和OpenJPA
Added: Intermittent forget ORM, our idea was not understood ORM, so in this supplement ORM
Overview ORM thought
- The establishment of two mapping relations
- Mapping between entity classes and tables
- Entity class and attribute mapping between fields in table
- No longer focusing on SQL statement
- The main purpose: the operation corresponding to the database entity classes
- ORM framework:
- Mybatis
- Hibernate
It is widely recognized