Simple AOP Alliance {@link MethodInterceptor} implementation that binds a newHibernate {@link Session} for each method invocation, if none bound before.
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.
@author Juergen Hoeller
@since 4.0.2
@see OpenSessionInViewInterceptor
@see OpenSessionInViewFilter
@see org.springframework.orm.hibernate4.HibernateTransactionManager
@see org.springframework.transaction.support.TransactionSynchronizationManager
@see org.hibernate.SessionFactory#getCurrentSession()