MetadataValidation metadataValidation = new MetadataValidation()
.setStatus(MetadataValidationStatus.values()[results[0]])
.setTested(results[1])
.setFailed(results[2])
.setValidationDate(new ISODate(date));
MetadataValidationId validationId = new MetadataValidationId(Integer.valueOf(id), type);
metadataValidation.setId(validationId);
validationRepository.save(metadataValidation);
}
}