diff options
author | mtaal | 2011-10-29 06:13:50 +0000 |
---|---|---|
committer | mtaal | 2011-10-29 06:13:50 +0000 |
commit | 3f87ec615c82616d62a6d49671326f33901f0302 (patch) | |
tree | 0a267e2af44319fd0485263afcc8539676ae15b4 | |
parent | 89280a0faaca8ad3da25ba1df0c39738f8234a20 (diff) | |
download | org.eclipse.emf.teneo-3f87ec615c82616d62a6d49671326f33901f0302.tar.gz org.eclipse.emf.teneo-3f87ec615c82616d62a6d49671326f33901f0302.tar.xz org.eclipse.emf.teneo-3f87ec615c82616d62a6d49671326f33901f0302.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.java | 5 |
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()); } |