Is there any way to force auditing an entity, without explicit update it?
Situation: a method X, Y or Z may be executed at different moments. Only when executing method Z, I want to audit values updated in last method executed (X or Y) and values updated in method Z. I don't want enable auditing on every execution of X and Y because they are frequently executed and audit table would have a lot of useless records.
Summarizing, I want to insert two revisions of an entity at same transaction (I know envers inserts only one revision per transaction, so I asked it can force auditing).
Auditing will only be done once per transaction. Changing that would require some code changes to the Envers codebase. Moreover, this is non-trivial because you may have some unflushed changed, so it's not so easy to calculate the delta.