Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2006-12-21 15:47:02 +0000
committermtaal2006-12-21 15:47:02 +0000
commitd94e0e8307762bebd54313490014a7c6c2dee0ae (patch)
tree657ac90d72fb137fae4f7dafcf892b15e865dab0 /plugins/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo
parent5ea0a053e294b2e8e40a39b301ab970517106c41 (diff)
downloadorg.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.java6
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");
}

Back to the top