This content has been marked as final.
Show 2 replies
-
1. Re: Does ENVERS do an audit only when the transaction is committed?
adamw Jun 3, 2011 9:27 AM (in response to shyenuganti)As long as all the inserts/updates happen in the transaction, the audit logs should be written at the end of it. So when the transaction is commited, audit entries for all the operations that happended get written. Before that, it is not possible to determine what the audit entry should be (if you change and flush the same entity several times).
Do you see some audit entries missing?
Adam
-
2. Re: Does ENVERS do an audit only when the transaction is committed?
shyenuganti Jun 3, 2011 10:22 AM (in response to adamw)Yes, Only the last entry is being audited !! I can see the listener being called for every insert/update but audit tables are updated only for the last update.