2 Replies Latest reply on Aug 11, 2010 6:16 AM by Robin G

    Update and delete in one go

    Vishal Agarwal Newbie

      Hi,
      I am using envers for auditing purpose.
      In my application, at the time of deletion, i need to update some fields also (E.g "reason for delete" etc). This can be acheived by first updating the entity and then remove it. But in this way there are 2 versions are created in audit table (By obvious reason). I do not want these two versions and just want only version which is due to deletion (with "reason for delete" value).
      Is it possible by hibernate/envers?