1. Spring Data JPA是什么东东?
Hibernate is the most common JPA Provider.
- Spring Data JPA provides support for creating JPA repositories by extending the Spring Data repository interfaces.
- Spring Data Commons provides the infrastructure that is shared by the datastore specific Spring Data projects.
- The JPA Provider implements the Java Persistence API (JPA).
The repository hierarchy looks as follows:
JPA is an specification while Hibernate is a particular implementation of that specification (these implementations are usually referred to as Providers).
- Spring Data JPA is not a JPA provider. It simply “hides” the Java Persistence API (and the JPA provider) behind its repository abstraction.
- Spring Data provides multiple repository interfaces that are used for different purposes.
本文详细解析了SpringDataJPA在JPA框架中的角色与作用,包括其如何通过扩展SpringDataRepository接口来实现数据持久化操作,以及它与JPAProvider之间的区别与联系。
2788

被折叠的 条评论
为什么被折叠?



