1 Reply Latest reply on Aug 3, 2011 9:09 AM by Adam Warski

    How can I store the current data using envers

    Maurus Spescha Newbie

      Hi All,

       

      I have an application in which changes are done using hibernate and plain sql (without hibernate).

       

      For the changes done with hibernate I would like to store the current data in an audit table using envers e.g.

       

      current data: aaaa, bbbb

      new data:     cccc, dddd

       

      Now I would like that aaaa, bbbb goes the audit table and cccc, dddd to the current table.

       

      Right now I get cccc, dddd in the audit table and the current table and there is no way I can find out what originally was in the current table.

       

      Many thanks for your answer                        Maurus