aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2012-12-18 12:08:28 (EST)
committerMartin Taal2012-12-18 12:08:28 (EST)
commit6d44c46db3f64cc1f15cc6f72062eaf9b3f0762c (patch)
tree99af5317f69f322779d5667aee33835010590ed9
parenta915ec2e5e8d311e580002f701e65498d2b542fd (diff)
downloadorg.eclipse.emf.teneo-6d44c46db3f64cc1f15cc6f72062eaf9b3f0762c.zip
org.eclipse.emf.teneo-6d44c46db3f64cc1f15cc6f72062eaf9b3f0762c.tar.gz
org.eclipse.emf.teneo-6d44c46db3f64cc1f15cc6f72062eaf9b3f0762c.tar.bz2
Support foreign key on key element
-rwxr-xr-xhibernate/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/ManyAttributeMapper.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/hibernate/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/ManyAttributeMapper.java b/hibernate/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/ManyAttributeMapper.java
index e1ca990..086579c 100755
--- a/hibernate/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/ManyAttributeMapper.java
+++ b/hibernate/org.eclipse.emf.teneo.hibernate.mapper/src/org/eclipse/emf/teneo/hibernate/mapper/ManyAttributeMapper.java
@@ -69,6 +69,8 @@ public class ManyAttributeMapper extends AbstractAssociationMapper implements Ex
.getJoinColumns());
final OneToMany otm = paAttribute.getOneToMany();
+ addForeignKeyAttribute(keyElement, paAttribute);
+
if (jt != null) {
addJoinTable(hbAttribute, collElement, keyElement, jt);
addKeyColumns(hbAttribute, keyElement, jcs);