Hibernate Team |
 |
Joined: Tue Aug 26, 2003 3:00 pm Posts: 1816 Location: Austin, TX
|
As 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 a "no op" Interceptor and pass it in to openSession(). This part will be addressed in the next release.
|
|