@Override public boolean onPreInsert(PreInsertEvent event) { Object entity = event.getEntity(); if (entity instanceof IUpdateTimestampedEntity) { ((IUpdateTimestampedEntity) entity).updateUpdateTimestamp(); if (log.isDebugEnabled()) log.debug("UpdateTimestampedEntity의 updateTimestamp 값을 설정했습니다."); } return false; }
@Override public boolean onPreUpdate(PreUpdateEvent event) { if (log.isDebugEnabled()) log.debug("onPreUpdate 호출. PersistEvent=[{}]", event); Object entity = event.getEntity(); if (entity instanceof IUpdateTimestampedEntity) { ((IUpdateTimestampedEntity) entity).updateUpdateTimestamp(); if (log.isDebugEnabled()) log.debug("UpdateTimestampedEntity의 updateTimestamp 값을 설정했습니다."); } return false; }