I've got columns for 'last update by' and 'last update timestamp' in many of my tables. The last update by is *not* the user logged into the database, it is the user logged into the web application.
I realize that, through code, I could constantly check values that are being updated in my pojos and set the fields manually when a user changes a value, and these adjustments would in turn be persisted to the database by hibernate.
But I'm wondering if there is some other method, as part of hibernate, that would be a better alternative.
Any suggestions?
|