@Override protected Serializable saveWithRequestedId( Object entity, Serializable requestedId, String entityName, Object anything, EventSource source) { callbackHandler.preCreate(entity); return super.saveWithRequestedId(entity, requestedId, entityName, anything, source); }
@Override protected Serializable saveWithGeneratedId( Object entity, String entityName, Object anything, EventSource source, boolean requiresImmediateIdAccess) { callbackHandler.preCreate(entity); return super.saveWithGeneratedId( entity, entityName, anything, source, requiresImmediateIdAccess); }