openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Talbut <>
Subject OpenJPA Audit
Date Fri, 22 Jun 2012 16:14:30 GMT
Just want to say thanks.

Some time ago I was involved in a discussion here about doing audit 
using lifecycle listeners.
There are a whole bunch of problems with this approach and, although my 
implementation worked, it was not specified that it would work.

Yesterday I needed to add an audit facility to a system and noticed the 
new @Auditable annotation 
I spent some time worrying about how to write the data to the database - 
assuming I'd have to use JDBC and worrying about how to inject the data 
Then I noticed that the Broker passed lets me persist a new Entity 
during the audit.

Thank you guys.


View raw message