Hi,
I am using
Hibernate version: 3.x; and am trying to integrate interceptors in my Technology stack. I have been reading many help documents, and any examples/samples have pointed me to a Java code to integrate interceptor in session or session-factory.
Session
Code:
Session session = sf.openSession( new AuditInterceptor() );
Session FactoryCode:
new Configuration().setInterceptor( new AuditInterceptor() );
I am looking at a code, where I can add my interceptors in a configuration file and when my session-factory is getting created it should be added to the factory right-away.
Any help/pointers would be appreciated.
Thanks & Regards
Kapil Viren Ahuja