Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2011-10-29 02:13:50 -0400
committermtaal2011-10-29 02:13:50 -0400
commit3f87ec615c82616d62a6d49671326f33901f0302 (patch)
tree0a267e2af44319fd0485263afcc8539676ae15b4
parent89280a0faaca8ad3da25ba1df0c39738f8234a20 (diff)
downloadorg.eclipse.emf.teneo-cvs_to_git_branch.tar.gz
org.eclipse.emf.teneo-cvs_to_git_branch.tar.xz
org.eclipse.emf.teneo-cvs_to_git_branch.zip
Also truncate/escape discriminatorcolumn namecvs_to_git_branch
-rw-r--r--plugins/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/EntityMapper.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/EntityMapper.java b/plugins/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/EntityMapper.java
index 1180fc073..cdbda5053 100644
--- a/plugins/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/EntityMapper.java
+++ b/plugins/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/EntityMapper.java
@@ -3,7 +3,7 @@
* reserved. This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html Contributors: Martin Taal
- * </copyright> $Id: EntityMapper.java,v 1.54 2011/02/21 06:39:57 mtaal Exp $
+ * </copyright> $Id: EntityMapper.java,v 1.55 2011/10/29 06:13:50 mtaal Exp $
*/
package org.eclipse.emf.teneo.hibernate.mapper;
@@ -769,7 +769,8 @@ public class EntityMapper extends AbstractMapper implements ExtensionPoint {
if (dColumn.getColumn() != null) {
final Column col = dColumn.getColumn();
final Element colElement = dcElement.addElement("column");
- colElement.addAttribute("name", col.getName());
+ colElement.addAttribute("name",
+ getHbmContext().trunc(dColumn, col.getName()));
if (col.getIndex() != null) {
colElement.addAttribute("index", col.getIndex());
}

Back to the top