1 Reply Latest reply on Oct 12, 2010 9:41 AM by Adam Warski

    How to force auditing?

    Fernando Carneiro Newbie

      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).