Audit Complete Entity in existing DB Table

时间:2019-05-31 11:41:27

标签: spring-data-jpa

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.

0 个答案:

没有答案