JPA Vs Hibernate

JPA Vs Hibernate
  • JPA is an abstraction provided by SUN Micro systems and implemented by all Application Server vendors like Web logic Server vendor, JBOSS Server vendor. etc JPA provides a set of conventions to implement ORM rules and regulations.
  • Hibernate is a product, it has implemented ORM rules and regulations as per JPA guidelines in order to provide data Persistency in enterprise applications.
  • JPA is defined in javax.persistence package, where as hibernate defined in org.hibernate package.
  • JPA uses Java Persistence Query Language (JPQL) as an object-oriented query language to perform database operations. Hibernate uses Hibernate Query Language (HQL) as an object-oriented query language to perform database operations.
  • The EntityManagerFactory interface is used to interact with the entity manager factory for the persistence unit. Thus, it provides an entity manager. Hibernate uses SessionFactory interface to create Session instances.
JPA Vs Hibernate


Scroll to top