I wanted to know the relationship between JPA and ORM because I was in doubt, if both, deal with the same subject.
I wanted to know the relationship between JPA and ORM because I was in doubt, if both, deal with the same subject.
Summary: JPA is a specification and ORM is the tool (Hibernate, Entity, etc.).
In the context of Java applications, to facilitate the process of transforming data between applications and databases, we can use some persistence tools such as Hibernate or EclipseLink .
These tools function as intermediaries between applications and databases, automating a number of important processes related to data persistence. These are called Object Relational Mapping (ORM) tools.
In order to facilitate the use of these tools and make them compatible with the other features of the Java platform, they are standardized by the Java Persistence API (JPA) specification.
Source: Java Apostille - Persistence with JPA 2 and Hibernate
Therefore: