JPA = Java Persistence API,即Java持久化应用程序接口。
JPA Providers
JPA is an open source API, therefore various enterprise vendors such as Oracle, Redhat, Eclipse, etc. provide new products by adding the JPA persistence flavor in them. Some of these products include:
Hibernate, Eclipselink, Toplink, Spring Data JPA, etc.
如上所示,JPA其实是一种规范、规则,是抽像而非具体的,而像Hibernate, Eclipselink, Toplink, Spring Data JPA等.都是该抽像的具体实现。
实验证明,人们对于具体实现的接受程度远高于抽像,所以如果你是新手,那么推荐直接学习Spring Data JPA。就这像我们想学驾驶技术,直接给你个车开比看如何开车的课本效率要高得多。
所以如果想了解JPA,强烈推荐学习易上手的Spring Data JPA。