Hi,
For a Java Web Application (Struts / Spring / Hibernate), Hibernate Event Listeners are new feature for Audit logging.
When there is need to capture some extra information such as the User who updated an Entity, details of what entity attributes changed compared to preview entity attributes etc, are there best practice patterns that can be followed ?
Example : For the User related information, if every entity maintains change-log attributes (UpdatedBy, CreatedBy), then the entity itself can provide the info.
For comparison of what entity attributes changed compared to previous state of entity in DB, is there no way other than comparing all the entities attributes before inserting ? (This seems a redundant measure)