posted 14 years ago
Im using ejb3 for my backend system and am going to develop the audit trail logging system, Which method is more preferable, using entity listener or hibernate interceptor? Create a mirror history entity with additional audit trail fields, or a generic historyentity containing old property value and new property value (in this case, every record will be inside one single table)? I was concerning about the latter, if i were to create every single record inside history table for every single field change, would it slow down the system performance? please advise and suggest any other helpful resources which might be of some help to me. Thanks in advance.