non validated rel has null value in validated field
This commit is contained in:
parent
83d815d0bc
commit
32e81c2d89
|
@ -1094,6 +1094,8 @@ public class XmlRecordFactory implements Serializable {
|
||||||
String.format("missing scheme for: <%s - %s>", type.toString(), targetType));
|
String.format("missing scheme for: <%s - %s>", type.toString(), targetType));
|
||||||
}
|
}
|
||||||
final HashSet<String> fields = Sets.newHashSet(mapFields(link, contexts));
|
final HashSet<String> fields = Sets.newHashSet(mapFields(link, contexts));
|
||||||
|
if (rel.getValidated() == null)
|
||||||
|
rel.setValidated(false);
|
||||||
return templateFactory
|
return templateFactory
|
||||||
.getRel(
|
.getRel(
|
||||||
targetType, rel.getTarget(), fields, rel.getRelClass(), scheme, rel.getDataInfo(), rel.getValidated(),
|
targetType, rel.getTarget(), fields, rel.getRelClass(), scheme, rel.getDataInfo(), rel.getValidated(),
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
"relClass": "isProducedBy",
|
"relClass": "isProducedBy",
|
||||||
"source": "50|CSC_________::0000ec4dd9df012feaafa77e71a0fb4c",
|
"source": "50|CSC_________::0000ec4dd9df012feaafa77e71a0fb4c",
|
||||||
"target": "40|corda__h2020::79a0e16c122c9a18eb60e4a5e64b620d",
|
"target": "40|corda__h2020::79a0e16c122c9a18eb60e4a5e64b620d",
|
||||||
"validated": false,
|
"validated": null,
|
||||||
"validationDate": null,
|
"validationDate": null,
|
||||||
"properties": []
|
"properties": []
|
||||||
}
|
}
|
Loading…
Reference in New Issue