Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2008-06-29 14:22:55 +0000
committermtaal2008-06-29 14:22:55 +0000
commitca34c337217502aa2e9cf6be649d5fd2f181549f (patch)
tree610fa3491da0b31fcd4fd530456051ec3d393ccf /tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample
parent354eacf5a6c601d37b9c7703372db32d79278cbc (diff)
downloadorg.eclipse.emf.teneo-ca34c337217502aa2e9cf6be649d5fd2f181549f.tar.gz
org.eclipse.emf.teneo-ca34c337217502aa2e9cf6be649d5fd2f181549f.tar.xz
org.eclipse.emf.teneo-ca34c337217502aa2e9cf6be649d5fd2f181549f.zip
[237994]
[238266]
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_s_o_hibernate.hbm.xml22
1 files changed, 11 insertions, 11 deletions
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 80858c45f..5a1941f5e 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="false" update="false" not-null="false">
+ <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">
<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

Back to the top