return null;
}
Class<?> domainType = o.getClass();
Repositories repositories = repositoriesFactory.getObject();
Errors errors = new ValidationErrors(domainType.getSimpleName(), o, repositories.getPersistentEntity(domainType));
for (Validator v : getValidatorsForEvent(event)) {
if (v.supports(domainType)) {
LOGGER.debug("{}: {} with {}", event, o, v);
ValidationUtils.invokeValidator(v, o, errors);
}
}
if (errors.getErrorCount() > 0) {
throw new RepositoryConstraintViolationException(errors);
}
return errors;
}