Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Is it possible to have an audit table with all the column of the base table, that is updated only when a specific column is modified? If I add the @Audited annotation to my Entity class I have an audit table with all the columns, but a new row is inserted every time a field is modified; otherwise, if I add the @Audited annotation only to one property, hibernate will add a new row inside the audit table only when that property is modified, but the audit table will have only one column ( the column of the property annotated). Any suggestion?

question from:https://stackoverflow.com/questions/65942016/spring-boot-with-hibernate-envers-all-fields-in-audit-table

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
484 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...