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
PersistenceExceptionTranslatorcapable of translatingHibernateExceptionand standard JPAPersistenceExceptioninstances to Spring'DataAccessExceptionhierarchy.PlatformTransactionManagerimplementation for a single HibernateSessionFactory.FactoryBeanthat creates a HibernateSessionFactory.A Spring-provided extension of the standard HibernateConfigurationclass, addingSpringSessionContextas a default and providing convenient ways to specify a JDBCDataSourceand an application class loader.Spring's implementation of Hibernate'sBeanContainerSPI, delegating to a SpringConfigurableListableBeanFactory.Implementation of Hibernate'sCurrentSessionContextinterface that provides a Spring-managed currentSession.