|
Currently SessionImpl.beforeTransactionCompletion.beforeTransactionCompletion() will catch, log and ignore any exception thrown by the Interceptor beforeTransactionCompletion(). This means that if there is a problem in the interceptor, the commit will still be carried out.
I can find no documentation or motivation for this behavior. It should be changed so that exceptions will abort the commit and allow the code to do rollback instead.
|