diff options
author | mtaal | 2010-11-14 03:05:06 +0000 |
---|---|---|
committer | mtaal | 2010-11-14 03:05:06 +0000 |
commit | 8337d567227d2562bdd30478d17523fbfc6b4bad (patch) | |
tree | 4588e6db7a97391b9b80a315429515674b45848d /tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample | |
parent | f626dcf7bf422d61ca5ca790ccbcefe93deb1dd6 (diff) | |
download | org.eclipse.emf.teneo-8337d567227d2562bdd30478d17523fbfc6b4bad.tar.gz org.eclipse.emf.teneo-8337d567227d2562bdd30478d17523fbfc6b4bad.tar.xz org.eclipse.emf.teneo-8337d567227d2562bdd30478d17523fbfc6b4bad.zip |
Updated because of testcases
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample')
-rw-r--r-- | tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_e_o_hibernate.hbm.xml | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_e_o_hibernate.hbm.xml index c7d68e219..0b8b5156c 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_e_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_e_o_hibernate.hbm.xml @@ -6,7 +6,10 @@ <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> <param name="edatatype">BookCategoryObject</param> </typedef> - <class entity-name="Book" abstract="false" lazy="false" table="`tab_book`"> + <import class="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" rename="Book"/> + <import class="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" rename="Library"/> + <import class="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" rename="Writer"/> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" abstract="false" lazy="false" table="`tab_book`"> <meta attribute="eclassName" inherit="false">Book</meta> <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> <cache usage="read-write"/> @@ -27,14 +30,14 @@ <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> </type> </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="FKPRE_book_author" insert="false" update="false" not-null="false"> + <many-to-one name="author" class="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="FKPRE_book_author" insert="false" update="false" not-null="false"> <column not-null="false" unique="false" name="`col_book_author_e_id`"/> </many-to-one> <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> <column not-null="false" unique="false" name="`col_test`"/> </property> </class> - <class entity-name="Library" abstract="false" lazy="false" table="`tab_library`"> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" abstract="false" lazy="false" table="`tab_library`"> <meta attribute="eclassName" inherit="false">Library</meta> <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> <cache usage="read-write"/> @@ -48,15 +51,13 @@ <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="`col_name`" length="50"/> </property> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> <cache usage="read-write"/> - <key update="true"> - <column name="`col_library_e_id`" not-null="true" unique="false"/> + <key update="true" foreign-key="schrijvers"> + <column name="`col_library_writers_e_id`" not-null="false" unique="false"/> </key> <list-index column="`test_index`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`col_writer_e_id`" not-null="true" unique="false"/> - </many-to-many> + <one-to-many class="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl"/> </list> <list name="books" lazy="true" cascade="all,delete-orphan"> <cache usage="read-write"/> @@ -64,10 +65,10 @@ <column name="`col_library_books_e_id`" not-null="false" unique="false"/> </key> <list-index column="`col_library_books_idx`"/> - <one-to-many entity-name="Book"/> + <one-to-many class="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl"/> </list> </class> - <class entity-name="Writer" abstract="false" lazy="false" table="`tab_writer`"> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" abstract="false" lazy="false" table="`tab_writer`"> <meta attribute="eclassName" inherit="false">Writer</meta> <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> <cache usage="read-write"/> @@ -87,7 +88,7 @@ <column name="`col_book_author_e_id`" not-null="false" unique="false"/> </key> <list-index column="`col_writer_books_idx`"/> - <one-to-many entity-name="Book"/> + <one-to-many class="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl"/> </list> </class> </hibernate-mapping>
\ No newline at end of file |