From: Hannu Niemistö Date: Fri, 20 Oct 2017 22:15:23 +0000 (+0300) Subject: (refs #7570) Don't write change metadata for virtual properties X-Git-Tag: v1.31.0~99 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F38%2F1138%2F3;p=simantics%2Fplatform.git (refs #7570) Don't write change metadata for virtual properties Change-Id: Ib91b260eeba072a3e515fe3102ae98be521d90d4 --- diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/genericrelation/DependenciesRelation.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/genericrelation/DependenciesRelation.java index 4162f9163..a3e19f1fc 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/genericrelation/DependenciesRelation.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/genericrelation/DependenciesRelation.java @@ -277,6 +277,7 @@ public class DependenciesRelation extends UnsupportedRelation implements Generic Resource changeInformation = graph.getPossibleResource("http://www.simantics.org/Modeling-1.2/changeInformation/Inverse"); for (Resource value : parameter.changedValues()) { + if(!value.isPersistent()) continue; Statement modifiedComponent = graph.getPossibleStatement(value, l0.PropertyOf); if (modifiedComponent == null || modifiedComponent.getPredicate().equals(changeInformation))