I need some help in resolving this issue. The issue is:
I am using HibernateEnvers for Auditing in spring data jpa. For insert and update operations the code is working fine. But in case of delete operation, current lastmodifieddate is not logging. The lastmodified date which is getting logged is of previous operation and not the current system date. I have set this hibernate property
org.hibernate.envers.store_data_at_delete = true
I have tried using @PostRemove and @PreRemove annotated methods to modify lastModifiedDate in entity but it doesn't work.
Please suggest some pointers on this.