Prepare Interview

Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Difference between JPA and Hibernate

JPA
Hibernate
JPA is a Java specification for mapping relation data in Java application.Hibernate is an ORM framework that deals with data persistence.
JPA does not provide any implementation classes.It provides implementation classes.
It uses platform-independent query language called JPQL (Java Persistence Query Language).It uses its own query language called HQL (Hibernate Query Language).
It is defined in javax.persistence package.It is defined in org.hibernate package.
It is implemented in various ORM tools like Hibernate, EclipseLink, etc.Hibernate is the provider of JPA.
JPA uses EntityManager for handling the persistence of data.In Hibernate uses Session for handling the persistence of data.
JPA is a specification/Interface.Hibernate is only JPA implementations.

Related differences

Hibernate 3 vs Hibernate 4JDBC vs JPAJPA vs Hibernate
Is it helpful? Yes No

Get differences from below

©2023 WithoutBook