1 Reply Latest reply on Mar 16, 2010 3:59 AM by adamw

    Populate audit tables

    djabornig

      Is there any way to populate the audit tables not "by hand" if you want to add envers auditing to an existing software?

       

      It would be great to have some initializing process that takes the data of the real tables and writes an initial entry in audit tables...

        • 1. Re: Populate audit tables
          adamw

          There's no out-of-the-box tool, but it fairly easy to write the scripts.

           

          Just add an initial revision (say with number 1), and for each table, add each record to the _AUD table with the generated revision number and revision type 0.

           

          Adam