This package contains an
implementation
of a JPA jakarta.. You may
choose Hibernate as your JPA persistence provider by including the
following line in persistence.xml:
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
When working with the Hibernate persistence provider, keep in mind that:
jakarta.persistence.EntityManagerFactory is also a
org.hibernate.SessionFactory ,
jakarta.persistence.EntityManager is also a
org.hibernate.Session , and
jakarta.persistence.Query is also a
org.hibernate.query.Query .
Thus, Hibernate's many powerful extensions to the JPA specification are always readily accessible.
org.hibernate.jpa.boot.spi contains 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.
org.hibernate.jpa.event implements support for JPA
event listeners.
org.hibernate.jpa.spi provides 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:
org.hibernate.jpa.SpecHints enumerates the standard hints
defined by the JPA specification, and
org.hibernate.jpa.HibernateHints enumerates hints defined
by Hibernate.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | AvailableHints
Combined set of Hibernate and Jakarta Persistence hints. |
| public interface | HibernateHints
List of Hibernate-specific (extension) hints available to query, load, and lock scenarios. |
| public interface | JpaComplianceViolation
Marker interface for exceptions describing JPA compliance violations. |
| public interface | LegacySpecHints
Deprecated
since 6.0. Use the Legacy form (the SpecHints form instead
javax.persistence namespace) of the hints
explicitly defined by the Jakarta Persistence.
|
| public interface | SpecHints
The hints explicitly defined by the Jakarta Persistence specification which are available for both queries and loading. |
| Modifier and Type | Class and Description |
|---|---|
| public class | HibernatePersistenceProvider
The best-ever implementation of a JPA |
| public class | QueryHints
Deprecated
since 6.0. Use List of all supported hints that may be passed to AvailableHints instead
jakarta..
|