1. getCurrentSession with Interceptors forum.hibernate.orgAs discussed before, this was an over-sight. But not in the way you are suggesting. SessionFactory.getCurrentSession(Interceptor) make "absolutely no sense*. Basically you apply a SessionFactory-scoped Interceptor. Now, what was (and has been) an oversight, is that there is no good way to obtain a non-intercepted session from a SessionFactory which has a defined Interceptor. There is, but you'd need to build ... |
2. interceptor with getCurrentSession forum.hibernate.org |