I'm debuggin the class org.hibernate.envers.event.EnversPostUpdateEventListenerImpl and in the following method AuditWorkUnit workUnit = new ModWorkUnit(event.getSession(),event.getPersister().getEntityName(),getAuditConfiguration(),event.getId(),event.getPersister(),newDbState,event.getOldState()); event.getOldState is null, but in my opinion it should be not null. This is why envers add a new record to the AUD table. Am I missing anything? |