Why does hibernate show the commit log before the inserts and updates?

Hibernate logs show this:

[debug] o.h.e.t.i.TransactionImpl - begin
do stuff...
[debug] o.h.e.t.i.TransactionImpl - committing
do more stuff... inserts, updates etc...
[debug] o.h.e.j.i.JdbcCoordinatorImpl - HHH000420: Closing un-released batch

When it’s “supposed” to do this

[debug] o.h.e.t.i.TransactionImpl - begin
do stuff...
do more stuff... inserts, updates etc...
[debug] o.h.e.t.i.TransactionImpl - committing

I wrapped the entire thing in a transaction, so I don’t imagine it’s a problem with my code. Am I missing something? How can I control when the actual transactions happen?

1 Like