程序包的使用
org.springframework.orm.hibernate5
使用org.springframework.orm.hibernate5的程序包 程序包 说明 org.springframework.orm.hibernate5 Package providing integration of Hibernate 5.x with Spring concepts.org.springframework.orm.hibernate5.support Classes supporting theorg.springframework.orm.hibernate5
package.org.springframework.orm.hibernate5使用的org.springframework.orm.hibernate5中的类 类 说明 HibernateCallback Callback interface for Hibernate code.HibernateExceptionTranslator PersistenceExceptionTranslator
capable of translatingHibernateException
instances to Spring'sDataAccessException
hierarchy.HibernateOperations 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.LocalSessionFactoryBuilder 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.SessionHolder Resource holder wrapping a HibernateSession
(plus an optionalTransaction
).org.springframework.orm.hibernate5.support使用的org.springframework.orm.hibernate5中的类 类 说明 HibernateTemplate Helper class that simplifies Hibernate data access code.