[jboss-user] [EJB 3.0 Users] - how to save the history of modifications of the table?

maestr0 do-not-reply at jboss.com
Thu Sep 24 05:30:45 EDT 2009


Hi,

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 ? 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256829#4256829

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256829



More information about the jboss-user mailing list