Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2007-02-01 07:06:48 -0500
committermtaal2007-02-01 07:06:48 -0500
commitb988ed75faa54bec9ce4173d6e50faa8e7c0f28d (patch)
treeb3017df21e0672d1c4c2b1de37d82e37d2615717
parentd3af81f8ca83b6296bcd14e6f2df06d90886dc99 (diff)
downloadorg.eclipse.emf.teneo-b988ed75faa54bec9ce4173d6e50faa8e7c0f28d.tar.gz
org.eclipse.emf.teneo-b988ed75faa54bec9ce4173d6e50faa8e7c0f28d.tar.xz
org.eclipse.emf.teneo-b988ed75faa54bec9ce4173d6e50faa8e7c0f28d.zip
[172462]
-rw-r--r--plugins/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/mapper/DefaultAnnotator.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/mapper/DefaultAnnotator.java b/plugins/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/mapper/DefaultAnnotator.java
index 237d6e66c..95122b463 100644
--- a/plugins/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/mapper/DefaultAnnotator.java
+++ b/plugins/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/mapper/DefaultAnnotator.java
@@ -11,7 +11,7 @@
* Martin Taal
* </copyright>
*
- * $Id: DefaultAnnotator.java,v 1.19 2007/01/30 10:51:11 mtaal Exp $
+ * $Id: DefaultAnnotator.java,v 1.20 2007/02/01 12:06:48 mtaal Exp $
*/
package org.eclipse.emf.teneo.annotations.mapper;
@@ -80,7 +80,7 @@ import org.eclipse.emf.teneo.util.StoreUtil;
* information. It sets the default annotations according to the ejb3 spec.
*
* @author <a href="mailto:mtaal@elver.org">Martin Taal</a>
- * @version $Revision: 1.19 $
+ * @version $Revision: 1.20 $
*/
public class DefaultAnnotator {
@@ -362,7 +362,8 @@ public class DefaultAnnotator {
.equals(InheritanceType.TABLE_PER_CLASS_LITERAL))) {
final Table table = aFactory.createTable();
table.setEModelElement(eclass);
- table.setName(trunc(eclass.getName(), false));
+
+ table.setName(trunc(getEntityName(eclass).replace('.', '_'), false));
aClass.setTable(table);
} else if (aClass.getTable() != null && aClass.getTable().getName() == null) {
aClass.getTable().setName(trunc(eclass.getName(), false));

Back to the top