In general, yes, this is what I meant.
I think on_close or after_transaction might be better connection
release mode here.
Also, I would personally be more inclined to close the "temp session"
manually there in that block. But that part is really just a
preference I think.
On Mon 13 Feb 2012 02:42:07 PM CST, Ćukasz Antoniak wrote:
Thanks Steve for such a descriptive replay. I have played a little
with SessionBuilder and probably solved the issue. Because of great
importance of
AuditProcess#doBeforeTransactionCompletion(SessionImplementor) method,
please verify my commit:
https://github.com/lukasz-antoniak/hibernate-core/commit/e6aaa49dcc847e56....
Tell me if it makes sense from your perspective.
Regards,
Lukasz
--
steve(a)hibernate.org
http://hibernate.org