* implement unsetConstraints() to unset complex references
This commit is contained in:
parent
6e672d330f
commit
626ce207a0
1 changed files with 2 additions and 2 deletions
|
@ -2492,9 +2492,9 @@ public final class Node implements INode, Serializable {
|
||||||
// unset constraints.
|
// unset constraints.
|
||||||
Relation rel = dbmap.getExactPropertyRelation(propname);
|
Relation rel = dbmap.getExactPropertyRelation(propname);
|
||||||
|
|
||||||
if (rel != null && (rel.isComplexReference() || rel.countConstraints() > 1)) {
|
if (rel != null && (rel.isComplexReference())) {
|
||||||
p = getProperty(propname);
|
p = getProperty(propname);
|
||||||
System.err.println ("NEED TO UNSET: "+p.getNodeValue());
|
rel.unsetConstraints(this, p.getNodeValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception ignore) {
|
} catch (Exception ignore) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue