StateDelete stateDelete = ReflectionUtils.getAnnotation(entityClass,StateDelete.class);
if (stateDelete == null) {
return Boolean.TRUE;
}
Object value = ConvertUtils.convertToObject(stateDelete.value(), stateDelete.type().getValue());
ReflectionUtils.invokeSetterMethod(entity, stateDelete.propertyName(), value);
persistentContext.update(entity);
return Boolean.FALSE;
}