title: How to delete entries from my audit table?
body: <p>I am currently working with Hibernate Envers.</p>
  
  <p>How to delete entries in the audit table related to the entity I want to delete? My entity has no relation with other entities.</p>
  
  <p>I figured out that I have to do that in <code>onPostDelete</code> method of my custom listener:</p>
  
  <pre><code>import org.hibernate.envers.event.AuditEventListener;
  import org.hibernate.event.PostCollectionRecreateEvent;
  import org.hibernate.event.PostDeleteEvent;
  import org.hibernate.event.PostInsertEvent;
  import org.hibernate.event.PostUpdateEvent;
  import org.hibernate.event.PreCollectionRemoveEvent;
  import org.hibernate.event.PreCollectionUpdateEvent;
  
  public class MyListener extends AuditEventListener {
  
    ...
    @Override
    public void onPostDelete(PostDeleteEvent arg0) {
      // TODO Auto-generated method stub
      super.onPostDelete(arg0);
    }
    ...
  
  }
  </code></pre>
  
  <p>I've read the documentation, forums, many things but I can't figure it out. Maybe it's not possible, I don't know.</p>
  
  <p>Has someone ever done this before?</p>