Package org.springframework.orm.hibernate5
@NonNullApi
@NonNullFields
package org.springframework.orm.hibernate5
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.
-
ClassDescriptionCallback interface for Hibernate code.
PersistenceExceptionTranslator
capable of translatingHibernateException
instances to Spring'sDataAccessException
hierarchy.Hibernate-specific subclass of UncategorizedDataAccessException, for JDBC exceptions that Hibernate wrapped.Hibernate-specific subclass of ObjectRetrievalFailureException.Interface that specifies a common set of Hibernate operations as well as a generalHibernateOperations.execute(org.springframework.orm.hibernate5.HibernateCallback<T>)
method for Session-based lambda expressions.Hibernate-specific subclass of ObjectOptimisticLockingFailureException.Hibernate-specific subclass of InvalidDataAccessResourceUsageException, thrown on invalid HQL query syntax.Hibernate-specific subclass of UncategorizedDataAccessException, for Hibernate system errors that do not match any concreteorg.springframework.dao
exceptions.Helper class that simplifies Hibernate data access code.PlatformTransactionManager
implementation for a single HibernateSessionFactory
.FactoryBean
that creates a HibernateSessionFactory
.A Spring-provided extension of the standard HibernateConfiguration
class, addingSpringSessionContext
as a default and providing convenient ways to specify a JDBCDataSource
and an application class loader.Helper class featuring methods for Hibernate Session handling.Resource holder wrapping a HibernateSession
(plus an optionalTransaction
).Spring's implementation of Hibernate'sBeanContainer
SPI, delegating to a SpringConfigurableListableBeanFactory
.Simple synchronization adapter that propagates aflush()
call to the underlying Hibernate Session.Spring-specific subclass of Hibernate's JTASessionContext, settingFlushMode.MANUAL
for read-only transactions.Implementation of Hibernate 3.1'sCurrentSessionContext
interface that delegates to Spring'sSessionFactoryUtils
for providing a Spring-managed currentSession
.Callback for resource cleanup at the end of a Spring-managed transaction for a pre-bound Hibernate Session.