Package org.springframework.orm.jpa.hibernate
@NullMarked
package org.springframework.orm.jpa.hibernate
Hibernate-specific support classes, integrated with JPA.
Contains Hibernate-specific setup options as an alternative to JPA bootstrapping,
primarily for use with Hibernate's native SessionFactory#getCurrentSession()
but potentially also for JPA repositories or mixed use of native Hibernate and JPA.
As of Spring Framework 7.0, this package supersedes orm.hibernate5
-
now for use with Hibernate ORM 7.1+, tightly integrated with JPA.
-
ClassesClassDescription
PersistenceExceptionTranslator
capable of translatingHibernateException
and standard JPAPersistenceException
instances to Spring'DataAccessException
hierarchy.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.Spring's implementation of Hibernate'sBeanContainer
SPI, delegating to a SpringConfigurableListableBeanFactory
.Implementation of Hibernate'sCurrentSessionContext
interface that provides a Spring-managed currentSession
.