protected Serializable entityIsTransient(SaveOrUpdateEvent event) throws HibernateException {
Serializable id = super.entityIsTransient(event);
Object object = event.getObject();
if(isAuditable(object)) {
Auditable auditable = (Auditable) object;
Integer uid = getAuthenticatedExecutingUser();
Date date = new Date();
auditable.setCreatedBy(uid);
auditable.setCreatedOn(date);
auditable.setLastUpdatedBy(uid);
auditable.setLastUpdateOn(date);
}
return id;
}