This package contains an
of a JPA
PersistenceProvider. You may
choose Hibernate as your JPA persistence provider by including the
following line in
When working with the Hibernate persistence provider, keep in mind that:
EntityManagerFactoryis also a
EntityManageris also a
Queryis also a
Thus, Hibernate's many powerful extensions to the JPA specification are always readily accessible.
- The subpackage
org.hibernate.jpa.boot.spicontains the SPI of this persistence provider, including an SPI used to bootstrap the JPA provider, and interfaces which may be implemented to contribute extensions during of the bootstrap process.
- The package
org.hibernate.jpa.eventimplements support for JPA event listeners.
- The package
org.hibernate.jpa.spiprovides SPIs for managing cases where Hibernate intentionally violates the JPA specification by default (something Hibernate only does when it has a really good reason to do so).
Finally, we have two interfaces which enumerate the JPA query hints recognized by Hibernate:
Interface Summary Interface Description AvailableHintsCombined set of Hibernate and Jakarta Persistence hints. HibernateHintsList of Hibernate-specific (extension) hints available to query, load, and lock scenarios. JpaComplianceViolationMarker interface for exceptions describing JPA compliance violations. LegacySpecHints Deprecated.Use the
SpecHintsThe hints explicitly defined by the Jakarta Persistence specification which are available for both queries and loading.
Class Summary Class Description HibernatePersistenceProviderThe best-ever implementation of a JPA