net.sf.hibernate.Interceptor and HibernateDaoSupport
I am using HibernateDaoSupport. I have written a net.sf.hibernate.Interceptor for AuditLogging. If I were using Hibernate, I would use the following code to get the session using the hibernate interceptor:
Code:
Session session = sf.openSession ( new AuditInterceptor() );
Is there a way to pass in an interceptor to HibernateDaoSupport? If not, is there an alternative best way to use a Hibernate Interceptor within the confines of the hibernate support in the SpringFramework? Do I need to subclass HibernateDaoSupport to make this happen?
Thank you for your time.