Top Description Interfaces Classes
[default module]

Package org.springframework.orm.hibernate5

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Package providing integration of Hibernate 5.x with Spring concepts.

Contains an implementation of Spring's transaction SPI for local Hibernate transactions. This package is intentionally rather minimal, with no template classes or the like, in order to follow Hibernate recommendations as closely as possible. We recommend using Hibernate's native sessionFactory.getCurrentSession() style.

This package supports Hibernate 5.x only.

Interface Summary

Modifier and TypeInterface and Description
public interface
HibernateCallback<
the result type
T
>

Callback interface for Hibernate code.

public interface
HibernateOperations

Interface that specifies a common set of Hibernate operations as well as a general execute method for Session-based lambda expressions.

Class Summary

Modifier and TypeClass and Description
pack-priv class
ConfigurableJtaPlatform

Implementation of Hibernate 5's JtaPlatform SPI, exposing passed-in TransactionManager, UserTransaction and TransactionSynchronizationRegistry references.

public class
public class
HibernateJdbcException

Hibernate-specific subclass of UncategorizedDataAccessException, for JDBC exceptions that Hibernate wrapped.

public class
HibernateObjectRetrievalFailureException

Hibernate-specific subclass of ObjectRetrievalFailureException.

public class
HibernateOptimisticLockingFailureException

Hibernate-specific subclass of ObjectOptimisticLockingFailureException.

public class
HibernateQueryException

Hibernate-specific subclass of InvalidDataAccessResourceUsageException, thrown on invalid HQL query syntax.

public class
HibernateSystemException

Hibernate-specific subclass of UncategorizedDataAccessException, for Hibernate system errors that do not match any concrete org.springframework.dao exceptions.

public class
HibernateTemplate

Helper class that simplifies Hibernate data access code.

public class
public class
public class
LocalSessionFactoryBuilder

A Spring-provided extension of the standard Hibernate Configuration class, adding SpringSessionContext as a default and providing convenient ways to specify a JDBC DataSource and an application class loader.

public abstract class
SessionFactoryUtils

Helper class featuring methods for Hibernate Session handling.

public class
SessionHolder

Resource holder wrapping a Hibernate Session (plus an optional Transaction).

public class
SpringBeanContainer

Spring's implementation of Hibernate's BeanContainer SPI, delegating to a Spring ConfigurableListableBeanFactory.

public class
SpringFlushSynchronization

Simple synchronization adapter that propagates a flush() call to the underlying Hibernate Session.

public class
SpringJtaSessionContext

Spring-specific subclass of Hibernate's JTASessionContext, setting FlushMode.MANUAL for read-only transactions.

public class
SpringSessionContext

Implementation of Hibernate 3.1's CurrentSessionContext interface that delegates to Spring's SessionFactoryUtils for providing a Spring-managed current Session.

public class
SpringSessionSynchronization

Callback for resource cleanup at the end of a Spring-managed transaction for a pre-bound Hibernate Session.