]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
(refs #7570) Don't write change metadata for virtual properties 38/1138/3
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Fri, 20 Oct 2017 22:15:23 +0000 (01:15 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 23 Oct 2017 20:18:32 +0000 (23:18 +0300)
Change-Id: Ib91b260eeba072a3e515fe3102ae98be521d90d4

bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/genericrelation/DependenciesRelation.java

index 4162f91636d0b39dfb193d7bb93c076e9885b849..a3e19f1fc7d94c2af38e01f003e368df7965335d 100644 (file)
@@ -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))