This content has been marked as final. Show 2 replies
I'm developing an application in Seam. Not going into the details this is a CRUD app and has to keep track on every modification a user ever did in the DB. So I have a few tables and modifying them the app has to save the old values in the historical tables with the same structure (could be even the same tables). Thanks to this I'll know which user did what.
The question is how to implement this. I'm using seam conversation, so the modifications in the DB are being done once a conversation has ended.
There is an annotation @PrePersist...but from there I can't get the previous version of the data. Can I ?
Any ideas ?