Hi,
I have Tables A and B (not related). When I save or load or insert in A, a new record needs to be inserted in B.
I was looking at the Interceptor to handle this (no triggers). However, seems that the Session is not accessible in Interceptor . There seems to be hack around it by creating a new session in the interceptor.
http://forum.hibernate.org/viewtopic.php?t=932065&highlight=interceptor
However, I am confused as to how to access the sessionFactory and the oldSession in Interceptor (based on the hack solution).
Would appreciate any solution ?
Thanks
Shishir