Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jpa
diff options
context:
space:
mode:
authornhauge2011-02-03 17:07:31 +0000
committernhauge2011-02-03 17:07:31 +0000
commite37706c77c914f254363f0bc36674c3c24a54167 (patch)
tree5804c4d99b75211de5bc78cde25cdabcd9a1dbfb /jpa
parente75640b4f03e58e6a26eae1eee347951718b3a3f (diff)
downloadwebtools.dali-e37706c77c914f254363f0bc36674c3c24a54167.tar.gz
webtools.dali-e37706c77c914f254363f0bc36674c3c24a54167.tar.xz
webtools.dali-e37706c77c914f254363f0bc36674c3c24a54167.zip
336009 - yank enumerated translator for id mapping in eclipselink-orm.xml. This was causing problems when creating an Id mapping, where enumerated didn't belong. Patch from Nan.
Diffstat (limited to 'jpa')
-rw-r--r--jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlId.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlId.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlId.java
index 4889cfc7bd..23a6cc5c10 100644
--- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlId.java
+++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlId.java
@@ -1085,7 +1085,6 @@ public class XmlId extends org.eclipse.jpt.core.resource.orm.XmlId implements Xm
buildIndexTranslator(),
buildGeneratedValueTranslator(),
buildTemporalTranslator(),
- buildEnumeratedTranslator(),
buildConvertTranslator(),
buildConverterTranslator(),
buildTypeConverterTranslator(),
@@ -1137,11 +1136,7 @@ public class XmlId extends org.eclipse.jpt.core.resource.orm.XmlId implements Xm
protected static Translator buildAttributeTypeTranslator() {
return new Translator(EclipseLink2_1.ATTRIBUTE_TYPE, EclipseLinkOrmV2_1Package.eINSTANCE.getXmlId_2_1_AttributeType(), Translator.DOM_ATTRIBUTE);
}
-
- protected static Translator buildEnumeratedTranslator() {
- return new Translator(JPA.ENUMERATED, OrmPackage.eINSTANCE.getXmlConvertibleMapping_Enumerated());
- }
-
+
protected static Translator buildTableGeneratorTranslator() {
return XmlTableGenerator.buildTranslator(JPA.TABLE_GENERATOR, OrmPackage.eINSTANCE.getXmlGeneratorContainer_TableGenerator());
}

Back to the top