2 Replies Latest reply on Sep 25, 2009 3:04 AM by Pawel R

    how to save the history of modifications of the table?

    Pawel R Newbie


      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 ?