Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2008-10-12 11:24:33 +0000
committermtaal2008-10-12 11:24:33 +0000
commitdf48a2c9c63f591d43e280558c472c4429ce76f8 (patch)
tree9703aa7acaa6dd5321452683a4fefe45923b1b9b /tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample
parente10e06bc12be9213fbdeabe13761b7446a16405a (diff)
downloadorg.eclipse.emf.teneo-df48a2c9c63f591d43e280558c472c4429ce76f8.tar.gz
org.eclipse.emf.teneo-df48a2c9c63f591d43e280558c472c4429ce76f8.tar.xz
org.eclipse.emf.teneo-df48a2c9c63f591d43e280558c472c4429ce76f8.zip
[249246]
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/LibraryLargeAction_mysql_a_o_hibernate.hbm.xml11
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_e_o_hibernate.hbm.xml22
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_s_o_hibernate.hbm.xml11
3 files changed, 19 insertions, 25 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_a_o_hibernate.hbm.xml
index a5b12507a..fafce0ec2 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_a_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_a_o_hibernate.hbm.xml
@@ -29,7 +29,7 @@
<param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param>
</type>
</property>
- <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" lazy="false" insert="true" update="true" not-null="false">
+ <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="true" update="true" not-null="false">
<column not-null="false" unique="false" name="`book_author_e_id`"/>
</many-to-one>
</class>
@@ -74,14 +74,11 @@
<property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`name`"/>
</property>
- <idbag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh">
- <collection-id column="ID" type="long">
- <generator class="increment"/>
- </collection-id>
+ <bag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh">
<key update="true">
<column name="`book_author_e_id`" not-null="false" unique="false"/>
</key>
- <many-to-many entity-name="Book"/>
- </idbag>
+ <one-to-many entity-name="Book"/>
+ </bag>
</class>
</hibernate-mapping> \ No newline at end of file
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_e_o_hibernate.hbm.xml
index 80858c45f..29e9bdebd 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_e_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_e_o_hibernate.hbm.xml
@@ -28,7 +28,7 @@
<param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param>
</type>
</property>
- <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" lazy="false" insert="false" update="false" not-null="false">
+ <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="true" update="true" not-null="false">
<column not-null="false" unique="false" name="`book_author_e_id`"/>
</many-to-one>
</class>
@@ -45,20 +45,18 @@
<property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`name`"/>
</property>
- <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan">
+ <bag name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="schrijvers">
<column name="`library_writers_e_id`" not-null="false" unique="false"/>
</key>
- <list-index column="`library_writers_idx`"/>
<one-to-many entity-name="Writer"/>
- </list>
- <list name="books" lazy="true" cascade="all,delete-orphan">
+ </bag>
+ <bag name="books" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="library_books">
<column name="`library_books_e_id`" not-null="false" unique="false"/>
</key>
- <list-index column="`library_books_idx`"/>
<one-to-many entity-name="Book"/>
- </list>
+ </bag>
</class>
<class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`">
<meta attribute="eclassName">Writer</meta>
@@ -73,12 +71,14 @@
<property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`name`"/>
</property>
- <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <idbag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <collection-id column="ID" type="long">
+ <generator class="increment"/>
+ </collection-id>
<key update="true">
<column name="`book_author_e_id`" not-null="false" unique="false"/>
</key>
- <list-index column="`writer_books_idx`"/>
- <one-to-many entity-name="Book"/>
- </list>
+ <many-to-many entity-name="Book"/>
+ </idbag>
</class>
</hibernate-mapping> \ No newline at end of file
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_s_o_hibernate.hbm.xml
index 5a1941f5e..532d39296 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_s_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_s_o_hibernate.hbm.xml
@@ -28,7 +28,7 @@
<param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param>
</type>
</property>
- <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" lazy="false" insert="true" update="true" not-null="false">
+ <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="true" update="true" not-null="false">
<column not-null="false" unique="false" name="`book_author_e_id`"/>
</many-to-one>
</class>
@@ -71,14 +71,11 @@
<property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`name`"/>
</property>
- <idbag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh">
- <collection-id column="ID" type="long">
- <generator class="increment"/>
- </collection-id>
+ <bag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh">
<key update="true">
<column name="`book_author_e_id`" not-null="false" unique="false"/>
</key>
- <many-to-many entity-name="Book"/>
- </idbag>
+ <one-to-many entity-name="Book"/>
+ </bag>
</class>
</hibernate-mapping> \ No newline at end of file

Back to the top