javahibernatehibernate-enversspring-data-envers

Hibernate Envers - delete revisions when entity is deleted


is there possibility to set Hibernate Envers so that when ever I delete original entity all revisions of it are deleted also? I need to track the history only when the original entity exists.


Solution

  • I don't think Envers itself offers such an option, so you have to do stuff yourself.

    Options that come to mind: