Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2012-12-20 11:59:14 +0000
committerMartin Taal2012-12-20 11:59:14 +0000
commita36b30f14322d74069823336d1a6e01dbfe68ae0 (patch)
treeff2cc1c1b143bc3bef99d058f4b91e9f8ae42bef /tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_hsqldb_e_o_hibernate.hbm.xml
parent6d44c46db3f64cc1f15cc6f72062eaf9b3f0762c (diff)
downloadorg.eclipse.emf.teneo-a36b30f14322d74069823336d1a6e01dbfe68ae0.tar.gz
org.eclipse.emf.teneo-a36b30f14322d74069823336d1a6e01dbfe68ae0.tar.xz
org.eclipse.emf.teneo-a36b30f14322d74069823336d1a6e01dbfe68ae0.zip
Fixes issue 396988 - Also support foreign key attribute on key element in mapping
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_hsqldb_e_o_hibernate.hbm.xml')
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_hsqldb_e_o_hibernate.hbm.xml14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_hsqldb_e_o_hibernate.hbm.xml
index 2cda65d6d..3e3e9bb56 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_hsqldb_e_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_hsqldb_e_o_hibernate.hbm.xml
@@ -20,14 +20,14 @@
<column not-null="true" unique="false" name="`TITLE`"/>
</property>
<list name="members" lazy="true" cascade="all,delete-orphan">
- <key update="true" foreign-key="FORUM_MEMBERS">
+ <key foreign-key="FORUM_MEMBERS_KEY" update="true">
<column name="`FORUM_MEMBERS_E_ID`" unique="false"/>
</key>
<list-index column="`FORUM_MEMBERS_IDX`"/>
<one-to-many entity-name="Member"/>
</list>
<list name="topics" lazy="true" cascade="all,delete-orphan">
- <key update="true" foreign-key="FORUM_TOPICS">
+ <key foreign-key="FORUM_TOPICS_KEY" update="true">
<column name="`FORUM_TOPICS_E_ID`" unique="false"/>
</key>
<list-index column="`FORUM_TOPICS_IDX`"/>
@@ -186,14 +186,14 @@
<column not-null="false" unique="false" name="`TITLE`"/>
</property>
<list name="members" table="`FORUMAUDITING_MEMBERSAUDITING`" lazy="true" cascade="all">
- <key update="true">
+ <key foreign-key="FORUMAUDITING_MEMBERS_KEY" update="true">
<column name="`FORUMAUDITING_MEMBERS_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`FORUMAUDITING_MEMBERS_IDX`"/>
<element type="java.lang.String"/>
</list>
<list name="topics" table="`FORUMAUDITING_TOPICSAUDITING`" lazy="true" cascade="all">
- <key update="true">
+ <key foreign-key="FORUMAUDITING_TOPICS_KEY" update="true">
<column name="`FORUMAUDITING_TOPICS_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`FORUMAUDITING_TOPICS_IDX`"/>
@@ -252,14 +252,14 @@
<column not-null="false" unique="false" name="`NICKNAME`"/>
</property>
<list name="posts" table="`MEMBERAUDITING_POSTSAUDITING`" lazy="true" cascade="all">
- <key update="true">
+ <key foreign-key="MEMBERAUDITING_POSTS_KEY" update="true">
<column name="`MEMBERAUDITING_POSTS_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`MEMBERAUDITING_POSTS_IDX`"/>
<element type="java.lang.String"/>
</list>
<list name="created" table="`MEMBERAUDITING_CREATEDAUDITING`" lazy="true" cascade="all">
- <key update="true">
+ <key foreign-key="MEMBERAUDITING_CREATED_KEY" update="true">
<column name="`MEMBERAUDITING_CREATED_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`MEMBERAUDITING_CREATED_IDX`"/>
@@ -387,7 +387,7 @@
<column not-null="false" unique="false" name="`CREATOR`"/>
</property>
<list name="posts" table="`TOPICAUDITING_POSTSAUDITING`" lazy="true" cascade="all">
- <key update="true">
+ <key foreign-key="TOPICAUDITING_POSTS_KEY" update="true">
<column name="`TOPICAUDITING_POSTS_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`TOPICAUDITING_POSTS_IDX`"/>

Back to the top