0 Replies Latest reply on Apr 3, 2019 11:07 AM by atiruveedhi

    Hibernate Envers adding a custom column in Audit table

    atiruveedhi

      Hi,

      I have a requirement to add a custom column (reason/comments)  and need to save it only in the audit table rather than the regular entity table.

       

      I have gone through multiple threads in 2010,2012 but didnt find any clue. Do we have any option now ?

       

      2) I have used @Audited on entity level and have a column datemodified, but its not audited in audit table ? am i Missing any thing.

       

      @Basic

          @Version

          @LastModifiedDate

          @Column(name = "dateModified", nullable = false)

          public LocalDateTime getDateModified() {

              return dateModified;

          }

       

      Please verify and update me at earliest?