1 Reply Latest reply on Nov 21, 2012 2:30 PM by Adam Warski

    table, table_AUD and columns with different names

    Rodrigo Silva Newbie

      Hi!

       

      I'm facing a problem involving column names of table and table_AUD. For a reason that I don't understand (yet), the BD guys sent me an order to change the column names of a table_AUD. So, my scene is like this:

       

      //table

      TABLE {

           ID, CODE, NAME, EMAIL

      }

       

      //audit table

      XPTO {

          XPREV, XPREVTYPE, XPID, XPCODE, XPNAME, XPEMAIL

      }

       

      I need to inform envers that my audit table must use the names defined by the BD guys. In other words, column names of audit table must have different names as the original table. Is it possible?

       

      I'm using hibernate and envers versions 3.5.1.Final

       

      Thanks a lot!

       

      Rodrigo