I have a User entity having around 12 properties. When end user updates any of the User detail, I need to delete this particular User's row from User_Db table and insert in User_Hist table and insert updated User Entity in User_Db table. How can this be achieved in Spring Data JPA?
Appreciate any help provided!!
I read about Hibernate Envers and about Spring Data JPA Auditing, however it creates its own table and audits only few columns. I need to handle complete entity(row deletion) and in existing table.