diff options
author | mtaal | 2008-03-17 19:28:07 +0000 |
---|---|---|
committer | mtaal | 2008-03-17 19:28:07 +0000 |
commit | a80e521d1723036f36c8e78dc4a00d27ea3c5593 (patch) | |
tree | 5bd4e5ac34fea58c104899a6114a3e0fcc540953 /tests/org.eclipse.emf.teneo.hibernate.test/hbm_old | |
parent | 2370cd27ddbc26aedbb18c839832752c0f133386 (diff) | |
download | org.eclipse.emf.teneo-a80e521d1723036f36c8e78dc4a00d27ea3c5593.tar.gz org.eclipse.emf.teneo-a80e521d1723036f36c8e78dc4a00d27ea3c5593.tar.xz org.eclipse.emf.teneo-a80e521d1723036f36c8e78dc4a00d27ea3c5593.zip |
Updated to latest generation
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm_old')
45 files changed, 1570 insertions, 49 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryHbResourceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryHbResourceAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..77d7ec7e0 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryHbResourceAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <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"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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"> + <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"> + <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> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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"> + <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> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryHbResourceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryHbResourceAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..f6d6ebece --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryHbResourceAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <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"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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"> + <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"> + <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> + </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> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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"> + <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> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryHbResourceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryHbResourceAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..f6d6ebece --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryHbResourceAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <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"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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"> + <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"> + <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> + </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> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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"> + <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> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_a_o_hibernate.hbm.xml index ec50f723b..b09df7c76 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_a_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_a_o_hibernate.hbm.xml @@ -19,7 +19,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`title`" length="50"/> + <column not-null="true" unique="false" name="`title`" length="50"/> </property> <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> <column not-null="false" unique="false" name="`pages`"/> @@ -47,7 +47,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`name`" length="50"/> + <column not-null="true" unique="false" name="`name`" length="50"/> </property> <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> <cache usage="read-write"/> @@ -79,7 +79,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`name`" length="50"/> + <column not-null="true" unique="false" name="`name`" length="50"/> </property> <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> <cache usage="read-write"/> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/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_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_e_o_hibernate.hbm.xml index a93da179e..42f042512 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/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_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_e_o_hibernate.hbm.xml @@ -18,7 +18,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`title`" length="50"/> + <column not-null="true" unique="false" name="`title`" length="50"/> </property> <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> <column not-null="false" unique="false" name="`pages`"/> @@ -45,7 +45,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`name`" length="50"/> + <column not-null="true" unique="false" name="`name`" length="50"/> </property> <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> <cache usage="read-write"/> @@ -76,7 +76,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`name`" length="50"/> + <column not-null="true" unique="false" name="`name`" length="50"/> </property> <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> <cache usage="read-write"/> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_s_o_hibernate.hbm.xml index a93da179e..42f042512 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_s_o_hibernate.hbm.xml @@ -18,7 +18,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`title`" length="50"/> + <column not-null="true" unique="false" name="`title`" length="50"/> </property> <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> <column not-null="false" unique="false" name="`pages`"/> @@ -45,7 +45,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`name`" length="50"/> + <column not-null="true" unique="false" name="`name`" length="50"/> </property> <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> <cache usage="read-write"/> @@ -76,7 +76,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`name`" length="50"/> + <column not-null="true" unique="false" name="`name`" length="50"/> </property> <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> <cache usage="read-write"/> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_a_o_hibernate.hbm.xml index eab9f6cc3..ff0050524 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_a_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_a_o_hibernate.hbm.xml @@ -33,7 +33,7 @@ <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> - <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false" unique="true"> <column not-null="false" unique="false" name="`employee_address_id`"/> </many-to-one> <property name="department" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> @@ -53,7 +53,7 @@ <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> - <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false" unique="true"> <column not-null="false" unique="false" name="`address_address_e_id`"/> </many-to-one> <property name="faculty" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_e_o_hibernate.hbm.xml index 4dcaab3a5..df9290b0e 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_e_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_e_o_hibernate.hbm.xml @@ -31,7 +31,7 @@ <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> - <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false" unique="true"> <column not-null="false" unique="false" name="`employee_address_id`"/> </many-to-one> <property name="department" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> @@ -50,7 +50,7 @@ <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> - <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false" unique="true"> <column not-null="false" unique="false" name="`address_address_e_id`"/> </many-to-one> <property name="faculty" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_s_o_hibernate.hbm.xml index 4dcaab3a5..df9290b0e 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_s_o_hibernate.hbm.xml @@ -31,7 +31,7 @@ <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> - <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false" unique="true"> <column not-null="false" unique="false" name="`employee_address_id`"/> </many-to-one> <property name="department" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> @@ -50,7 +50,7 @@ <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> - <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false" unique="true"> <column not-null="false" unique="false" name="`address_address_e_id`"/> </many-to-one> <property name="faculty" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_xjoin_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_xjoin_hibernate.hbm.xml index 4dcaab3a5..df9290b0e 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_xjoin_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_xjoin_hibernate.hbm.xml @@ -31,7 +31,7 @@ <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> - <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false" unique="true"> <column not-null="false" unique="false" name="`employee_address_id`"/> </many-to-one> <property name="department" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> @@ -50,7 +50,7 @@ <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> - <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false" unique="true"> <column not-null="false" unique="false" name="`address_address_e_id`"/> </many-to-one> <property name="faculty" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_xsingle_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_xsingle_hibernate.hbm.xml index eab9f6cc3..ff0050524 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_xsingle_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_xsingle_hibernate.hbm.xml @@ -33,7 +33,7 @@ <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> - <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false" unique="true"> <column not-null="false" unique="false" name="`employee_address_id`"/> </many-to-one> <property name="department" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> @@ -53,7 +53,7 @@ <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> - <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="person_address" lazy="false" insert="true" update="true" not-null="false" unique="true"> <column not-null="false" unique="false" name="`address_address_e_id`"/> </many-to-one> <property name="faculty" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_a_o_hibernate.hbm.xml index 5daf345f1..ac0e5b510 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_a_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_a_o_hibernate.hbm.xml @@ -125,4 +125,50 @@ <column not-null="false" unique="false" name="`specificname`"/> </property> </union-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressListImpl" entity-name="UKAddressList" abstract="false" lazy="false" discriminator-value="UKAddressList" table="`ukaddresslist`"> + <meta attribute="eclassName">UKAddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ukaddresslist_address"> + <column name="`ukaddresslist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`ukaddresslist_address_idx`"/> + <one-to-many entity-name="UKAddress"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentOneImpl" entity-name="ParentOne" abstract="false" lazy="false" discriminator-value="ParentOne" table="`parentone`"> + <meta attribute="eclassName">ParentOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentTwoImpl" entity-name="ParentTwo" abstract="false" lazy="false" discriminator-value="ParentTwo" table="`parenttwo`"> + <meta attribute="eclassName">ParentTwo</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ChildOneImpl" entity-name="ChildOne" abstract="false" lazy="false" extends="ParentOne" discriminator-value="ChildOne"> + <meta attribute="eclassName">ChildOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + </subclass> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_e_o_hibernate.hbm.xml index bb4088a01..b6f2e60b1 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_e_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_e_o_hibernate.hbm.xml @@ -124,4 +124,50 @@ <column not-null="false" unique="false" name="`specificname`"/> </property> </union-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressListImpl" entity-name="UKAddressList" abstract="false" lazy="false" table="`ukaddresslist`"> + <meta attribute="eclassName">UKAddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ukaddresslist_address"> + <column name="`ukaddresslist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`ukaddresslist_address_idx`"/> + <one-to-many entity-name="UKAddress"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentOneImpl" entity-name="ParentOne" abstract="false" lazy="false" table="`parentone`"> + <meta attribute="eclassName">ParentOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentTwoImpl" entity-name="ParentTwo" abstract="false" lazy="false" table="`parenttwo`"> + <meta attribute="eclassName">ParentTwo</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ChildOneImpl" entity-name="ChildOne" abstract="false" lazy="false" extends="ParentOne" table="`childone`"> + <meta attribute="eclassName">ChildOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`parentone_e_id`"/> + </key> + </joined-subclass> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_s_o_hibernate.hbm.xml index bb4088a01..b6f2e60b1 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_s_o_hibernate.hbm.xml @@ -124,4 +124,50 @@ <column not-null="false" unique="false" name="`specificname`"/> </property> </union-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressListImpl" entity-name="UKAddressList" abstract="false" lazy="false" table="`ukaddresslist`"> + <meta attribute="eclassName">UKAddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ukaddresslist_address"> + <column name="`ukaddresslist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`ukaddresslist_address_idx`"/> + <one-to-many entity-name="UKAddress"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentOneImpl" entity-name="ParentOne" abstract="false" lazy="false" table="`parentone`"> + <meta attribute="eclassName">ParentOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentTwoImpl" entity-name="ParentTwo" abstract="false" lazy="false" table="`parenttwo`"> + <meta attribute="eclassName">ParentTwo</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ChildOneImpl" entity-name="ChildOne" abstract="false" lazy="false" extends="ParentOne" table="`childone`"> + <meta attribute="eclassName">ChildOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`parentone_e_id`"/> + </key> + </joined-subclass> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_xjoin_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_xjoin_hibernate.hbm.xml index 4a3b7792c..92dff9d8b 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_xjoin_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_xjoin_hibernate.hbm.xml @@ -131,4 +131,54 @@ <column not-null="false" unique="false" name="`specificname`"/> </property> </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressListImpl" entity-name="UKAddressList" abstract="false" lazy="false" table="`ukaddresslist`"> + <meta attribute="eclassName">UKAddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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="address" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ukaddresslist_address"> + <column name="`ukaddresslist_address_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`ukaddresslist_address_idx`"/> + <one-to-many entity-name="UKAddress"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentOneImpl" entity-name="ParentOne" abstract="false" lazy="false" table="`parentone`"> + <meta attribute="eclassName">ParentOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentTwoImpl" entity-name="ParentTwo" abstract="false" lazy="false" table="`parenttwo`"> + <meta attribute="eclassName">ParentTwo</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ChildOneImpl" entity-name="ChildOne" abstract="false" lazy="false" extends="ParentTwo" table="`childone`"> + <meta attribute="eclassName">ChildOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`parentone_e_id`"/> + </key> + </joined-subclass> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_xsingle_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_xsingle_hibernate.hbm.xml index b808a261e..bfb5eae8e 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_xsingle_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_xsingle_hibernate.hbm.xml @@ -130,4 +130,54 @@ <column not-null="false" unique="false" name="`specificname`"/> </property> </subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressListImpl" entity-name="UKAddressList" abstract="false" lazy="false" discriminator-value="UKAddressList" table="`ukaddresslist`"> + <meta attribute="eclassName">UKAddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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="address" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ukaddresslist_address"> + <column name="`ukaddresslist_address_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`ukaddresslist_address_idx`"/> + <one-to-many entity-name="UKAddress"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentOneImpl" entity-name="ParentOne" abstract="false" lazy="false" discriminator-value="ParentOne" table="`parentone`"> + <meta attribute="eclassName">ParentOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentTwoImpl" entity-name="ParentTwo" abstract="false" lazy="false" discriminator-value="ParentTwo" table="`parenttwo`"> + <meta attribute="eclassName">ParentTwo</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ChildOneImpl" entity-name="ChildOne" abstract="false" lazy="false" extends="ParentTwo" discriminator-value="ChildOne"> + <meta attribute="eclassName">ChildOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + </subclass> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_a_o_hibernate.hbm.xml index 5daf345f1..ac0e5b510 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_a_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_a_o_hibernate.hbm.xml @@ -125,4 +125,50 @@ <column not-null="false" unique="false" name="`specificname`"/> </property> </union-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressListImpl" entity-name="UKAddressList" abstract="false" lazy="false" discriminator-value="UKAddressList" table="`ukaddresslist`"> + <meta attribute="eclassName">UKAddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ukaddresslist_address"> + <column name="`ukaddresslist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`ukaddresslist_address_idx`"/> + <one-to-many entity-name="UKAddress"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentOneImpl" entity-name="ParentOne" abstract="false" lazy="false" discriminator-value="ParentOne" table="`parentone`"> + <meta attribute="eclassName">ParentOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentTwoImpl" entity-name="ParentTwo" abstract="false" lazy="false" discriminator-value="ParentTwo" table="`parenttwo`"> + <meta attribute="eclassName">ParentTwo</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ChildOneImpl" entity-name="ChildOne" abstract="false" lazy="false" extends="ParentOne" discriminator-value="ChildOne"> + <meta attribute="eclassName">ChildOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + </subclass> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_e_o_hibernate.hbm.xml index bb4088a01..b6f2e60b1 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_e_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_e_o_hibernate.hbm.xml @@ -124,4 +124,50 @@ <column not-null="false" unique="false" name="`specificname`"/> </property> </union-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressListImpl" entity-name="UKAddressList" abstract="false" lazy="false" table="`ukaddresslist`"> + <meta attribute="eclassName">UKAddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ukaddresslist_address"> + <column name="`ukaddresslist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`ukaddresslist_address_idx`"/> + <one-to-many entity-name="UKAddress"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentOneImpl" entity-name="ParentOne" abstract="false" lazy="false" table="`parentone`"> + <meta attribute="eclassName">ParentOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentTwoImpl" entity-name="ParentTwo" abstract="false" lazy="false" table="`parenttwo`"> + <meta attribute="eclassName">ParentTwo</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ChildOneImpl" entity-name="ChildOne" abstract="false" lazy="false" extends="ParentOne" table="`childone`"> + <meta attribute="eclassName">ChildOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`parentone_e_id`"/> + </key> + </joined-subclass> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_s_o_hibernate.hbm.xml index bb4088a01..b6f2e60b1 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_s_o_hibernate.hbm.xml @@ -124,4 +124,50 @@ <column not-null="false" unique="false" name="`specificname`"/> </property> </union-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressListImpl" entity-name="UKAddressList" abstract="false" lazy="false" table="`ukaddresslist`"> + <meta attribute="eclassName">UKAddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ukaddresslist_address"> + <column name="`ukaddresslist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`ukaddresslist_address_idx`"/> + <one-to-many entity-name="UKAddress"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentOneImpl" entity-name="ParentOne" abstract="false" lazy="false" table="`parentone`"> + <meta attribute="eclassName">ParentOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentTwoImpl" entity-name="ParentTwo" abstract="false" lazy="false" table="`parenttwo`"> + <meta attribute="eclassName">ParentTwo</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ChildOneImpl" entity-name="ChildOne" abstract="false" lazy="false" extends="ParentOne" table="`childone`"> + <meta attribute="eclassName">ChildOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`parentone_e_id`"/> + </key> + </joined-subclass> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_xjoin_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_xjoin_hibernate.hbm.xml index 9c3147717..37e33e969 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_xjoin_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_xjoin_hibernate.hbm.xml @@ -126,4 +126,54 @@ <column not-null="false" unique="false" name="`specificname`"/> </property> </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressListImpl" entity-name="UKAddressList" abstract="false" lazy="false" table="`ukaddresslist`"> + <meta attribute="eclassName">UKAddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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="address" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ukaddresslist_address"> + <column name="`ukaddresslist_address_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`ukaddresslist_address_idx`"/> + <one-to-many entity-name="UKAddress"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentOneImpl" entity-name="ParentOne" abstract="false" lazy="false" table="`parentone`"> + <meta attribute="eclassName">ParentOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentTwoImpl" entity-name="ParentTwo" abstract="false" lazy="false" table="`parenttwo`"> + <meta attribute="eclassName">ParentTwo</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ChildOneImpl" entity-name="ChildOne" abstract="false" lazy="false" extends="ParentOne" table="`childone`"> + <meta attribute="eclassName">ChildOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`parentone_e_id`"/> + </key> + </joined-subclass> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_xsingle_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_xsingle_hibernate.hbm.xml index 3c774bb31..82741c3c6 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_xsingle_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_xsingle_hibernate.hbm.xml @@ -125,4 +125,54 @@ <column not-null="false" unique="false" name="`specificname`"/> </property> </subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressListImpl" entity-name="UKAddressList" abstract="false" lazy="false" discriminator-value="UKAddressList" table="`ukaddresslist`"> + <meta attribute="eclassName">UKAddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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="address" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ukaddresslist_address"> + <column name="`ukaddresslist_address_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`ukaddresslist_address_idx`"/> + <one-to-many entity-name="UKAddress"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentOneImpl" entity-name="ParentOne" abstract="false" lazy="false" discriminator-value="ParentOne" table="`parentone`"> + <meta attribute="eclassName">ParentOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ParentTwoImpl" entity-name="ParentTwo" abstract="false" lazy="false" discriminator-value="ParentTwo" table="`parenttwo`"> + <meta attribute="eclassName">ParentTwo</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ChildOneImpl" entity-name="ChildOne" abstract="false" lazy="false" extends="ParentOne" discriminator-value="ChildOne"> + <meta attribute="eclassName">ChildOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + </subclass> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_a_o_hibernate.hbm.xml index e213ecab0..af9996d69 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_a_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_a_o_hibernate.hbm.xml @@ -63,6 +63,6 @@ <column not-null="false" unique="false" name="`address_address_e_id`"/> </many-to-one> <one-to-one name="head" entity-name="Head" cascade="all" property-ref="person" lazy="false"/> - <many-to-one name="leftArm" entity-name="Arm" foreign-key="person_leftarm" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="leftArm" entity-name="Arm" foreign-key="person_leftarm" lazy="false" insert="true" update="true"/> </class> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_e_o_hibernate.hbm.xml index f87e8349b..785b0dff4 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_e_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_e_o_hibernate.hbm.xml @@ -59,6 +59,6 @@ <column not-null="false" unique="false" name="`address_address_e_id`"/> </many-to-one> <one-to-one name="head" entity-name="Head" cascade="all" property-ref="person" lazy="false"/> - <many-to-one name="leftArm" entity-name="Arm" foreign-key="person_leftarm" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="leftArm" entity-name="Arm" foreign-key="person_leftarm" lazy="false" insert="true" update="true"/> </class> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_s_o_hibernate.hbm.xml index f87e8349b..785b0dff4 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_s_o_hibernate.hbm.xml @@ -59,6 +59,6 @@ <column not-null="false" unique="false" name="`address_address_e_id`"/> </many-to-one> <one-to-one name="head" entity-name="Head" cascade="all" property-ref="person" lazy="false"/> - <many-to-one name="leftArm" entity-name="Arm" foreign-key="person_leftarm" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="leftArm" entity-name="Arm" foreign-key="person_leftarm" lazy="false" insert="true" update="true"/> </class> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_a_o_hibernate.hbm.xml index e653ad09d..5d79524fa 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_a_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_a_o_hibernate.hbm.xml @@ -58,9 +58,9 @@ <many-to-one name="notcontainedonewaynotrequired" entity-name="NotContainedChildNR" cascade="merge,persist,save-update,lock,refresh" foreign-key="main_notcontainedonewaynotrequired" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`notcontainedchildnr_notcontainedonewaynotrequired_e_id`"/> </many-to-one> - <many-to-one name="notcontainedtwowaynotrequired" entity-name="NotContainedChildNRT" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="notcontainedtwowaynotrequired" entity-name="NotContainedChildNRT" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true"/> <many-to-one name="notcontainedtwowayrequirednr" entity-name="NotContainedChildRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> - <many-to-one name="notcontainedtwowaynotrequirednr" entity-name="NotContainedChildNRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="notcontainedtwowaynotrequirednr" entity-name="NotContainedChildNRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true"/> </class> <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildNRImpl" entity-name="NotContainedChildNR" abstract="false" lazy="false" discriminator-value="NotContainedChildNR" table="`notcontainedchildnr`"> <meta attribute="eclassName">NotContainedChildNR</meta> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_e_o_hibernate.hbm.xml index 4a1d986db..c2105c8e0 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_e_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_e_o_hibernate.hbm.xml @@ -55,9 +55,9 @@ <many-to-one name="notcontainedonewaynotrequired" entity-name="NotContainedChildNR" cascade="merge,persist,save-update,lock,refresh" foreign-key="main_notcontainedonewaynotrequired" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`notcontainedchildnr_notcontainedonewaynotrequired_e_id`"/> </many-to-one> - <many-to-one name="notcontainedtwowaynotrequired" entity-name="NotContainedChildNRT" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="notcontainedtwowaynotrequired" entity-name="NotContainedChildNRT" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true"/> <many-to-one name="notcontainedtwowayrequirednr" entity-name="NotContainedChildRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> - <many-to-one name="notcontainedtwowaynotrequirednr" entity-name="NotContainedChildNRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="notcontainedtwowaynotrequirednr" entity-name="NotContainedChildNRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true"/> </class> <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildNRImpl" entity-name="NotContainedChildNR" abstract="false" lazy="false" table="`notcontainedchildnr`"> <meta attribute="eclassName">NotContainedChildNR</meta> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_s_o_hibernate.hbm.xml index 4a1d986db..c2105c8e0 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_s_o_hibernate.hbm.xml @@ -55,9 +55,9 @@ <many-to-one name="notcontainedonewaynotrequired" entity-name="NotContainedChildNR" cascade="merge,persist,save-update,lock,refresh" foreign-key="main_notcontainedonewaynotrequired" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`notcontainedchildnr_notcontainedonewaynotrequired_e_id`"/> </many-to-one> - <many-to-one name="notcontainedtwowaynotrequired" entity-name="NotContainedChildNRT" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="notcontainedtwowaynotrequired" entity-name="NotContainedChildNRT" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true"/> <many-to-one name="notcontainedtwowayrequirednr" entity-name="NotContainedChildRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> - <many-to-one name="notcontainedtwowaynotrequirednr" entity-name="NotContainedChildNRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="notcontainedtwowaynotrequirednr" entity-name="NotContainedChildNRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true"/> </class> <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildNRImpl" entity-name="NotContainedChildNR" abstract="false" lazy="false" table="`notcontainedchildnr`"> <meta attribute="eclassName">NotContainedChildNR</meta> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_a_o_hibernate.hbm.xml index 09340f29e..b09df7c76 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_a_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_a_o_hibernate.hbm.xml @@ -19,7 +19,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> + <column not-null="true" unique="false" name="`title`" length="50"/> </property> <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> <column not-null="false" unique="false" name="`pages`"/> @@ -47,7 +47,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <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`"/> + <column not-null="true" unique="false" name="`name`" length="50"/> </property> <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> <cache usage="read-write"/> @@ -79,7 +79,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <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`"/> + <column not-null="true" unique="false" name="`name`" length="50"/> </property> <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> <cache usage="read-write"/> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_e_o_hibernate.hbm.xml index 878cef91c..42f042512 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_e_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_e_o_hibernate.hbm.xml @@ -18,7 +18,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> + <column not-null="true" unique="false" name="`title`" length="50"/> </property> <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> <column not-null="false" unique="false" name="`pages`"/> @@ -45,7 +45,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <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`"/> + <column not-null="true" unique="false" name="`name`" length="50"/> </property> <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> <cache usage="read-write"/> @@ -76,7 +76,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <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`"/> + <column not-null="true" unique="false" name="`name`" length="50"/> </property> <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> <cache usage="read-write"/> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_s_o_hibernate.hbm.xml index 878cef91c..42f042512 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_s_o_hibernate.hbm.xml @@ -18,7 +18,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> + <column not-null="true" unique="false" name="`title`" length="50"/> </property> <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> <column not-null="false" unique="false" name="`pages`"/> @@ -45,7 +45,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <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`"/> + <column not-null="true" unique="false" name="`name`" length="50"/> </property> <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> <cache usage="read-write"/> @@ -76,7 +76,7 @@ <meta attribute="syntheticVersion">true</meta> </version> <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`"/> + <column not-null="true" unique="false" name="`name`" length="50"/> </property> <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> <cache usage="read-write"/> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..8532246ab --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,93 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <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" discriminator-value="Book" table="book"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="dtype" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="title" length="50"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="pages"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="category"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <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"> + <column not-null="false" unique="false" name="book_author_e_id"/> + </many-to-one> + </class> + <class entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="library"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="dtype" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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" length="50"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <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"> + <cache usage="read-write"/> + <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> + </class> + <class entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="writer"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="dtype" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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" length="50"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <cache usage="read-write"/> + <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> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..0417e16e9 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <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="book"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="title" length="50"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="pages"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="category"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <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"> + <column not-null="false" unique="false" name="book_author_e_id"/> + </many-to-one> + </class> + <class entity-name="Library" abstract="false" lazy="false" table="library"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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" length="50"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <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"> + <cache usage="read-write"/> + <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> + </class> + <class entity-name="Writer" abstract="false" lazy="false" table="writer"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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" length="50"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <cache usage="read-write"/> + <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> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..0417e16e9 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <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="book"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="title" length="50"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="pages"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="category"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <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"> + <column not-null="false" unique="false" name="book_author_e_id"/> + </many-to-one> + </class> + <class entity-name="Library" abstract="false" lazy="false" table="library"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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" length="50"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <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"> + <cache usage="read-write"/> + <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> + </class> + <class entity-name="Writer" abstract="false" lazy="false" table="writer"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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" length="50"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <cache usage="read-write"/> + <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> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/DurationAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/DurationAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..16c586f6c --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/DurationAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.duration.impl.DurationTestImpl" entity-name="DurationTest" abstract="false" lazy="false" discriminator-value="DurationTest" table="`durationtest`"> + <meta attribute="eclassName">DurationTest</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/duration</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="duration" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDuration"> + <column not-null="false" unique="false" name="`duration`"/> + </property> + <list name="durations" table="`durationtest_durations`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`durationtest_durations_name`" not-null="true" unique="false"/> + </key> + <list-index column="`durationtest_durations_idx`"/> + <element type="org.eclipse.emf.teneo.hibernate.mapping.XSDDuration"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/DurationAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/DurationAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..6deb20c4c --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/DurationAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.duration.impl.DurationTestImpl" entity-name="DurationTest" abstract="false" lazy="false" table="`durationtest`"> + <meta attribute="eclassName">DurationTest</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/duration</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="duration" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDuration"> + <column not-null="false" unique="false" name="`duration`"/> + </property> + <list name="durations" table="`durationtest_durations`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`durationtest_durations_name`" not-null="true" unique="false"/> + </key> + <list-index column="`durationtest_durations_idx`"/> + <element type="org.eclipse.emf.teneo.hibernate.mapping.XSDDuration"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/DurationAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/DurationAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..6deb20c4c --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/DurationAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.duration.impl.DurationTestImpl" entity-name="DurationTest" abstract="false" lazy="false" table="`durationtest`"> + <meta attribute="eclassName">DurationTest</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/duration</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="duration" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDuration"> + <column not-null="false" unique="false" name="`duration`"/> + </property> + <list name="durations" table="`durationtest_durations`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`durationtest_durations_name`" not-null="true" unique="false"/> + </key> + <list-index column="`durationtest_durations_idx`"/> + <element type="org.eclipse.emf.teneo.hibernate.mapping.XSDDuration"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_a_o_hibernate.hbm.xml index 58d97e9b6..1fc9d686d 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_a_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_a_o_hibernate.hbm.xml @@ -35,7 +35,7 @@ <column not-null="true" unique="false" name="`allstates`"/> </property> <property name="sixImportantStates" lazy="false" insert="true" update="true" not-null="true" unique="false" type="list.SixStatesList"> - <column not-null="false" unique="false" name="`siximportantstates`"/> + <column not-null="true" unique="false" name="`siximportantstates`"/> </property> </class> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_e_o_hibernate.hbm.xml index 7253fad77..890e59a32 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_e_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_e_o_hibernate.hbm.xml @@ -34,7 +34,7 @@ <column not-null="true" unique="false" name="`allstates`"/> </property> <property name="sixImportantStates" lazy="false" insert="true" update="true" not-null="true" unique="false" type="list.SixStatesList"> - <column not-null="false" unique="false" name="`siximportantstates`"/> + <column not-null="true" unique="false" name="`siximportantstates`"/> </property> </class> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_s_o_hibernate.hbm.xml index 7253fad77..890e59a32 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_s_o_hibernate.hbm.xml @@ -34,7 +34,7 @@ <column not-null="true" unique="false" name="`allstates`"/> </property> <property name="sixImportantStates" lazy="false" insert="true" update="true" not-null="true" unique="false" type="list.SixStatesList"> - <column not-null="false" unique="false" name="`siximportantstates`"/> + <column not-null="true" unique="false" name="`siximportantstates`"/> </property> </class> </hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_a_o_hibernate.hbm.xml index 2fba4f34f..b51f93a0b 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_a_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_a_o_hibernate.hbm.xml @@ -85,7 +85,7 @@ <column name="`simplelist_dat_e_id`" not-null="true" unique="false"/> </key> <list-index column="`simplelist_dat_idx`"/> - <element type="java.util.Date"/> + <element type="timestamp"/> </list> <list name="limitedstring" table="`simplelist_limitedstring`" lazy="true" cascade="all,delete-orphan"> <key update="true"> @@ -175,13 +175,13 @@ <column not-null="true" unique="false" name="`dat`"/> </property> <property name="limitedstring" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`limitedstring`" length="10"/> + <column not-null="true" unique="false" name="`limitedstring`" length="10"/> </property> <property name="limitedDecimal" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal"> <column not-null="false" unique="false" name="`limiteddecimal`" precision="4" scale="1"/> </property> <property name="extraLimitedString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`extralimitedstring`" length="5"/> + <column not-null="true" unique="false" name="`extralimitedstring`" length="5"/> </property> </class> <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.impl.SimpleTypeObjectImpl" entity-name="SimpleTypeObject" abstract="false" lazy="false" discriminator-value="SimpleTypeObject" table="`simpletypeobject`"> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_e_o_hibernate.hbm.xml index 6c68ea886..222312ece 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_e_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_e_o_hibernate.hbm.xml @@ -84,7 +84,7 @@ <column name="`simplelist_dat_e_id`" not-null="true" unique="false"/> </key> <list-index column="`simplelist_dat_idx`"/> - <element type="java.util.Date"/> + <element type="timestamp"/> </list> <list name="limitedstring" table="`simplelist_limitedstring`" lazy="true" cascade="all,delete-orphan"> <key update="true"> @@ -173,13 +173,13 @@ <column not-null="true" unique="false" name="`dat`"/> </property> <property name="limitedstring" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`limitedstring`" length="10"/> + <column not-null="true" unique="false" name="`limitedstring`" length="10"/> </property> <property name="limitedDecimal" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal"> <column not-null="false" unique="false" name="`limiteddecimal`" precision="4" scale="1"/> </property> <property name="extraLimitedString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`extralimitedstring`" length="5"/> + <column not-null="true" unique="false" name="`extralimitedstring`" length="5"/> </property> </class> <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.impl.SimpleTypeObjectImpl" entity-name="SimpleTypeObject" abstract="false" lazy="false" table="`simpletypeobject`"> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_s_o_hibernate.hbm.xml index 6c68ea886..222312ece 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_s_o_hibernate.hbm.xml @@ -84,7 +84,7 @@ <column name="`simplelist_dat_e_id`" not-null="true" unique="false"/> </key> <list-index column="`simplelist_dat_idx`"/> - <element type="java.util.Date"/> + <element type="timestamp"/> </list> <list name="limitedstring" table="`simplelist_limitedstring`" lazy="true" cascade="all,delete-orphan"> <key update="true"> @@ -173,13 +173,13 @@ <column not-null="true" unique="false" name="`dat`"/> </property> <property name="limitedstring" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`limitedstring`" length="10"/> + <column not-null="true" unique="false" name="`limitedstring`" length="10"/> </property> <property name="limitedDecimal" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal"> <column not-null="false" unique="false" name="`limiteddecimal`" precision="4" scale="1"/> </property> <property name="extraLimitedString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`extralimitedstring`" length="5"/> + <column not-null="true" unique="false" name="`extralimitedstring`" length="5"/> </property> </class> <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.impl.SimpleTypeObjectImpl" entity-name="SimpleTypeObject" abstract="false" lazy="false" table="`simpletypeobject`"> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.issues/AbstractTopClassAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.issues/AbstractTopClassAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..952e4f8b6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.issues/AbstractTopClassAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,147 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <typedef name="abstractsuper.USStateObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</param> + <param name="edatatype">USStateObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.ContentListImpl" entity-name="ContentList" abstract="false" lazy="false" discriminator-value="ContentList" table="`contentlist`"> + <meta attribute="eclassName">ContentList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true" foreign-key="contentlist_address"> + <column name="`contentlist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + <list name="price" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true" foreign-key="contentlist_price"> + <column name="`contentlist_price_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_price_idx`"/> + <one-to-many entity-name="Price"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.UKAddressImpl" entity-name="UKAddress" abstract="false" lazy="false" extends="Address" table="`ukaddress`"> + <meta attribute="eclassName">UKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="postcode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`postcode`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.DistrictUKAddressImpl" entity-name="DistrictUKAddress" abstract="false" lazy="false" extends="UKAddress" table="`districtukaddress`"> + <meta attribute="eclassName">DistrictUKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <key> + <column name="`ukaddress_name`"/> + </key> + <property name="district" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`district`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.PriceImpl" entity-name="Price" abstract="false" lazy="false" discriminator-value="myPrice" table="`myprice`"> + <meta attribute="eclassName">Price</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`discriminator`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.InternationalPriceImpl" entity-name="InternationalPrice" abstract="false" lazy="false" extends="Price" discriminator-value="myInternationalPrice"> + <meta attribute="eclassName">InternationalPrice</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <property name="currency" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`currency`"/> + </property> + </subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`unitedstatesaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="state" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`state`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.abstractsuper.USState</param> + </type> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.CustomerImpl" entity-name="Customer" abstract="false" lazy="false" discriminator-value="Customer" table="`customer`"> + <meta attribute="eclassName">Customer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.SpecificCustomerImpl" entity-name="SpecificCustomer" abstract="false" lazy="false" extends="Customer" discriminator-value="SpecificCustomer"> + <meta attribute="eclassName">SpecificCustomer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <property name="specificName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`specificname`"/> + </property> + </subclass> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.UKAddressListImpl" entity-name="UKAddressList" abstract="false" lazy="false" discriminator-value="UKAddressList" table="`ukaddresslist`"> + <meta attribute="eclassName">UKAddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ukaddresslist_address"> + <column name="`ukaddresslist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`ukaddresslist_address_idx`"/> + <one-to-many entity-name="UKAddress"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.issues/AbstractTopClassAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.issues/AbstractTopClassAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..ce205fb00 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.issues/AbstractTopClassAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,147 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <typedef name="abstractsuper.USStateObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</param> + <param name="edatatype">USStateObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.ContentListImpl" entity-name="ContentList" abstract="false" lazy="false" table="`contentlist`"> + <meta attribute="eclassName">ContentList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true" foreign-key="contentlist_address"> + <column name="`contentlist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + <list name="price" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true" foreign-key="contentlist_price"> + <column name="`contentlist_price_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_price_idx`"/> + <one-to-many entity-name="Price"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.UKAddressImpl" entity-name="UKAddress" abstract="false" lazy="false" extends="Address" table="`ukaddress`"> + <meta attribute="eclassName">UKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="postcode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`postcode`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.DistrictUKAddressImpl" entity-name="DistrictUKAddress" abstract="false" lazy="false" extends="UKAddress" table="`districtukaddress`"> + <meta attribute="eclassName">DistrictUKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <key> + <column name="`ukaddress_name`"/> + </key> + <property name="district" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`district`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.PriceImpl" entity-name="Price" abstract="false" lazy="false" discriminator-value="myPrice" table="`myprice`"> + <meta attribute="eclassName">Price</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`discriminator`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.InternationalPriceImpl" entity-name="InternationalPrice" abstract="false" lazy="false" extends="Price" discriminator-value="myInternationalPrice"> + <meta attribute="eclassName">InternationalPrice</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <property name="currency" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`currency`"/> + </property> + </subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`unitedstatesaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="state" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`state`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.abstractsuper.USState</param> + </type> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.CustomerImpl" entity-name="Customer" abstract="false" lazy="false" table="`customer`"> + <meta attribute="eclassName">Customer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.SpecificCustomerImpl" entity-name="SpecificCustomer" abstract="false" lazy="false" extends="Customer" table="`specificcustomer`"> + <meta attribute="eclassName">SpecificCustomer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <key> + <column name="`customer_name`"/> + </key> + <property name="specificName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`specificname`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.UKAddressListImpl" entity-name="UKAddressList" abstract="false" lazy="false" table="`ukaddresslist`"> + <meta attribute="eclassName">UKAddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ukaddresslist_address"> + <column name="`ukaddresslist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`ukaddresslist_address_idx`"/> + <one-to-many entity-name="UKAddress"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.issues/AbstractTopClassAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.issues/AbstractTopClassAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..ce205fb00 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm_old/org.eclipse.emf.teneo.test.issues/AbstractTopClassAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,147 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<hibernate-mapping auto-import="false"> + <typedef name="abstractsuper.USStateObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</param> + <param name="edatatype">USStateObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.ContentListImpl" entity-name="ContentList" abstract="false" lazy="false" table="`contentlist`"> + <meta attribute="eclassName">ContentList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true" foreign-key="contentlist_address"> + <column name="`contentlist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + <list name="price" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true" foreign-key="contentlist_price"> + <column name="`contentlist_price_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_price_idx`"/> + <one-to-many entity-name="Price"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.UKAddressImpl" entity-name="UKAddress" abstract="false" lazy="false" extends="Address" table="`ukaddress`"> + <meta attribute="eclassName">UKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="postcode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`postcode`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.DistrictUKAddressImpl" entity-name="DistrictUKAddress" abstract="false" lazy="false" extends="UKAddress" table="`districtukaddress`"> + <meta attribute="eclassName">DistrictUKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <key> + <column name="`ukaddress_name`"/> + </key> + <property name="district" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`district`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.PriceImpl" entity-name="Price" abstract="false" lazy="false" discriminator-value="myPrice" table="`myprice`"> + <meta attribute="eclassName">Price</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`discriminator`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <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> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.InternationalPriceImpl" entity-name="InternationalPrice" abstract="false" lazy="false" extends="Price" discriminator-value="myInternationalPrice"> + <meta attribute="eclassName">InternationalPrice</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <property name="currency" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`currency`"/> + </property> + </subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`unitedstatesaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="state" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`state`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.abstractsuper.USState</param> + </type> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.CustomerImpl" entity-name="Customer" abstract="false" lazy="false" table="`customer`"> + <meta attribute="eclassName">Customer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.SpecificCustomerImpl" entity-name="SpecificCustomer" abstract="false" lazy="false" extends="Customer" table="`specificcustomer`"> + <meta attribute="eclassName">SpecificCustomer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <key> + <column name="`customer_name`"/> + </key> + <property name="specificName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`specificname`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.issues.abstractsuper.impl.UKAddressListImpl" entity-name="UKAddressList" abstract="false" lazy="false" table="`ukaddresslist`"> + <meta attribute="eclassName">UKAddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/issues/abstractsuper</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ukaddresslist_address"> + <column name="`ukaddresslist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`ukaddresslist_address_idx`"/> + <one-to-many entity-name="UKAddress"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file |