Hibernate, save the previous state of an object

后端 未结 5 2257
悲哀的现实
悲哀的现实 2021-01-03 09:08

Is there any generally accepted, proven-to-work way using hibernate, that keeps a history of an entitys changes in the database?

We need to keep track of quite some

5条回答
  •  礼貌的吻别
    2021-01-03 09:32

    There is an automatic versioning and auditing project developed by JBoss: envers. I can recommend using this, I've implemented auditing by hand before and that can get really messy when you start approaching more complex usecases.

提交回复
热议问题