Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2009-11-05 14:17:32 -0500
committerEike Stepper2009-11-05 14:17:32 -0500
commit700e13e0ff460d906fae92d4e2ea64c960767719 (patch)
tree29cd214bfdf349feda5f5771dd7e761114f2a46d /plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util
parent39722b8c3978c68490e619df26539320ea2a832d (diff)
downloadcdo-700e13e0ff460d906fae92d4e2ea64c960767719.tar.gz
cdo-700e13e0ff460d906fae92d4e2ea64c960767719.tar.xz
cdo-700e13e0ff460d906fae92d4e2ea64c960767719.zip
[290990] Provide a persistent=true annotation
https://bugs.eclipse.org/bugs/show_bug.cgi?id=290990
Diffstat (limited to 'plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util')
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java
index 64752a777f..a9c7b449fd 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java
@@ -14,6 +14,7 @@ package org.eclipse.emf.internal.cdo.util;
import org.eclipse.emf.cdo.CDOObject;
import org.eclipse.emf.cdo.CDOState;
import org.eclipse.emf.cdo.common.id.CDOID;
+import org.eclipse.emf.cdo.common.model.EMFUtil;
import org.eclipse.emf.cdo.common.revision.CDORevision;
import org.eclipse.emf.cdo.spi.common.model.InternalCDOPackageRegistry;
import org.eclipse.emf.cdo.util.InvalidObjectException;
@@ -273,7 +274,7 @@ public final class FSMUtil
EStructuralFeature eContainingFeature = eObject.eContainingFeature();
if (isResource || eObject.eDirectResource() == null
- && (eContainingFeature == null || !eContainingFeature.isTransient()))
+ && (eContainingFeature == null || EMFUtil.isPersistent(eContainingFeature)))
{
next = adapt(eObject, cdoView);
if (next instanceof InternalCDOObject)

Back to the top