Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2012-04-25 10:48:00 +0000
committerMartin Taal2012-04-25 10:48:00 +0000
commitb376066faa51fd2a6f69c1008ee584e21a03fd08 (patch)
tree19e29d0da40e6b74db56d6fe0665f4c95ebb2128 /plugins/org.eclipse.emf.cdo.server.hibernate
parenta22a3877ed029517e2dbc8b0516867c93d752eab (diff)
downloadcdo-b376066faa51fd2a6f69c1008ee584e21a03fd08.tar.gz
cdo-b376066faa51fd2a6f69c1008ee584e21a03fd08.tar.xz
cdo-b376066faa51fd2a6f69c1008ee584e21a03fd08.zip
Related to preventing unreproducable can not change a frozen revision error
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server.hibernate')
-rw-r--r--plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/WrappedHibernateList.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/WrappedHibernateList.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/WrappedHibernateList.java
index 3873e80bcf..89ed82d496 100644
--- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/WrappedHibernateList.java
+++ b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/WrappedHibernateList.java
@@ -20,6 +20,7 @@ import org.eclipse.emf.cdo.server.internal.hibernate.HibernateUtil;
import org.eclipse.emf.cdo.spi.common.revision.CDOReferenceAdjuster;
import org.eclipse.emf.cdo.spi.common.revision.InternalCDOList;
+import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EClassifier;
import org.eclipse.emf.ecore.EEnumLiteral;
import org.eclipse.emf.ecore.EStructuralFeature;
@@ -137,6 +138,12 @@ public class WrappedHibernateList implements InternalCDOList
list.add(type.copyValue(get(i)));
}
+ if (classifier instanceof EClass)
+ {
+ WrappedHibernateList wrapped = new WrappedHibernateList();
+ wrapped.setDelegate(list);
+ return wrapped;
+ }
return list;
}

Back to the top