Hibernate code for auditing