Hi all,
I'm consistently getting that strange Hibernate warning in the logs and I wander what does it actually mean and does it require any fixing.
The simple test case for this follows:
def s = openNewSession()
s.flushMode = FlushMode.MANUAL
s.beginTransaction()
// Initiate new revision & audit record creation
s.update someAuditedEntity
s.flush()
// Here we get a WARN message issued due to Envers pre-commit actions:
// On close, shared Session had after transaction actions that have not yet been processed
s.transaction.commit()
So, basically there is a session with flushMode = MANUAL
and a transaction, in which an audited entity is updated.
This works as expected (update is performed, revision entries appear in the DB), but produces this warning message on transaction commit:
On close, shared Session had after transaction actions that have not yet been processed
"hibernate-core" version is 4.2.8.Final, "hibernate-envers" is 4.2.0.Final.
Any clues?