diff options
author | mtaal | 2006-12-21 15:47:02 +0000 |
---|---|---|
committer | mtaal | 2006-12-21 15:47:02 +0000 |
commit | d94e0e8307762bebd54313490014a7c6c2dee0ae (patch) | |
tree | 657ac90d72fb137fae4f7dafcf892b15e865dab0 /plugins/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo | |
parent | 5ea0a053e294b2e8e40a39b301ab970517106c41 (diff) | |
download | org.eclipse.emf.teneo-d94e0e8307762bebd54313490014a7c6c2dee0ae.tar.gz org.eclipse.emf.teneo-d94e0e8307762bebd54313490014a7c6c2dee0ae.tar.xz org.eclipse.emf.teneo-d94e0e8307762bebd54313490014a7c6c2dee0ae.zip |
Added EcoreUtil.copy
Diffstat (limited to 'plugins/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo')
-rw-r--r-- | plugins/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/mapper/PersistenceMappingBuilder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/mapper/PersistenceMappingBuilder.java b/plugins/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/mapper/PersistenceMappingBuilder.java index 119deb2c6..7f84a9b46 100644 --- a/plugins/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/mapper/PersistenceMappingBuilder.java +++ b/plugins/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/mapper/PersistenceMappingBuilder.java @@ -11,7 +11,7 @@ * Martin Taal * </copyright> * - * $Id: PersistenceMappingBuilder.java,v 1.4 2006/12/21 15:46:34 mtaal Exp $ + * $Id: PersistenceMappingBuilder.java,v 1.5 2006/12/21 15:47:02 mtaal Exp $ */ package org.eclipse.emf.teneo.annotations.mapper; @@ -52,7 +52,7 @@ import org.eclipse.emf.teneo.annotations.xml.XmlPersistenceMapper; * returned. * * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ */ public class PersistenceMappingBuilder { @@ -188,7 +188,7 @@ public class PersistenceMappingBuilder { if (obj instanceof Collection) { pea.eSet(asf, EcoreUtil.copyAll((Collection)obj)); } else if (obj instanceof EObject) { - pea.eSet(asf, (EObject)obj); + pea.eSet(asf, EcoreUtil.copy((EObject)obj)); } else { throw new StoreAnnotationsException("Class " + obj.getClass().getName() + " not supported should be eobject or collection"); } |