See: Description
Interface | Description |
---|---|
HibernateCallback<T> |
Callback interface for Hibernate code.
|
HibernateOperations |
Interface that specifies a basic set of Hibernate operations,
implemented by
HibernateTemplate . |
Class | Description |
---|---|
HibernateExceptionTranslator |
PersistenceExceptionTranslator capable of translating HibernateException
instances to Spring's DataAccessException hierarchy. |
HibernateTemplate |
Helper class that simplifies Hibernate data access code.
|
HibernateTransactionManager |
PlatformTransactionManager
implementation for a single Hibernate SessionFactory . |
LocalSessionFactoryBean |
FactoryBean that creates a Hibernate
SessionFactory . |
LocalSessionFactoryBuilder |
A Spring-provided extension of the standard Hibernate
Configuration class,
adding SpringSessionContext as a default and providing convenient ways
to specify a DataSource and an application class loader. |
SessionFactoryUtils |
Helper class featuring methods for Hibernate Session handling.
|
SessionHolder |
Session holder, wrapping a Hibernate Session and a Hibernate Transaction.
|
SpringFlushSynchronization |
Simple synchronization adapter that propagates a
flush() call
to the underlying Hibernate Session. |
SpringJtaSessionContext |
Spring-specific subclass of Hibernate's JTASessionContext,
setting
FlushMode.MANUAL for read-only transactions. |
SpringSessionContext |
Implementation of Hibernate 3.1's CurrentSessionContext interface
that delegates to Spring's SessionFactoryUtils for providing a
Spring-managed current Session.
|
SpringSessionSynchronization |
Callback for resource cleanup at the end of a Spring-managed transaction
for a pre-bound Hibernate Session.
|
Exception | Description |
---|---|
HibernateJdbcException |
Hibernate-specific subclass of UncategorizedDataAccessException,
for JDBC exceptions that Hibernate wrapped.
|
HibernateObjectRetrievalFailureException |
Hibernate-specific subclass of ObjectRetrievalFailureException.
|
HibernateOptimisticLockingFailureException |
Hibernate-specific subclass of ObjectOptimisticLockingFailureException.
|
HibernateQueryException |
Hibernate-specific subclass of InvalidDataAccessResourceUsageException,
thrown on invalid HQL query syntax.
|
HibernateSystemException |
Hibernate-specific subclass of UncategorizedDataAccessException,
for Hibernate system errors that do not match any concrete
org.springframework.dao exceptions. |
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.
See the org.springframework.orm.hibernate4
package for Hibernate 4.x support.
Note: Do not use HibernateTemplate or other classes from the hibernate4 package
with Hibernate 5; this will lead to class definition exceptions at runtime.