This is a simple Hibernate Session scoping interceptor along the lines of {@link OpenSessionInViewInterceptor}, just for use with AOP setup instead of MVC setup. It opens a new {@link Session} with flush mode "MANUAL" since theSession is only meant for reading, except when participating in a transaction.
Note: This can serve as a streamlined alternative to the outdated {@link org.springframework.orm.hibernate3.HibernateInterceptor}, providing plain Session binding without any automatic exception translation or the like. @author Juergen Hoeller @since 4.0.2 @see OpenSessionInViewInterceptor @see OpenSessionInViewFilter @see org.springframework.orm.hibernate3.HibernateTransactionManager @see org.springframework.transaction.support.TransactionSynchronizationManager @see org.hibernate.SessionFactory#getCurrentSession()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|