non validated rel has null value in validated field

master
Alessia Bardi 3 years ago
parent 83d815d0bc
commit 32e81c2d89

@ -1094,6 +1094,8 @@ public class XmlRecordFactory implements Serializable {
String.format("missing scheme for: <%s - %s>", type.toString(), targetType));
}
final HashSet<String> fields = Sets.newHashSet(mapFields(link, contexts));
if (rel.getValidated() == null)
rel.setValidated(false);
return templateFactory
.getRel(
targetType, rel.getTarget(), fields, rel.getRelClass(), scheme, rel.getDataInfo(), rel.getValidated(),

@ -25,7 +25,7 @@
"relClass": "isProducedBy",
"source": "50|CSC_________::0000ec4dd9df012feaafa77e71a0fb4c",
"target": "40|corda__h2020::79a0e16c122c9a18eb60e4a5e64b620d",
"validated": false,
"validated": null,
"validationDate": null,
"properties": []
}
Loading…
Cancel
Save