You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In previous versions it was possible to set an EntityInterceptor for a specific HibernateTransactionManager, which would use it when creating the session. This functionality has been removed. Would it be possible to have it re-added? I found it useful.
I see from #13580 I can set the entityInterceptor in the LocalSessionFactoryBean, but I don't want it globally - just for this one session.
The problem here is that Hibernate's underlying SessionFactory.openSession(Interceptor) method has been removed in Hibernate 4.0. We are not aware of an alternative way to specify a per-Session interceptor yet, which is why our HibernateTransactionManager for Hibernate 4 doesn't support it at this point.
David Dulson opened SPR-10301 and commented
In previous versions it was possible to set an EntityInterceptor for a specific HibernateTransactionManager, which would use it when creating the session. This functionality has been removed. Would it be possible to have it re-added? I found it useful.
I see from #13580 I can set the entityInterceptor in the LocalSessionFactoryBean, but I don't want it globally - just for this one session.
Affects: 3.2.1
Attachments:
Referenced from: commits b979d8d, 096972d
The text was updated successfully, but these errors were encountered: