Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2012-11-19 16:30:18 -0500
committerMartin Taal2012-11-19 16:30:18 -0500
commit73f67f1416c040becd2f2001a5941446bb797fc8 (patch)
treee580b849e97503feeb26da428dd6e8e58f5741c7 /generator/org.eclipse.emf.texo.orm
parentfbd7fe6e72f1ddd097105b036b127bbe435d8af1 (diff)
downloadorg.eclipse.emf.texo-73f67f1416c040becd2f2001a5941446bb797fc8.tar.gz
org.eclipse.emf.texo-73f67f1416c040becd2f2001a5941446bb797fc8.tar.xz
org.eclipse.emf.texo-73f67f1416c040becd2f2001a5941446bb797fc8.zip
Fixes issue [394602] - Index and Indexes annotation use wrong package name
Diffstat (limited to 'generator/org.eclipse.emf.texo.orm')
-rw-r--r--generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMJavaAnnotationGenerator.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMJavaAnnotationGenerator.java b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMJavaAnnotationGenerator.java
index dafa280d..5d2f0622 100644
--- a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMJavaAnnotationGenerator.java
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMJavaAnnotationGenerator.java
@@ -80,6 +80,7 @@ public class ORMJavaAnnotationGenerator {
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getEclipselinkCollectionTable());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getExistenceType());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getIdValidation());
+ eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getIndex());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getInstantiationCopyPolicy());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getJoinFetchType());
eclipseLinkEClassifiers.add(OrmPackage.eINSTANCE.getNamedStoredProcedureQuery());
@@ -265,6 +266,9 @@ public class ORMJavaAnnotationGenerator {
if (value.endsWith("y")) {
return value.substring(0, value.length() - 1) + "ies";
}
+ if (value.endsWith("x")) {
+ return value + "es";
+ }
return value + "s";
}

Back to the top