Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2010-06-24 18:52:26 +0000
committerkmoore2010-06-24 18:52:26 +0000
commit8972e09eb6796342ead73900caf33d98ada9d972 (patch)
tree079aea6b25b1ae922fe763fc52305bc426cfb196
parent6293ed866fb5e01a08a44de010380562096af365 (diff)
downloadwebtools.dali-8972e09eb6796342ead73900caf33d98ada9d972.tar.gz
webtools.dali-8972e09eb6796342ead73900caf33d98ada9d972.tar.xz
webtools.dali-8972e09eb6796342ead73900caf33d98ada9d972.zip
317331 - canonical metamodel gen for basic ElementCollection in orm.xml is incorrect
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa2/context/orm/AbstractOrmElementCollectionMapping2_0.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa2/context/orm/AbstractOrmElementCollectionMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa2/context/orm/AbstractOrmElementCollectionMapping2_0.java
index 13ef480789..00b1d5be03 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa2/context/orm/AbstractOrmElementCollectionMapping2_0.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa2/context/orm/AbstractOrmElementCollectionMapping2_0.java
@@ -1001,6 +1001,9 @@ public abstract class AbstractOrmElementCollectionMapping2_0<T extends XmlElemen
@Override
public String getMetamodelTypeName() {
+ if (this.valueType == Type.BASIC_TYPE) {
+ return getTargetClass();
+ }
if (this.resolvedTargetType == null) {
return MetamodelField.DEFAULT_TYPE_NAME;
}

Back to the top