コード例 #1
0
 @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);
 }
コード例 #2
0
 @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);
 }