I am recording a history of all changes for some objects and am going to implement a mechanism like Envers to take care of this automatically. My question is whether to use Hibernate interceptors or their event system ?
Interceptors seem to be a bit simpler and do whatever I need. And the Hibernate documentation suggests using interceptors to "track audit information." But their audit information is not in the table of related services for each facility, and Envers uses an event system, which I suppose for some reason.
I am using Spring 3.0 and Hibernate 3.5 (latest stables).
UPDATE : database triggers are not desirable for this situation. I really want to hear thoughts about sleep mode interceptors and events for audit logs / revision history.
source
share