Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2010-03-28 09:08:54 +0000
committermtaal2010-03-28 09:08:54 +0000
commit1891ab927bdf5de6e43e807347eb825bbba8910f (patch)
tree2cf0d2c33510695ac6a72581f892cd2327b4625a /tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample
parent43c8e66fc6e7fa8756f203984e5a792c2c272544 (diff)
downloadorg.eclipse.emf.teneo-1891ab927bdf5de6e43e807347eb825bbba8910f.tar.gz
org.eclipse.emf.teneo-1891ab927bdf5de6e43e807347eb825bbba8910f.tar.xz
org.eclipse.emf.teneo-1891ab927bdf5de6e43e807347eb825bbba8910f.zip
New hbm's for new testcases
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample')
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml8
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_s_o_hibernate.hbm.xml2
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml
index 6b441b3aa..f00ce5948 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml
@@ -259,10 +259,12 @@
<property name="interface" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
<column not-null="false" unique="false" name="`interface`"/>
</property>
- <list name="eSuperTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`eclass_eclass`">
- <key/>
+ <list name="eSuperTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true" foreign-key="eclass_esupertypes">
+ <column name="`eclass_esupertypes_e_id`" not-null="false" unique="false"/>
+ </key>
<list-index column="`eclass_esupertypes_idx`"/>
- <many-to-many entity-name="EClass" unique="false" foreign-key="eclass_esupertypes"/>
+ <one-to-many entity-name="EClass"/>
</list>
<list name="eOperations" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="eclass_eoperations">
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_s_o_hibernate.hbm.xml
index 45b494ed8..0d9e0a18f 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_s_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_s_o_hibernate.hbm.xml
@@ -30,7 +30,7 @@
<property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
<column not-null="false" unique="false" name="`TEST`"/>
</property>
- <join table="WRITER_BOOKS" inverse="true" optional="true">
+ <join table="`WRITER_BOOKS`" inverse="true" optional="true">
<key update="true">
<column name="`BOOK_TITLE`" not-null="true" unique="false"/>
</key>

Back to the top