What is the difference between JPA and Hibernate?

Hi,

I have seen that both Hibernate and JPA are very popular. Developers are using it for enterprise applications and there is good demand in market.

What is the difference between JPA and Hibernate? What a beginner should learn?

Thanks

View Answers

April 23, 2017 at 5:00 PM

Hi,

Hibernate

Hibernate is ORM tool and it provides the functionality of mapping Java objects to database. Hibernate tool actually interacts with database and performs database operations.

JPA

JPA is known as Java Persistence API and its an specification for implementing the persistence functionality. The implementation of JPA is known as persistence provider. Here are the implementation of JPA:

  • Hibernate

  • TopLink

  • JDO

Hibernate is one of the JPA implementations. You can use Hibernate as one of the Persistence provider in your JPA applications.

More Hibernate Tutorials.

Thanks









Related Tutorials/Questions & Answers:
Advertisements