Skip to content
Snippets Groups Projects

fix https://gitlab.com/caosdb/caosdb-server/-/issues/216

Merged Timm Fitschen requested to merge f-server-216 into dev
2 files
+ 7
1
Compare changes
  • Side-by-side
  • Inline

Files

@@ -96,7 +96,11 @@ public class DatabaseUtils {
@@ -96,7 +96,11 @@ public class DatabaseUtils {
&& !p.isDatatypeOverride()
&& !p.isDatatypeOverride()
&& (!p.hasProperties() || hasUniquePropertyId(p, e))
&& (!p.hasProperties() || hasUniquePropertyId(p, e))
&& !(p.getDatatype() instanceof AbstractCollectionDatatype)) {
&& !(p.getDatatype() instanceof AbstractCollectionDatatype)) {
// if p has no sub-properties, just add it
// this property can be represented without any replacement. We explicitly
 
// setReplacement(null) because there is a corner case (related to the inheritance of
 
// properties) where there is a replacement present which belongs to the parent entity, see
 
// https://gitlab.com/caosdb/caosdb-server/-/issues/216.
 
p.setReplacement(null);
} else {
} else {
stage1Inserts.add(makeReplacement(p));
stage1Inserts.add(makeReplacement(p));
}
}
Loading