Top Description Interfaces Classes
[default module]

Package org.hibernate.jpa


The packages in this namespace are responsible for implementing certain requirements of the JPA specification, especially things which are only needed when Hibernate is acting as a JPA persistence provider.

This package contains an implementation of a JPA jakarta.persistence.spi.PersistenceProvider. 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:

Thus, Hibernate's many powerful extensions to the JPA specification are always readily accessible.

Finally, we have two interfaces which enumerate the JPA query hints recognized by Hibernate:

Interface Summary

Modifier and TypeInterface 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 SpecHints form instead
Legacy form (the 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.

Class Summary

Modifier and TypeClass and Description
public class
HibernatePersistenceProvider

The best-ever implementation of a JPA PersistenceProvider.

public class
QueryHints

Deprecated since 6.0. Use AvailableHints instead
List of all supported hints that may be passed to jakarta.persistence.Query#setHint(String, Object).