can we use jpa without hibernate

hibernate, java, jpa, orm

Solution

You are right JPA is a specification. Hibernate, and EclipseLink are a couple of its implementations.

You have to specify the persistence provider(Hibernate, EclipseLink) in order to use the JPA implementation. The persistence providers have the implementation classes for JPA specifications.

Problem

I am new to JPA. As per my understanding, JPA is specification and Hibernate implements JPA and provide add on features along with JPA methods. But I was going through JPA tutorials, where using `EntityManager` object we can perform CRUD on data, without using Hibernate libraries! So can anyone please let me know - Can I use JPA alone using `EntityManager` methods, not using Hibernate? Please mention some useful link or example. Much appreciate response. Thanks.

Original source