diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues')
56 files changed, 5702 insertions, 16 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ258266Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ258266Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..5b886015f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ258266Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,114 @@ +<?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.issues.bz242995.impl.BookImpl" entity-name="Book" abstract="false" lazy="true" table="`BOOK`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Book"> + <meta attribute="eclassName" inherit="false">Book</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" 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.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz242995.BookCategory</param> + <param name="eclassifier">BookCategory</param> + <param name="epackage">http:///org/eclipse/example/library.ecore</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR" 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.issues.bz242995.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="true" table="`LIBRARY`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Library"> + <meta attribute="eclassName" inherit="false">Library</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="writers" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="LIBRARY_WRITERS"> + <column name="`LIBRARY_WRITERS_E_ID`" 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`" unique="false"/> + </key> + <list-index column="`LIBRARY_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="true" table="`WRITER`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Writer"> + <meta attribute="eclassName" inherit="false">Writer</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="books" lazy="true" cascade="persist,merge,refresh,save-update,lock"> + <key update="true"> + <column name="`BOOK_AUTHOR_E_ID`" unique="false"/> + </key> + <list-index column="`WRITER_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.OneTimeWonderImpl" entity-name="OneTimeWonder" abstract="false" lazy="true" table="`ONETIMEWONDER`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.OneTimeWonder"> + <meta attribute="eclassName" inherit="false">OneTimeWonder</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="foreign"> + <param name="property">theAuthor</param> + </generator> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theAuthor" entity-name="Author" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" constrained="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.AuthorImpl" entity-name="Author" abstract="false" lazy="true" table="`AUTHOR`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Author"> + <meta attribute="eclassName" inherit="false">Author</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theBook" entity-name="OneTimeWonder" cascade="merge,persist,save-update,lock,refresh" lazy="proxy"/> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ258266Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ258266Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..de131434f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ258266Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,129 @@ +<?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.issues.bz242995.impl.BookImpl" entity-name="Book" abstract="false" lazy="true" discriminator-value="Book" table="`BOOK`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Book"> + <meta attribute="eclassName" inherit="false">Book</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="BOOKDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" 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.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz242995.BookCategory</param> + <param name="eclassifier">BookCategory</param> + <param name="epackage">http:///org/eclipse/example/library.ecore</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR" 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.issues.bz242995.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="true" discriminator-value="Library" table="`LIBRARY`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Library"> + <meta attribute="eclassName" inherit="false">Library</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="LIBRARYDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="writers" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="LIBRARY_WRITERS"> + <column name="`LIBRARY_WRITERS_E_ID`" 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`" unique="false"/> + </key> + <list-index column="`LIBRARY_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="true" discriminator-value="Writer" table="`WRITER`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Writer"> + <meta attribute="eclassName" inherit="false">Writer</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="WRITERDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="books" lazy="true" cascade="persist,merge,refresh,save-update,lock"> + <key update="true"> + <column name="`BOOK_AUTHOR_E_ID`" unique="false"/> + </key> + <list-index column="`WRITER_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.OneTimeWonderImpl" entity-name="OneTimeWonder" abstract="false" lazy="true" discriminator-value="OneTimeWonder" table="`ONETIMEWONDER`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.OneTimeWonder"> + <meta attribute="eclassName" inherit="false">OneTimeWonder</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="foreign"> + <param name="property">theAuthor</param> + </generator> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="ONETIMEWONDERDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theAuthor" entity-name="Author" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" constrained="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.AuthorImpl" entity-name="Author" abstract="false" lazy="true" discriminator-value="Author" table="`AUTHOR`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Author"> + <meta attribute="eclassName" inherit="false">Author</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="AUTHORDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theBook" entity-name="OneTimeWonder" cascade="merge,persist,save-update,lock,refresh" lazy="proxy"/> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ285372Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ285372Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..8ad25fcb8 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ285372Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,65 @@ +<?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.test.databinding.emfdb.impl.FamilyImpl" entity-name="Family" abstract="false" lazy="false" table="`FAMILY`"> + <meta attribute="eclassName" inherit="false">Family</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/emfdb/1.0.0</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="string" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`STRING`"/> + </property> + <list name="persons" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="FAMILY_PERSONS"> + <column name="`FAMILY_PERSONS_E_ID`" unique="false"/> + </key> + <list-index column="`FAMILY_PERSONS_IDX`"/> + <one-to-many entity-name="Person"/> + </list> + </class> + <class name="org.eclipse.emf.test.databinding.emfdb.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`PERSON`"> + <meta attribute="eclassName" inherit="false">Person</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/emfdb/1.0.0</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <list name="notes" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="PERSON_NOTES"> + <column name="`PERSON_NOTES_E_ID`" unique="false"/> + </key> + <list-index column="`PERSON_NOTES_IDX`"/> + <one-to-many entity-name="Note"/> + </list> + <list name="parents" lazy="true" cascade="persist,merge,refresh,save-update,lock"> + <key update="true" foreign-key="PERSON_PARENTS"> + <column name="`PERSON_PARENTS_E_ID`" unique="false"/> + </key> + <list-index column="`PERSON_PARENTS_IDX`"/> + <one-to-many entity-name="Person"/> + </list> + </class> + <class name="org.eclipse.emf.test.databinding.emfdb.impl.NoteImpl" entity-name="Note" abstract="false" lazy="false" table="`NOTE`"> + <meta attribute="eclassName" inherit="false">Note</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/emfdb/1.0.0</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ285372Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ285372Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..688216d62 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ285372Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,74 @@ +<?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.test.databinding.emfdb.impl.FamilyImpl" entity-name="Family" abstract="false" lazy="false" discriminator-value="Family" table="`FAMILY`"> + <meta attribute="eclassName" inherit="false">Family</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/emfdb/1.0.0</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="FAMILYDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="string" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`STRING`"/> + </property> + <list name="persons" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="FAMILY_PERSONS"> + <column name="`FAMILY_PERSONS_E_ID`" unique="false"/> + </key> + <list-index column="`FAMILY_PERSONS_IDX`"/> + <one-to-many entity-name="Person"/> + </list> + </class> + <class name="org.eclipse.emf.test.databinding.emfdb.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`PERSON`"> + <meta attribute="eclassName" inherit="false">Person</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/emfdb/1.0.0</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="PERSONDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="notes" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="PERSON_NOTES"> + <column name="`PERSON_NOTES_E_ID`" unique="false"/> + </key> + <list-index column="`PERSON_NOTES_IDX`"/> + <one-to-many entity-name="Note"/> + </list> + <list name="parents" lazy="true" cascade="persist,merge,refresh,save-update,lock"> + <key update="true" foreign-key="PERSON_PARENTS"> + <column name="`PERSON_PARENTS_E_ID`" unique="false"/> + </key> + <list-index column="`PERSON_PARENTS_IDX`"/> + <one-to-many entity-name="Person"/> + </list> + </class> + <class name="org.eclipse.emf.test.databinding.emfdb.impl.NoteImpl" entity-name="Note" abstract="false" lazy="false" discriminator-value="Note" table="`NOTE`"> + <meta attribute="eclassName" inherit="false">Note</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/emfdb/1.0.0</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="NOTEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..4f0ac23fc --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,68 @@ +<?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.issues.bz329275.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`ITEM`"> + <meta attribute="eclassName" inherit="false">Item</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <version name="version" type="long"> + <column not-null="true" unique="false" name="`VERSION`"/> + </version> + <property name="unSettableStringNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`UNSETTABLESTRINGNODEFAULT`"/> + </property> + <property name="standardStringNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`STANDARDSTRINGNODEFAULT`"/> + </property> + <property name="unSettableStringWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`UNSETTABLESTRINGWITHDEFAULT`"/> + </property> + <property name="standardStringDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`STANDARDSTRINGDEFAULT`"/> + </property> + <property name="unSettableEnum" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`UNSETTABLEENUM`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum</param> + <param name="eclassifier">TestEnum</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</param> + </type> + </property> + <property name="standardEnum" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`STANDARDENUM`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum</param> + <param name="eclassifier">TestEnum</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</param> + </type> + </property> + <property name="unSettablePrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`UNSETTABLEPRIMITIVENODEFAULT`"/> + </property> + <property name="standardPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`STANDARDPRIMITIVENODEFAULT`"/> + </property> + <property name="unSettablePrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`UNSETTABLEPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="standardPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`STANDARDPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="unSettableObjectPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`UNSETTABLEOBJECTPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="standardObjectPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`STANDARDOBJECTPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="unSettableObjectPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`UNSETTABLEOBJECTPRIMITIVENODEFAULT`"/> + </property> + <property name="standardObjectPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`STANDARDOBJECTPRIMITIVENODEFAULT`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..860dc8da3 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,71 @@ +<?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.issues.bz329275.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" discriminator-value="Item" table="`ITEM`"> + <meta attribute="eclassName" inherit="false">Item</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="ITEMDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="version" type="long"> + <column not-null="true" unique="false" name="`VERSION`"/> + </version> + <property name="unSettableStringNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`UNSETTABLESTRINGNODEFAULT`"/> + </property> + <property name="standardStringNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`STANDARDSTRINGNODEFAULT`"/> + </property> + <property name="unSettableStringWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`UNSETTABLESTRINGWITHDEFAULT`"/> + </property> + <property name="standardStringDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`STANDARDSTRINGDEFAULT`"/> + </property> + <property name="unSettableEnum" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`UNSETTABLEENUM`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum</param> + <param name="eclassifier">TestEnum</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</param> + </type> + </property> + <property name="standardEnum" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`STANDARDENUM`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum</param> + <param name="eclassifier">TestEnum</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</param> + </type> + </property> + <property name="unSettablePrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`UNSETTABLEPRIMITIVENODEFAULT`"/> + </property> + <property name="standardPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`STANDARDPRIMITIVENODEFAULT`"/> + </property> + <property name="unSettablePrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`UNSETTABLEPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="standardPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`STANDARDPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="unSettableObjectPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`UNSETTABLEOBJECTPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="standardObjectPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`STANDARDOBJECTPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="unSettableObjectPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`UNSETTABLEOBJECTPRIMITIVENODEFAULT`"/> + </property> + <property name="standardObjectPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`STANDARDOBJECTPRIMITIVENODEFAULT`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275_ConvertUnsetToNulllAction_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275_ConvertUnsetToNulllAction_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..4f0ac23fc --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275_ConvertUnsetToNulllAction_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,68 @@ +<?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.issues.bz329275.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`ITEM`"> + <meta attribute="eclassName" inherit="false">Item</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <version name="version" type="long"> + <column not-null="true" unique="false" name="`VERSION`"/> + </version> + <property name="unSettableStringNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`UNSETTABLESTRINGNODEFAULT`"/> + </property> + <property name="standardStringNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`STANDARDSTRINGNODEFAULT`"/> + </property> + <property name="unSettableStringWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`UNSETTABLESTRINGWITHDEFAULT`"/> + </property> + <property name="standardStringDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`STANDARDSTRINGDEFAULT`"/> + </property> + <property name="unSettableEnum" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`UNSETTABLEENUM`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum</param> + <param name="eclassifier">TestEnum</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</param> + </type> + </property> + <property name="standardEnum" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`STANDARDENUM`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum</param> + <param name="eclassifier">TestEnum</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</param> + </type> + </property> + <property name="unSettablePrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`UNSETTABLEPRIMITIVENODEFAULT`"/> + </property> + <property name="standardPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`STANDARDPRIMITIVENODEFAULT`"/> + </property> + <property name="unSettablePrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`UNSETTABLEPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="standardPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`STANDARDPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="unSettableObjectPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`UNSETTABLEOBJECTPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="standardObjectPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`STANDARDOBJECTPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="unSettableObjectPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`UNSETTABLEOBJECTPRIMITIVENODEFAULT`"/> + </property> + <property name="standardObjectPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`STANDARDOBJECTPRIMITIVENODEFAULT`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275_ConvertUnsetToNulllAction_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275_ConvertUnsetToNulllAction_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..860dc8da3 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275_ConvertUnsetToNulllAction_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,71 @@ +<?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.issues.bz329275.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" discriminator-value="Item" table="`ITEM`"> + <meta attribute="eclassName" inherit="false">Item</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="ITEMDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="version" type="long"> + <column not-null="true" unique="false" name="`VERSION`"/> + </version> + <property name="unSettableStringNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`UNSETTABLESTRINGNODEFAULT`"/> + </property> + <property name="standardStringNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`STANDARDSTRINGNODEFAULT`"/> + </property> + <property name="unSettableStringWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`UNSETTABLESTRINGWITHDEFAULT`"/> + </property> + <property name="standardStringDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`STANDARDSTRINGDEFAULT`"/> + </property> + <property name="unSettableEnum" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`UNSETTABLEENUM`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum</param> + <param name="eclassifier">TestEnum</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</param> + </type> + </property> + <property name="standardEnum" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`STANDARDENUM`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum</param> + <param name="eclassifier">TestEnum</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</param> + </type> + </property> + <property name="unSettablePrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`UNSETTABLEPRIMITIVENODEFAULT`"/> + </property> + <property name="standardPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`STANDARDPRIMITIVENODEFAULT`"/> + </property> + <property name="unSettablePrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`UNSETTABLEPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="standardPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`STANDARDPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="unSettableObjectPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`UNSETTABLEOBJECTPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="standardObjectPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`STANDARDOBJECTPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="unSettableObjectPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`UNSETTABLEOBJECTPRIMITIVENODEFAULT`"/> + </property> + <property name="standardObjectPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`STANDARDOBJECTPRIMITIVENODEFAULT`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275_HandleUnsetAsNullAction_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275_HandleUnsetAsNullAction_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..4f0ac23fc --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275_HandleUnsetAsNullAction_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,68 @@ +<?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.issues.bz329275.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`ITEM`"> + <meta attribute="eclassName" inherit="false">Item</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <version name="version" type="long"> + <column not-null="true" unique="false" name="`VERSION`"/> + </version> + <property name="unSettableStringNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`UNSETTABLESTRINGNODEFAULT`"/> + </property> + <property name="standardStringNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`STANDARDSTRINGNODEFAULT`"/> + </property> + <property name="unSettableStringWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`UNSETTABLESTRINGWITHDEFAULT`"/> + </property> + <property name="standardStringDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`STANDARDSTRINGDEFAULT`"/> + </property> + <property name="unSettableEnum" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`UNSETTABLEENUM`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum</param> + <param name="eclassifier">TestEnum</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</param> + </type> + </property> + <property name="standardEnum" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`STANDARDENUM`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum</param> + <param name="eclassifier">TestEnum</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</param> + </type> + </property> + <property name="unSettablePrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`UNSETTABLEPRIMITIVENODEFAULT`"/> + </property> + <property name="standardPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`STANDARDPRIMITIVENODEFAULT`"/> + </property> + <property name="unSettablePrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`UNSETTABLEPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="standardPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`STANDARDPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="unSettableObjectPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`UNSETTABLEOBJECTPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="standardObjectPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`STANDARDOBJECTPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="unSettableObjectPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`UNSETTABLEOBJECTPRIMITIVENODEFAULT`"/> + </property> + <property name="standardObjectPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`STANDARDOBJECTPRIMITIVENODEFAULT`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275_HandleUnsetAsNullAction_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275_HandleUnsetAsNullAction_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..860dc8da3 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/BZ329275_HandleUnsetAsNullAction_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,71 @@ +<?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.issues.bz329275.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" discriminator-value="Item" table="`ITEM`"> + <meta attribute="eclassName" inherit="false">Item</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="ITEMDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="version" type="long"> + <column not-null="true" unique="false" name="`VERSION`"/> + </version> + <property name="unSettableStringNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`UNSETTABLESTRINGNODEFAULT`"/> + </property> + <property name="standardStringNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`STANDARDSTRINGNODEFAULT`"/> + </property> + <property name="unSettableStringWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`UNSETTABLESTRINGWITHDEFAULT`"/> + </property> + <property name="standardStringDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`STANDARDSTRINGDEFAULT`"/> + </property> + <property name="unSettableEnum" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`UNSETTABLEENUM`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum</param> + <param name="eclassifier">TestEnum</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</param> + </type> + </property> + <property name="standardEnum" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`STANDARDENUM`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum</param> + <param name="eclassifier">TestEnum</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz329275</param> + </type> + </property> + <property name="unSettablePrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`UNSETTABLEPRIMITIVENODEFAULT`"/> + </property> + <property name="standardPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`STANDARDPRIMITIVENODEFAULT`"/> + </property> + <property name="unSettablePrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`UNSETTABLEPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="standardPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`STANDARDPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="unSettableObjectPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`UNSETTABLEOBJECTPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="standardObjectPrimitiveWithDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`STANDARDOBJECTPRIMITIVEWITHDEFAULT`"/> + </property> + <property name="unSettableObjectPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`UNSETTABLEOBJECTPRIMITIVENODEFAULT`"/> + </property> + <property name="standardObjectPrimitiveNoDefault" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`STANDARDOBJECTPRIMITIVENODEFAULT`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz242995Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz242995Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..5b886015f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz242995Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,114 @@ +<?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.issues.bz242995.impl.BookImpl" entity-name="Book" abstract="false" lazy="true" table="`BOOK`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Book"> + <meta attribute="eclassName" inherit="false">Book</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" 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.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz242995.BookCategory</param> + <param name="eclassifier">BookCategory</param> + <param name="epackage">http:///org/eclipse/example/library.ecore</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR" 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.issues.bz242995.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="true" table="`LIBRARY`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Library"> + <meta attribute="eclassName" inherit="false">Library</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="writers" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="LIBRARY_WRITERS"> + <column name="`LIBRARY_WRITERS_E_ID`" 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`" unique="false"/> + </key> + <list-index column="`LIBRARY_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="true" table="`WRITER`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Writer"> + <meta attribute="eclassName" inherit="false">Writer</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="books" lazy="true" cascade="persist,merge,refresh,save-update,lock"> + <key update="true"> + <column name="`BOOK_AUTHOR_E_ID`" unique="false"/> + </key> + <list-index column="`WRITER_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.OneTimeWonderImpl" entity-name="OneTimeWonder" abstract="false" lazy="true" table="`ONETIMEWONDER`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.OneTimeWonder"> + <meta attribute="eclassName" inherit="false">OneTimeWonder</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="foreign"> + <param name="property">theAuthor</param> + </generator> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theAuthor" entity-name="Author" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" constrained="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.AuthorImpl" entity-name="Author" abstract="false" lazy="true" table="`AUTHOR`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Author"> + <meta attribute="eclassName" inherit="false">Author</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theBook" entity-name="OneTimeWonder" cascade="merge,persist,save-update,lock,refresh" lazy="proxy"/> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz242995Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz242995Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..de131434f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz242995Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,129 @@ +<?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.issues.bz242995.impl.BookImpl" entity-name="Book" abstract="false" lazy="true" discriminator-value="Book" table="`BOOK`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Book"> + <meta attribute="eclassName" inherit="false">Book</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="BOOKDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" 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.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz242995.BookCategory</param> + <param name="eclassifier">BookCategory</param> + <param name="epackage">http:///org/eclipse/example/library.ecore</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR" 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.issues.bz242995.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="true" discriminator-value="Library" table="`LIBRARY`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Library"> + <meta attribute="eclassName" inherit="false">Library</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="LIBRARYDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="writers" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="LIBRARY_WRITERS"> + <column name="`LIBRARY_WRITERS_E_ID`" 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`" unique="false"/> + </key> + <list-index column="`LIBRARY_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="true" discriminator-value="Writer" table="`WRITER`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Writer"> + <meta attribute="eclassName" inherit="false">Writer</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="WRITERDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="books" lazy="true" cascade="persist,merge,refresh,save-update,lock"> + <key update="true"> + <column name="`BOOK_AUTHOR_E_ID`" unique="false"/> + </key> + <list-index column="`WRITER_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.OneTimeWonderImpl" entity-name="OneTimeWonder" abstract="false" lazy="true" discriminator-value="OneTimeWonder" table="`ONETIMEWONDER`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.OneTimeWonder"> + <meta attribute="eclassName" inherit="false">OneTimeWonder</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="foreign"> + <param name="property">theAuthor</param> + </generator> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="ONETIMEWONDERDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theAuthor" entity-name="Author" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" constrained="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.AuthorImpl" entity-name="Author" abstract="false" lazy="true" discriminator-value="Author" table="`AUTHOR`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Author"> + <meta attribute="eclassName" inherit="false">Author</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="AUTHORDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theBook" entity-name="OneTimeWonder" cascade="merge,persist,save-update,lock,refresh" lazy="proxy"/> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz243024Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz243024Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..c5791a697 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz243024Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,37 @@ +<?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.issues.bz243024.impl.OneImpl" entity-name="One" abstract="false" lazy="false" table="`ONE`"> + <meta attribute="eclassName" inherit="false">One</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz243024</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <list name="manies" lazy="true" cascade="delete-orphan,save-update,replicate,delete,persist"> + <key update="true" foreign-key="ONE_MANIES"> + <column name="`ONE_MANIES_E_ID`" unique="false"/> + </key> + <list-index column="`ONE_MANIES_IDX`"/> + <one-to-many entity-name="Many"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz243024.impl.ManyImpl" entity-name="Many" abstract="false" lazy="false" table="`MANY`"> + <meta attribute="eclassName" inherit="false">Many</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz243024</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz243024Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz243024Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..bb6796216 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz243024Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,43 @@ +<?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.issues.bz243024.impl.OneImpl" entity-name="One" abstract="false" lazy="false" discriminator-value="One" table="`ONE`"> + <meta attribute="eclassName" inherit="false">One</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz243024</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="ONEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="manies" lazy="true" cascade="delete-orphan,save-update,replicate,delete,persist"> + <key update="true" foreign-key="ONE_MANIES"> + <column name="`ONE_MANIES_E_ID`" unique="false"/> + </key> + <list-index column="`ONE_MANIES_IDX`"/> + <one-to-many entity-name="Many"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz243024.impl.ManyImpl" entity-name="Many" abstract="false" lazy="false" discriminator-value="Many" table="`MANY`"> + <meta attribute="eclassName" inherit="false">Many</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz243024</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="MANYDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz245167Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz245167Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..0c97958ac --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz245167Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,114 @@ +<?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.issues.bz242995.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`BOOK`"> + <meta attribute="eclassName" inherit="false">Book</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" 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.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz242995.BookCategory</param> + <param name="eclassifier">BookCategory</param> + <param name="epackage">http:///org/eclipse/example/library.ecore</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR" 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.issues.bz242995.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`LIBRARY`"> + <meta attribute="eclassName" inherit="false">Library</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="writers" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="LIBRARY_WRITERS"> + <column name="`LIBRARY_WRITERS_E_ID`" 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`" unique="false"/> + </key> + <list-index column="`LIBRARY_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`WRITER`"> + <meta attribute="eclassName" inherit="false">Writer</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="books" lazy="true" cascade="persist,merge,refresh,save-update,lock"> + <key update="true"> + <column name="`BOOK_AUTHOR_E_ID`" unique="false"/> + </key> + <list-index column="`WRITER_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.OneTimeWonderImpl" entity-name="OneTimeWonder" abstract="false" lazy="false" table="`ONETIMEWONDER`"> + <meta attribute="eclassName" inherit="false">OneTimeWonder</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="foreign"> + <param name="property">theAuthor</param> + </generator> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theAuthor" entity-name="Author" cascade="merge,persist,save-update,lock,refresh" lazy="false" constrained="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.AuthorImpl" entity-name="Author" abstract="false" lazy="false" table="`AUTHOR`"> + <meta attribute="eclassName" inherit="false">Author</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theBook" entity-name="OneTimeWonder" cascade="merge,persist,save-update,lock,refresh" lazy="false"/> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz245167Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz245167Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..e4f71629d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz245167Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,129 @@ +<?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.issues.bz242995.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`BOOK`"> + <meta attribute="eclassName" inherit="false">Book</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="BOOKDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" 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.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz242995.BookCategory</param> + <param name="eclassifier">BookCategory</param> + <param name="epackage">http:///org/eclipse/example/library.ecore</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR" 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.issues.bz242995.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`LIBRARY`"> + <meta attribute="eclassName" inherit="false">Library</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="LIBRARYDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="writers" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="LIBRARY_WRITERS"> + <column name="`LIBRARY_WRITERS_E_ID`" 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`" unique="false"/> + </key> + <list-index column="`LIBRARY_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`WRITER`"> + <meta attribute="eclassName" inherit="false">Writer</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="WRITERDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="books" lazy="true" cascade="persist,merge,refresh,save-update,lock"> + <key update="true"> + <column name="`BOOK_AUTHOR_E_ID`" unique="false"/> + </key> + <list-index column="`WRITER_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.OneTimeWonderImpl" entity-name="OneTimeWonder" abstract="false" lazy="false" discriminator-value="OneTimeWonder" table="`ONETIMEWONDER`"> + <meta attribute="eclassName" inherit="false">OneTimeWonder</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="foreign"> + <param name="property">theAuthor</param> + </generator> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="ONETIMEWONDERDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theAuthor" entity-name="Author" cascade="merge,persist,save-update,lock,refresh" lazy="false" constrained="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.AuthorImpl" entity-name="Author" abstract="false" lazy="false" discriminator-value="Author" table="`AUTHOR`"> + <meta attribute="eclassName" inherit="false">Author</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="AUTHORDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theBook" entity-name="OneTimeWonder" cascade="merge,persist,save-update,lock,refresh" lazy="false"/> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz245634Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz245634Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..206754b68 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz245634Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,55 @@ +<?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.issues.bz245634.impl.CityImpl" entity-name="City" abstract="false" lazy="true" table="`CITY`" proxy="org.eclipse.emf.teneo.samples.issues.bz245634.City"> + <meta attribute="eclassName" inherit="false">City</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz245634</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <many-to-one name="mayor" entity-name="Mayor" cascade="merge,persist,save-update,lock,refresh" not-null="false" lazy="proxy" insert="true" update="true"/> + <one-to-one name="policeChief" entity-name="PoliceChief" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" property-ref="city"/> + <many-to-one name="country" entity-name="Country" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="CITY_COUNTRY" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`COUNTRY_COUNTRY_E_ID`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz245634.impl.MayorImpl" entity-name="Mayor" abstract="false" lazy="true" table="`MAYOR`" proxy="org.eclipse.emf.teneo.samples.issues.bz245634.Mayor"> + <meta attribute="eclassName" inherit="false">Mayor</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz245634</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <one-to-one name="city" entity-name="City" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" property-ref="mayor"/> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz245634.impl.PoliceChiefImpl" entity-name="PoliceChief" abstract="false" lazy="true" table="`POLICECHIEF`" proxy="org.eclipse.emf.teneo.samples.issues.bz245634.PoliceChief"> + <meta attribute="eclassName" inherit="false">PoliceChief</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz245634</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <many-to-one name="city" entity-name="City" cascade="merge,persist,save-update,lock,refresh" not-null="false" lazy="proxy" insert="true" update="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz245634.impl.CountryImpl" entity-name="Country" abstract="false" lazy="true" table="`COUNTRY`" proxy="org.eclipse.emf.teneo.samples.issues.bz245634.Country"> + <meta attribute="eclassName" inherit="false">Country</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz245634</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz245634Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz245634Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..2f7eb4541 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz245634Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,67 @@ +<?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.issues.bz245634.impl.CityImpl" entity-name="City" abstract="false" lazy="true" discriminator-value="City" table="`CITY`" proxy="org.eclipse.emf.teneo.samples.issues.bz245634.City"> + <meta attribute="eclassName" inherit="false">City</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz245634</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="CITYDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <many-to-one name="mayor" entity-name="Mayor" cascade="merge,persist,save-update,lock,refresh" not-null="false" lazy="proxy" insert="true" update="true"/> + <one-to-one name="policeChief" entity-name="PoliceChief" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" property-ref="city"/> + <many-to-one name="country" entity-name="Country" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="CITY_COUNTRY" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`COUNTRY_COUNTRY_E_ID`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz245634.impl.MayorImpl" entity-name="Mayor" abstract="false" lazy="true" discriminator-value="Mayor" table="`MAYOR`" proxy="org.eclipse.emf.teneo.samples.issues.bz245634.Mayor"> + <meta attribute="eclassName" inherit="false">Mayor</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz245634</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="MAYORDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <one-to-one name="city" entity-name="City" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" property-ref="mayor"/> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz245634.impl.PoliceChiefImpl" entity-name="PoliceChief" abstract="false" lazy="true" discriminator-value="PoliceChief" table="`POLICECHIEF`" proxy="org.eclipse.emf.teneo.samples.issues.bz245634.PoliceChief"> + <meta attribute="eclassName" inherit="false">PoliceChief</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz245634</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="POLICECHIEFDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <many-to-one name="city" entity-name="City" cascade="merge,persist,save-update,lock,refresh" not-null="false" lazy="proxy" insert="true" update="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz245634.impl.CountryImpl" entity-name="Country" abstract="false" lazy="true" discriminator-value="Country" table="`COUNTRY`" proxy="org.eclipse.emf.teneo.samples.issues.bz245634.Country"> + <meta attribute="eclassName" inherit="false">Country</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz245634</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="COUNTRYDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz280355Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz280355Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..4d29576d5 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz280355Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,30 @@ +<?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.issues.bz280355.impl.LeiterImpl" entity-name="Leiter" abstract="false" lazy="false" table="`LEITER`"> + <meta attribute="eclassName" inherit="false">Leiter</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz280355</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <version name="version" type="long"> + <column not-null="true" unique="false" name="`VERSION`"/> + </version> + <many-to-one name="person" entity-name="Person" lazy="false" cascade="all" foreign-key="LEITER_PERSON" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`PERSON_PERSON_ID`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz280355.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`PERSON`"> + <meta attribute="eclassName" inherit="false">Person</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz280355</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <version name="version" type="long"> + <column not-null="true" unique="false" name="`VERSION`"/> + </version> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz280355Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz280355Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..7b60abf6c --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz280355Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,36 @@ +<?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.issues.bz280355.impl.LeiterImpl" entity-name="Leiter" abstract="false" lazy="false" discriminator-value="Leiter" table="`LEITER`"> + <meta attribute="eclassName" inherit="false">Leiter</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz280355</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="LEITERDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="version" type="long"> + <column not-null="true" unique="false" name="`VERSION`"/> + </version> + <many-to-one name="person" entity-name="Person" lazy="false" cascade="all" foreign-key="LEITER_PERSON" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`PERSON_PERSON_ID`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz280355.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`PERSON`"> + <meta attribute="eclassName" inherit="false">Person</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz280355</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="PERSONDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="version" type="long"> + <column not-null="true" unique="false" name="`VERSION`"/> + </version> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz280480Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz280480Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..c6c5aa0c3 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz280480Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,1033 @@ +<?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.w3._2000._09.xmldsig.impl.CanonicalizationMethodTypeImpl" entity-name="CanonicalizationMethodType" abstract="false" lazy="false" table="`CANONICALIZATIONMETHODTYPE`"> + <meta attribute="eclassName" inherit="false">CanonicalizationMethodType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <list name="mixed" table="`CANONICALIZATIONMETHODTYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`CANONICALIZATIONMETHODTYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`CANONICALIZATIONMETHODTYPE_MIXED_IDX`"/> + <one-to-many entity-name="CanonicalizationMethodType_mixed"/> + </list> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ALGORITHM`"/> + </property> + </class> + <class entity-name="CanonicalizationMethodType_mixed" lazy="false" table="`CANONICALIZATIONMETHODTYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">CanonicalizationMethodType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="any" table="`MIXED_CANONICALIZATIONMETHODTYPE_ANY`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_CANONICALIZATIONMETHODTYPE_ANY_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_CANONICALIZATIONMETHODTYPE_ANY_IDX`"/> + <one-to-many entity-name="CanonicalizationMethodType_any"/> + </list> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ALGORITHM`"/> + </property> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="CanonicalizationMethodType_any" lazy="false" table="`CANONICALIZATIONMETHODTYPE_ANY`"> + <meta attribute="featureMap" inherit="false">CanonicalizationMethodType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.DigestMethodTypeImpl" entity-name="DigestMethodType" abstract="false" lazy="false" table="`DIGESTMETHODTYPE`"> + <meta attribute="eclassName" inherit="false">DigestMethodType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <list name="mixed" table="`DIGESTMETHODTYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DIGESTMETHODTYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`DIGESTMETHODTYPE_MIXED_IDX`"/> + <one-to-many entity-name="DigestMethodType_mixed"/> + </list> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ALGORITHM`"/> + </property> + </class> + <class entity-name="DigestMethodType_mixed" lazy="false" table="`DIGESTMETHODTYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">DigestMethodType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="any" table="`MIXED_DIGESTMETHODTYPE_ANY`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_DIGESTMETHODTYPE_ANY_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_DIGESTMETHODTYPE_ANY_IDX`"/> + <one-to-many entity-name="DigestMethodType_any"/> + </list> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ALGORITHM`"/> + </property> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="DigestMethodType_any" lazy="false" table="`DIGESTMETHODTYPE_ANY`"> + <meta attribute="featureMap" inherit="false">DigestMethodType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.DSAKeyValueTypeImpl" entity-name="DSAKeyValueType" abstract="false" lazy="false" table="`DSAKEYVALUETYPE`"> + <meta attribute="eclassName" inherit="false">DSAKeyValueType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <array name="p" table="`DSAKEYVALUETYPE_P`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DSAKEYVALUETYPE_P_E_ID`" unique="false"/> + </key> + <list-index column="`DSAKEYVALUETYPE_P_IDX`"/> + <element type="byte"/> + </array> + <array name="q" table="`DSAKEYVALUETYPE_Q`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DSAKEYVALUETYPE_Q_E_ID`" unique="false"/> + </key> + <list-index column="`DSAKEYVALUETYPE_Q_IDX`"/> + <element type="byte"/> + </array> + <array name="g" table="`DSAKEYVALUETYPE_G`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DSAKEYVALUETYPE_G_E_ID`" unique="false"/> + </key> + <list-index column="`DSAKEYVALUETYPE_G_IDX`"/> + <element type="byte"/> + </array> + <array name="y" table="`DSAKEYVALUETYPE_Y`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DSAKEYVALUETYPE_Y_E_ID`" unique="false"/> + </key> + <list-index column="`DSAKEYVALUETYPE_Y_IDX`"/> + <element type="byte"/> + </array> + <array name="j" table="`DSAKEYVALUETYPE_J`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DSAKEYVALUETYPE_J_E_ID`" unique="false"/> + </key> + <list-index column="`DSAKEYVALUETYPE_J_IDX`"/> + <element type="byte"/> + </array> + <array name="seed" table="`DSAKEYVALUETYPE_SEED`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DSAKEYVALUETYPE_SEED_E_ID`" unique="false"/> + </key> + <list-index column="`DSAKEYVALUETYPE_SEED_IDX`"/> + <element type="byte"/> + </array> + <array name="pgenCounter" table="`DSAKEYVALUETYPE_PGENCOUNTER`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DSAKEYVALUETYPE_PGENCOUNTER_E_ID`" unique="false"/> + </key> + <list-index column="`DSAKEYVALUETYPE_PGENCOUNTER_IDX`"/> + <element type="byte"/> + </array> + </class> + <class name="org.w3._2000._09.xmldsig.impl.KeyInfoTypeImpl" entity-name="KeyInfoType" abstract="false" lazy="false" table="`KEYINFOTYPE`"> + <meta attribute="eclassName" inherit="false">KeyInfoType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="mixed" table="`KEYINFOTYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`KEYINFOTYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`KEYINFOTYPE_MIXED_IDX`"/> + <one-to-many entity-name="KeyInfoType_mixed"/> + </list> + </class> + <class entity-name="KeyInfoType_mixed" lazy="false" table="`KEYINFOTYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">KeyInfoType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="group" table="`MIXED_KEYINFOTYPE_GROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_KEYINFOTYPE_GROUP_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_KEYINFOTYPE_GROUP_IDX`"/> + <one-to-many entity-name="KeyInfoType_group"/> + </list> + <property name="keyName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_KEYNAME`"/> + </property> + <many-to-one name="keyValue" entity-name="KeyValueType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_KEYVALUE" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MIXED_KEYVALUETYPE_KEYVALUE_E_ID`"/> + </many-to-one> + <many-to-one name="retrievalMethod" entity-name="RetrievalMethodType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_RETRIEVALMETHOD" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MIXED_RETRIEVALMETHODTYPE_RETRIEVALMETHOD_E_ID`"/> + </many-to-one> + <many-to-one name="x509Data" entity-name="X509DataType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_X509DATA" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MIXED_X509DATATYPE_X509DATA_E_ID`"/> + </many-to-one> + <many-to-one name="pGPData" entity-name="PGPDataType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_PGPDATA" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MIXED_PGPDATATYPE_PGPDATA_E_ID`"/> + </many-to-one> + <many-to-one name="sPKIData" entity-name="SPKIDataType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_SPKIDATA" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MIXED_SPKIDATATYPE_SPKIDATA_E_ID`"/> + </many-to-one> + <property name="mgmtData" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_MGMTDATA`"/> + </property> + <many-to-one name="any" entity-name="KeyInfoType_any" cascade="all" not-null="false"/> + <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ID`"/> + </property> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="KeyInfoType_group" lazy="false" table="`KEYINFOTYPE_GROUP`"> + <meta attribute="featureMap" inherit="false">KeyInfoType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="keyName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`GROUP_KEYNAME`"/> + </property> + <many-to-one name="keyValue" entity-name="KeyValueType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_KEYVALUE" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`GROUP_KEYVALUETYPE_KEYVALUE_E_ID`"/> + </many-to-one> + <many-to-one name="retrievalMethod" entity-name="RetrievalMethodType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_RETRIEVALMETHOD" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`GROUP_RETRIEVALMETHODTYPE_RETRIEVALMETHOD_E_ID`"/> + </many-to-one> + <many-to-one name="x509Data" entity-name="X509DataType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_X509DATA" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`GROUP_X509DATATYPE_X509DATA_E_ID`"/> + </many-to-one> + <many-to-one name="pGPData" entity-name="PGPDataType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_PGPDATA" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`GROUP_PGPDATATYPE_PGPDATA_E_ID`"/> + </many-to-one> + <many-to-one name="sPKIData" entity-name="SPKIDataType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_SPKIDATA" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`GROUP_SPKIDATATYPE_SPKIDATA_E_ID`"/> + </many-to-one> + <property name="mgmtData" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`GROUP_MGMTDATA`"/> + </property> + <many-to-one name="any" entity-name="KeyInfoType_any" cascade="all" not-null="false"/> + </class> + <class entity-name="KeyInfoType_any" lazy="false" table="`KEYINFOTYPE_ANY`"> + <meta attribute="featureMap" inherit="false">KeyInfoType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.KeyValueTypeImpl" entity-name="KeyValueType" abstract="false" lazy="false" table="`KEYVALUETYPE`"> + <meta attribute="eclassName" inherit="false">KeyValueType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <list name="mixed" table="`KEYVALUETYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`KEYVALUETYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`KEYVALUETYPE_MIXED_IDX`"/> + <one-to-many entity-name="KeyValueType_mixed"/> + </list> + </class> + <class entity-name="KeyValueType_mixed" lazy="false" table="`KEYVALUETYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">KeyValueType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="dSAKeyValue" entity-name="DSAKeyValueType" lazy="false" cascade="all" foreign-key="KEYVALUETYPE_DSAKEYVALUE" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MIXED_DSAKEYVALUETYPE_DSAKEYVALUE_E_ID`"/> + </many-to-one> + <many-to-one name="rSAKeyValue" entity-name="RSAKeyValueType" lazy="false" cascade="all" foreign-key="KEYVALUETYPE_RSAKEYVALUE" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MIXED_RSAKEYVALUETYPE_RSAKEYVALUE_E_ID`"/> + </many-to-one> + <list name="any" table="`MIXED_KEYVALUETYPE_ANY`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_KEYVALUETYPE_ANY_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_KEYVALUETYPE_ANY_IDX`"/> + <one-to-many entity-name="KeyValueType_any"/> + </list> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="KeyValueType_any" lazy="false" table="`KEYVALUETYPE_ANY`"> + <meta attribute="featureMap" inherit="false">KeyValueType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.ManifestTypeImpl" entity-name="ManifestType" abstract="false" lazy="false" table="`MANIFESTTYPE`"> + <meta attribute="eclassName" inherit="false">ManifestType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="reference" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="MANIFESTTYPE_REFERENCE"> + <column name="`MANIFESTTYPE_REFERENCE_E_ID`" unique="false"/> + </key> + <list-index column="`MANIFESTTYPE_REFERENCE_IDX`"/> + <one-to-many entity-name="ReferenceType"/> + </list> + </class> + <class name="org.w3._2000._09.xmldsig.impl.ObjectTypeImpl" entity-name="ObjectType" abstract="false" lazy="false" table="`OBJECTTYPE`"> + <meta attribute="eclassName" inherit="false">ObjectType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="mixed" table="`OBJECTTYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`OBJECTTYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`OBJECTTYPE_MIXED_IDX`"/> + <one-to-many entity-name="ObjectType_mixed"/> + </list> + <property name="encoding" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`ENCODING`"/> + </property> + <property name="mimeType" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIMETYPE`"/> + </property> + </class> + <class entity-name="ObjectType_mixed" lazy="false" table="`OBJECTTYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">ObjectType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="group" table="`MIXED_OBJECTTYPE_GROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_OBJECTTYPE_GROUP_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_OBJECTTYPE_GROUP_IDX`"/> + <one-to-many entity-name="ObjectType_group"/> + </list> + <many-to-one name="any" entity-name="ObjectType_any" cascade="all" not-null="false"/> + <property name="encoding" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ENCODING`"/> + </property> + <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ID`"/> + </property> + <property name="mimeType" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_MIMETYPE`"/> + </property> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="ObjectType_group" lazy="false" table="`OBJECTTYPE_GROUP`"> + <meta attribute="featureMap" inherit="false">ObjectType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="any" entity-name="ObjectType_any" cascade="all" not-null="false"/> + </class> + <class entity-name="ObjectType_any" lazy="false" table="`OBJECTTYPE_ANY`"> + <meta attribute="featureMap" inherit="false">ObjectType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.PGPDataTypeImpl" entity-name="PGPDataType" abstract="false" lazy="false" table="`PGPDATATYPE`"> + <meta attribute="eclassName" inherit="false">PGPDataType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <array name="pGPKeyID" table="`PGPDATATYPE_PGPKEYID`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PGPDATATYPE_PGPKEYID_E_ID`" unique="false"/> + </key> + <list-index column="`PGPDATATYPE_PGPKEYID_IDX`"/> + <element type="byte"/> + </array> + <array name="pGPKeyPacket" table="`PGPDATATYPE_PGPKEYPACKET`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PGPDATATYPE_PGPKEYPACKET_E_ID`" unique="false"/> + </key> + <list-index column="`PGPDATATYPE_PGPKEYPACKET_IDX`"/> + <element type="byte"/> + </array> + <list name="any" table="`PGPDATATYPE_ANY`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PGPDATATYPE_ANY_E_ID`" unique="false"/> + </key> + <list-index column="`PGPDATATYPE_ANY_IDX`"/> + <one-to-many entity-name="PGPDataType_any"/> + </list> + <array name="pGPKeyPacket1" table="`PGPDATATYPE_PGPKEYPACKET1`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PGPDATATYPE_PGPKEYPACKET1_E_ID`" unique="false"/> + </key> + <list-index column="`PGPDATATYPE_PGPKEYPACKET1_IDX`"/> + <element type="byte"/> + </array> + <list name="any1" table="`PGPDATATYPE_ANY1`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PGPDATATYPE_ANY1_E_ID`" unique="false"/> + </key> + <list-index column="`PGPDATATYPE_ANY1_IDX`"/> + <one-to-many entity-name="PGPDataType_any1"/> + </list> + </class> + <class entity-name="PGPDataType_any" lazy="false" table="`PGPDATATYPE_ANY`"> + <meta attribute="featureMap" inherit="false">PGPDataType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class entity-name="PGPDataType_any1" lazy="false" table="`PGPDATATYPE_ANY1`"> + <meta attribute="featureMap" inherit="false">PGPDataType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any1_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any1_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY1_TYPE`"/> + <column not-null="false" unique="false" name="`ANY1_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.ReferenceTypeImpl" entity-name="ReferenceType" abstract="false" lazy="false" table="`REFERENCETYPE`"> + <meta attribute="eclassName" inherit="false">ReferenceType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <many-to-one name="transforms" entity-name="TransformsType" lazy="false" cascade="all" foreign-key="REFERENCETYPE_TRANSFORMS" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`TRANSFORMSTYPE_TRANSFORMS_E_ID`"/> + </many-to-one> + <many-to-one name="digestMethod" entity-name="DigestMethodType" lazy="false" cascade="all" foreign-key="REFERENCETYPE_DIGESTMETHOD" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`DIGESTMETHODTYPE_DIGESTMETHOD_E_ID`"/> + </many-to-one> + <array name="digestValue" table="`REFERENCETYPE_DIGESTVALUE`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`REFERENCETYPE_DIGESTVALUE_E_ID`" unique="false"/> + </key> + <list-index column="`REFERENCETYPE_DIGESTVALUE_IDX`"/> + <element type="byte"/> + </array> + <property name="type" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`TYPE`"/> + </property> + <property name="uRI" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`URI`"/> + </property> + </class> + <class name="org.w3._2000._09.xmldsig.impl.RetrievalMethodTypeImpl" entity-name="RetrievalMethodType" abstract="false" lazy="false" table="`RETRIEVALMETHODTYPE`"> + <meta attribute="eclassName" inherit="false">RetrievalMethodType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <many-to-one name="transforms" entity-name="TransformsType" lazy="false" cascade="all" foreign-key="RETRIEVALMETHODTYPE_TRANSFORMS" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`TRANSFORMSTYPE_TRANSFORMS_E_ID`"/> + </many-to-one> + <property name="type" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`TYPE`"/> + </property> + <property name="uRI" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`URI`"/> + </property> + </class> + <class name="org.w3._2000._09.xmldsig.impl.RSAKeyValueTypeImpl" entity-name="RSAKeyValueType" abstract="false" lazy="false" table="`RSAKEYVALUETYPE`"> + <meta attribute="eclassName" inherit="false">RSAKeyValueType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <array name="modulus" table="`RSAKEYVALUETYPE_MODULUS`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`RSAKEYVALUETYPE_MODULUS_E_ID`" unique="false"/> + </key> + <list-index column="`RSAKEYVALUETYPE_MODULUS_IDX`"/> + <element type="byte"/> + </array> + <array name="exponent" table="`RSAKEYVALUETYPE_EXPONENT`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`RSAKEYVALUETYPE_EXPONENT_E_ID`" unique="false"/> + </key> + <list-index column="`RSAKEYVALUETYPE_EXPONENT_IDX`"/> + <element type="byte"/> + </array> + </class> + <class name="org.w3._2000._09.xmldsig.impl.SignatureMethodTypeImpl" entity-name="SignatureMethodType" abstract="false" lazy="false" table="`SIGNATUREMETHODTYPE`"> + <meta attribute="eclassName" inherit="false">SignatureMethodType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <list name="mixed" table="`SIGNATUREMETHODTYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`SIGNATUREMETHODTYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`SIGNATUREMETHODTYPE_MIXED_IDX`"/> + <one-to-many entity-name="SignatureMethodType_mixed"/> + </list> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ALGORITHM`"/> + </property> + </class> + <class entity-name="SignatureMethodType_mixed" lazy="false" table="`SIGNATUREMETHODTYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">SignatureMethodType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="hMACOutputLength" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`MIXED_HMACOUTPUTLENGTH`"/> + </property> + <list name="any" table="`MIXED_SIGNATUREMETHODTYPE_ANY`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_SIGNATUREMETHODTYPE_ANY_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_SIGNATUREMETHODTYPE_ANY_IDX`"/> + <one-to-many entity-name="SignatureMethodType_any"/> + </list> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ALGORITHM`"/> + </property> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="SignatureMethodType_any" lazy="false" table="`SIGNATUREMETHODTYPE_ANY`"> + <meta attribute="featureMap" inherit="false">SignatureMethodType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.SignaturePropertiesTypeImpl" entity-name="SignaturePropertiesType" abstract="false" lazy="false" table="`SIGNATUREPROPERTIESTYPE`"> + <meta attribute="eclassName" inherit="false">SignaturePropertiesType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="signatureProperty" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="SIGNATUREPROPERTIESTYPE_SIGNATUREPROPERTY"> + <column name="`SIGNATUREPROPERTIESTYPE_SIGNATUREPROPERTY_E_ID`" unique="false"/> + </key> + <list-index column="`SIGNATUREPROPERTIESTYPE_SIGNATUREPROPERTY_IDX`"/> + <one-to-many entity-name="SignaturePropertyType"/> + </list> + </class> + <class name="org.w3._2000._09.xmldsig.impl.SignaturePropertyTypeImpl" entity-name="SignaturePropertyType" abstract="false" lazy="false" table="`SIGNATUREPROPERTYTYPE`"> + <meta attribute="eclassName" inherit="false">SignaturePropertyType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="mixed" table="`SIGNATUREPROPERTYTYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`SIGNATUREPROPERTYTYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`SIGNATUREPROPERTYTYPE_MIXED_IDX`"/> + <one-to-many entity-name="SignaturePropertyType_mixed"/> + </list> + <property name="target" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`TARGET`"/> + </property> + </class> + <class entity-name="SignaturePropertyType_mixed" lazy="false" table="`SIGNATUREPROPERTYTYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">SignaturePropertyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="group" table="`MIXED_SIGNATUREPROPERTYTYPE_GROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_SIGNATUREPROPERTYTYPE_GROUP_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_SIGNATUREPROPERTYTYPE_GROUP_IDX`"/> + <one-to-many entity-name="SignaturePropertyType_group"/> + </list> + <many-to-one name="any" entity-name="SignaturePropertyType_any" cascade="all" not-null="false"/> + <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ID`"/> + </property> + <property name="target" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_TARGET`"/> + </property> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="SignaturePropertyType_group" lazy="false" table="`SIGNATUREPROPERTYTYPE_GROUP`"> + <meta attribute="featureMap" inherit="false">SignaturePropertyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="any" entity-name="SignaturePropertyType_any" cascade="all" not-null="false"/> + </class> + <class entity-name="SignaturePropertyType_any" lazy="false" table="`SIGNATUREPROPERTYTYPE_ANY`"> + <meta attribute="featureMap" inherit="false">SignaturePropertyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.SignatureTypeImpl" entity-name="SignatureType" abstract="false" lazy="false" table="`SIGNATURETYPE`"> + <meta attribute="eclassName" inherit="false">SignatureType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <many-to-one name="signedInfo" entity-name="SignedInfoType" lazy="false" cascade="all" foreign-key="SIGNATURETYPE_SIGNEDINFO" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`SIGNEDINFOTYPE_SIGNEDINFO_E_ID`"/> + </many-to-one> + <many-to-one name="signatureValue" entity-name="SignatureValueType" lazy="false" cascade="all" foreign-key="SIGNATURETYPE_SIGNATUREVALUE" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`SIGNATUREVALUETYPE_SIGNATUREVALUE_E_ID`"/> + </many-to-one> + <many-to-one name="keyInfo" entity-name="KeyInfoType" lazy="false" cascade="all" foreign-key="SIGNATURETYPE_KEYINFO" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`KEYINFOTYPE_KEYINFO_ID`"/> + </many-to-one> + <list name="object" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="SIGNATURETYPE_OBJECT"> + <column name="`SIGNATURETYPE_OBJECT_E_ID`" unique="false"/> + </key> + <list-index column="`SIGNATURETYPE_OBJECT_IDX`"/> + <one-to-many entity-name="ObjectType"/> + </list> + </class> + <class name="org.w3._2000._09.xmldsig.impl.SignatureValueTypeImpl" entity-name="SignatureValueType" abstract="false" lazy="false" table="`SIGNATUREVALUETYPE`"> + <meta attribute="eclassName" inherit="false">SignatureValueType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <array name="value" table="`SIGNATUREVALUETYPE_VALUE`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`SIGNATUREVALUETYPE_VALUE_E_ID`" unique="false"/> + </key> + <list-index column="`SIGNATUREVALUETYPE_VALUE_IDX`"/> + <element type="byte"/> + </array> + </class> + <class name="org.w3._2000._09.xmldsig.impl.SignedInfoTypeImpl" entity-name="SignedInfoType" abstract="false" lazy="false" table="`SIGNEDINFOTYPE`"> + <meta attribute="eclassName" inherit="false">SignedInfoType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <many-to-one name="canonicalizationMethod" entity-name="CanonicalizationMethodType" lazy="false" cascade="all" foreign-key="SIGNEDINFOTYPE_CANONICALIZATIONMETHOD" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`CANONICALIZATIONMETHODTYPE_CANONICALIZATIONMETHOD_E_ID`"/> + </many-to-one> + <many-to-one name="signatureMethod" entity-name="SignatureMethodType" lazy="false" cascade="all" foreign-key="SIGNEDINFOTYPE_SIGNATUREMETHOD" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`SIGNATUREMETHODTYPE_SIGNATUREMETHOD_E_ID`"/> + </many-to-one> + <list name="reference" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="SIGNEDINFOTYPE_REFERENCE"> + <column name="`SIGNEDINFOTYPE_REFERENCE_E_ID`" unique="false"/> + </key> + <list-index column="`SIGNEDINFOTYPE_REFERENCE_IDX`"/> + <one-to-many entity-name="ReferenceType"/> + </list> + </class> + <class name="org.w3._2000._09.xmldsig.impl.SPKIDataTypeImpl" entity-name="SPKIDataType" abstract="false" lazy="false" table="`SPKIDATATYPE`"> + <meta attribute="eclassName" inherit="false">SPKIDataType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <list name="group" table="`SPKIDATATYPE_GROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`SPKIDATATYPE_GROUP_E_ID`" unique="false"/> + </key> + <list-index column="`SPKIDATATYPE_GROUP_IDX`"/> + <one-to-many entity-name="SPKIDataType_group"/> + </list> + </class> + <class entity-name="SPKIDataType_group" lazy="false" table="`SPKIDATATYPE_GROUP`"> + <meta attribute="featureMap" inherit="false">SPKIDataType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="sPKISexp" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> + <column not-null="false" unique="false" name="`GROUP_SPKISEXP`"/> + </property> + <many-to-one name="any" entity-name="SPKIDataType_any" cascade="all" not-null="false"/> + </class> + <class entity-name="SPKIDataType_any" lazy="false" table="`SPKIDATATYPE_ANY`"> + <meta attribute="featureMap" inherit="false">SPKIDataType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.TransformsTypeImpl" entity-name="TransformsType" abstract="false" lazy="false" table="`TRANSFORMSTYPE`"> + <meta attribute="eclassName" inherit="false">TransformsType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <list name="transform" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="TRANSFORMSTYPE_TRANSFORM"> + <column name="`TRANSFORMSTYPE_TRANSFORM_E_ID`" unique="false"/> + </key> + <list-index column="`TRANSFORMSTYPE_TRANSFORM_IDX`"/> + <one-to-many entity-name="TransformType"/> + </list> + </class> + <class name="org.w3._2000._09.xmldsig.impl.TransformTypeImpl" entity-name="TransformType" abstract="false" lazy="false" table="`TRANSFORMTYPE`"> + <meta attribute="eclassName" inherit="false">TransformType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <list name="mixed" table="`TRANSFORMTYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`TRANSFORMTYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`TRANSFORMTYPE_MIXED_IDX`"/> + <one-to-many entity-name="TransformType_mixed"/> + </list> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ALGORITHM`"/> + </property> + </class> + <class entity-name="TransformType_mixed" lazy="false" table="`TRANSFORMTYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">TransformType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="group" table="`MIXED_TRANSFORMTYPE_GROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_TRANSFORMTYPE_GROUP_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_TRANSFORMTYPE_GROUP_IDX`"/> + <one-to-many entity-name="TransformType_group"/> + </list> + <many-to-one name="any" entity-name="TransformType_any" cascade="all" not-null="false"/> + <property name="xPath" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_XPATH`"/> + </property> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ALGORITHM`"/> + </property> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="TransformType_group" lazy="false" table="`TRANSFORMTYPE_GROUP`"> + <meta attribute="featureMap" inherit="false">TransformType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="any" entity-name="TransformType_any" cascade="all" not-null="false"/> + <property name="xPath" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`GROUP_XPATH`"/> + </property> + </class> + <class entity-name="TransformType_any" lazy="false" table="`TRANSFORMTYPE_ANY`"> + <meta attribute="featureMap" inherit="false">TransformType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.X509DataTypeImpl" entity-name="X509DataType" abstract="false" lazy="false" table="`X509DATATYPE`"> + <meta attribute="eclassName" inherit="false">X509DataType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <list name="group" table="`X509DATATYPE_GROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`X509DATATYPE_GROUP_E_ID`" unique="false"/> + </key> + <list-index column="`X509DATATYPE_GROUP_IDX`"/> + <one-to-many entity-name="X509DataType_group"/> + </list> + </class> + <class entity-name="X509DataType_group" lazy="false" table="`X509DATATYPE_GROUP`"> + <meta attribute="featureMap" inherit="false">X509DataType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="x509IssuerSerial" entity-name="X509IssuerSerialType" lazy="false" cascade="all" foreign-key="X509DATATYPE_X509ISSUERSERIAL" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`GROUP_X509ISSUERSERIALTYPE_X509ISSUERSERIAL_E_ID`"/> + </many-to-one> + <property name="x509SKI" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> + <column not-null="false" unique="false" name="`GROUP_X509SKI`"/> + </property> + <property name="x509SubjectName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`GROUP_X509SUBJECTNAME`"/> + </property> + <property name="x509Certificate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> + <column not-null="false" unique="false" name="`GROUP_X509CERTIFICATE`"/> + </property> + <property name="x509CRL" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> + <column not-null="false" unique="false" name="`GROUP_X509CRL`"/> + </property> + <many-to-one name="any" entity-name="X509DataType_any" cascade="all" not-null="false"/> + </class> + <class entity-name="X509DataType_any" lazy="false" table="`X509DATATYPE_ANY`"> + <meta attribute="featureMap" inherit="false">X509DataType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.X509IssuerSerialTypeImpl" entity-name="X509IssuerSerialType" abstract="false" lazy="false" table="`X509ISSUERSERIALTYPE`"> + <meta attribute="eclassName" inherit="false">X509IssuerSerialType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="x509IssuerName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`X509ISSUERNAME`"/> + </property> + <property name="x509SerialNumber" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger"> + <column not-null="true" unique="false" name="`X509SERIALNUMBER`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz280480Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz280480Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..d452b3336 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz280480Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,1099 @@ +<?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.w3._2000._09.xmldsig.impl.CanonicalizationMethodTypeImpl" entity-name="CanonicalizationMethodType" abstract="false" lazy="false" discriminator-value="CanonicalizationMethodType" table="`CANONICALIZATIONMETHODTYPE`"> + <meta attribute="eclassName" inherit="false">CanonicalizationMethodType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="CANONICALIZATIONMETHODTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="mixed" table="`CANONICALIZATIONMETHODTYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`CANONICALIZATIONMETHODTYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`CANONICALIZATIONMETHODTYPE_MIXED_IDX`"/> + <one-to-many entity-name="CanonicalizationMethodType_mixed"/> + </list> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ALGORITHM`"/> + </property> + </class> + <class entity-name="CanonicalizationMethodType_mixed" lazy="false" table="`CANONICALIZATIONMETHODTYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">CanonicalizationMethodType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="any" table="`MIXED_CANONICALIZATIONMETHODTYPE_ANY`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_CANONICALIZATIONMETHODTYPE_ANY_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_CANONICALIZATIONMETHODTYPE_ANY_IDX`"/> + <one-to-many entity-name="CanonicalizationMethodType_any"/> + </list> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ALGORITHM`"/> + </property> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="CanonicalizationMethodType_any" lazy="false" table="`CANONICALIZATIONMETHODTYPE_ANY`"> + <meta attribute="featureMap" inherit="false">CanonicalizationMethodType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.DigestMethodTypeImpl" entity-name="DigestMethodType" abstract="false" lazy="false" discriminator-value="DigestMethodType" table="`DIGESTMETHODTYPE`"> + <meta attribute="eclassName" inherit="false">DigestMethodType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="DIGESTMETHODTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="mixed" table="`DIGESTMETHODTYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DIGESTMETHODTYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`DIGESTMETHODTYPE_MIXED_IDX`"/> + <one-to-many entity-name="DigestMethodType_mixed"/> + </list> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ALGORITHM`"/> + </property> + </class> + <class entity-name="DigestMethodType_mixed" lazy="false" table="`DIGESTMETHODTYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">DigestMethodType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="any" table="`MIXED_DIGESTMETHODTYPE_ANY`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_DIGESTMETHODTYPE_ANY_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_DIGESTMETHODTYPE_ANY_IDX`"/> + <one-to-many entity-name="DigestMethodType_any"/> + </list> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ALGORITHM`"/> + </property> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="DigestMethodType_any" lazy="false" table="`DIGESTMETHODTYPE_ANY`"> + <meta attribute="featureMap" inherit="false">DigestMethodType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.DSAKeyValueTypeImpl" entity-name="DSAKeyValueType" abstract="false" lazy="false" discriminator-value="DSAKeyValueType" table="`DSAKEYVALUETYPE`"> + <meta attribute="eclassName" inherit="false">DSAKeyValueType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="DSAKEYVALUETYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <array name="p" table="`DSAKEYVALUETYPE_P`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DSAKEYVALUETYPE_P_E_ID`" unique="false"/> + </key> + <list-index column="`DSAKEYVALUETYPE_P_IDX`"/> + <element type="byte"/> + </array> + <array name="q" table="`DSAKEYVALUETYPE_Q`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DSAKEYVALUETYPE_Q_E_ID`" unique="false"/> + </key> + <list-index column="`DSAKEYVALUETYPE_Q_IDX`"/> + <element type="byte"/> + </array> + <array name="g" table="`DSAKEYVALUETYPE_G`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DSAKEYVALUETYPE_G_E_ID`" unique="false"/> + </key> + <list-index column="`DSAKEYVALUETYPE_G_IDX`"/> + <element type="byte"/> + </array> + <array name="y" table="`DSAKEYVALUETYPE_Y`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DSAKEYVALUETYPE_Y_E_ID`" unique="false"/> + </key> + <list-index column="`DSAKEYVALUETYPE_Y_IDX`"/> + <element type="byte"/> + </array> + <array name="j" table="`DSAKEYVALUETYPE_J`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DSAKEYVALUETYPE_J_E_ID`" unique="false"/> + </key> + <list-index column="`DSAKEYVALUETYPE_J_IDX`"/> + <element type="byte"/> + </array> + <array name="seed" table="`DSAKEYVALUETYPE_SEED`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DSAKEYVALUETYPE_SEED_E_ID`" unique="false"/> + </key> + <list-index column="`DSAKEYVALUETYPE_SEED_IDX`"/> + <element type="byte"/> + </array> + <array name="pgenCounter" table="`DSAKEYVALUETYPE_PGENCOUNTER`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DSAKEYVALUETYPE_PGENCOUNTER_E_ID`" unique="false"/> + </key> + <list-index column="`DSAKEYVALUETYPE_PGENCOUNTER_IDX`"/> + <element type="byte"/> + </array> + </class> + <class name="org.w3._2000._09.xmldsig.impl.KeyInfoTypeImpl" entity-name="KeyInfoType" abstract="false" lazy="false" discriminator-value="KeyInfoType" table="`KEYINFOTYPE`"> + <meta attribute="eclassName" inherit="false">KeyInfoType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="KEYINFOTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="mixed" table="`KEYINFOTYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`KEYINFOTYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`KEYINFOTYPE_MIXED_IDX`"/> + <one-to-many entity-name="KeyInfoType_mixed"/> + </list> + </class> + <class entity-name="KeyInfoType_mixed" lazy="false" table="`KEYINFOTYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">KeyInfoType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="group" table="`MIXED_KEYINFOTYPE_GROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_KEYINFOTYPE_GROUP_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_KEYINFOTYPE_GROUP_IDX`"/> + <one-to-many entity-name="KeyInfoType_group"/> + </list> + <property name="keyName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_KEYNAME`"/> + </property> + <many-to-one name="keyValue" entity-name="KeyValueType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_KEYVALUE" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MIXED_KEYVALUETYPE_KEYVALUE_E_ID`"/> + </many-to-one> + <many-to-one name="retrievalMethod" entity-name="RetrievalMethodType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_RETRIEVALMETHOD" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MIXED_RETRIEVALMETHODTYPE_RETRIEVALMETHOD_E_ID`"/> + </many-to-one> + <many-to-one name="x509Data" entity-name="X509DataType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_X509DATA" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MIXED_X509DATATYPE_X509DATA_E_ID`"/> + </many-to-one> + <many-to-one name="pGPData" entity-name="PGPDataType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_PGPDATA" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MIXED_PGPDATATYPE_PGPDATA_E_ID`"/> + </many-to-one> + <many-to-one name="sPKIData" entity-name="SPKIDataType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_SPKIDATA" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MIXED_SPKIDATATYPE_SPKIDATA_E_ID`"/> + </many-to-one> + <property name="mgmtData" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_MGMTDATA`"/> + </property> + <many-to-one name="any" entity-name="KeyInfoType_any" cascade="all" not-null="false"/> + <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ID`"/> + </property> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="KeyInfoType_group" lazy="false" table="`KEYINFOTYPE_GROUP`"> + <meta attribute="featureMap" inherit="false">KeyInfoType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="keyName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`GROUP_KEYNAME`"/> + </property> + <many-to-one name="keyValue" entity-name="KeyValueType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_KEYVALUE" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`GROUP_KEYVALUETYPE_KEYVALUE_E_ID`"/> + </many-to-one> + <many-to-one name="retrievalMethod" entity-name="RetrievalMethodType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_RETRIEVALMETHOD" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`GROUP_RETRIEVALMETHODTYPE_RETRIEVALMETHOD_E_ID`"/> + </many-to-one> + <many-to-one name="x509Data" entity-name="X509DataType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_X509DATA" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`GROUP_X509DATATYPE_X509DATA_E_ID`"/> + </many-to-one> + <many-to-one name="pGPData" entity-name="PGPDataType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_PGPDATA" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`GROUP_PGPDATATYPE_PGPDATA_E_ID`"/> + </many-to-one> + <many-to-one name="sPKIData" entity-name="SPKIDataType" lazy="false" cascade="all" foreign-key="KEYINFOTYPE_SPKIDATA" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`GROUP_SPKIDATATYPE_SPKIDATA_E_ID`"/> + </many-to-one> + <property name="mgmtData" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`GROUP_MGMTDATA`"/> + </property> + <many-to-one name="any" entity-name="KeyInfoType_any" cascade="all" not-null="false"/> + </class> + <class entity-name="KeyInfoType_any" lazy="false" table="`KEYINFOTYPE_ANY`"> + <meta attribute="featureMap" inherit="false">KeyInfoType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.KeyValueTypeImpl" entity-name="KeyValueType" abstract="false" lazy="false" discriminator-value="KeyValueType" table="`KEYVALUETYPE`"> + <meta attribute="eclassName" inherit="false">KeyValueType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="KEYVALUETYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="mixed" table="`KEYVALUETYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`KEYVALUETYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`KEYVALUETYPE_MIXED_IDX`"/> + <one-to-many entity-name="KeyValueType_mixed"/> + </list> + </class> + <class entity-name="KeyValueType_mixed" lazy="false" table="`KEYVALUETYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">KeyValueType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="dSAKeyValue" entity-name="DSAKeyValueType" lazy="false" cascade="all" foreign-key="KEYVALUETYPE_DSAKEYVALUE" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MIXED_DSAKEYVALUETYPE_DSAKEYVALUE_E_ID`"/> + </many-to-one> + <many-to-one name="rSAKeyValue" entity-name="RSAKeyValueType" lazy="false" cascade="all" foreign-key="KEYVALUETYPE_RSAKEYVALUE" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MIXED_RSAKEYVALUETYPE_RSAKEYVALUE_E_ID`"/> + </many-to-one> + <list name="any" table="`MIXED_KEYVALUETYPE_ANY`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_KEYVALUETYPE_ANY_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_KEYVALUETYPE_ANY_IDX`"/> + <one-to-many entity-name="KeyValueType_any"/> + </list> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="KeyValueType_any" lazy="false" table="`KEYVALUETYPE_ANY`"> + <meta attribute="featureMap" inherit="false">KeyValueType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.ManifestTypeImpl" entity-name="ManifestType" abstract="false" lazy="false" discriminator-value="ManifestType" table="`MANIFESTTYPE`"> + <meta attribute="eclassName" inherit="false">ManifestType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="MANIFESTTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="reference" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="MANIFESTTYPE_REFERENCE"> + <column name="`MANIFESTTYPE_REFERENCE_E_ID`" unique="false"/> + </key> + <list-index column="`MANIFESTTYPE_REFERENCE_IDX`"/> + <one-to-many entity-name="ReferenceType"/> + </list> + </class> + <class name="org.w3._2000._09.xmldsig.impl.ObjectTypeImpl" entity-name="ObjectType" abstract="false" lazy="false" discriminator-value="ObjectType" table="`OBJECTTYPE`"> + <meta attribute="eclassName" inherit="false">ObjectType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="OBJECTTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="mixed" table="`OBJECTTYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`OBJECTTYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`OBJECTTYPE_MIXED_IDX`"/> + <one-to-many entity-name="ObjectType_mixed"/> + </list> + <property name="encoding" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`ENCODING`"/> + </property> + <property name="mimeType" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIMETYPE`"/> + </property> + </class> + <class entity-name="ObjectType_mixed" lazy="false" table="`OBJECTTYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">ObjectType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="group" table="`MIXED_OBJECTTYPE_GROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_OBJECTTYPE_GROUP_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_OBJECTTYPE_GROUP_IDX`"/> + <one-to-many entity-name="ObjectType_group"/> + </list> + <many-to-one name="any" entity-name="ObjectType_any" cascade="all" not-null="false"/> + <property name="encoding" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ENCODING`"/> + </property> + <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ID`"/> + </property> + <property name="mimeType" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_MIMETYPE`"/> + </property> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="ObjectType_group" lazy="false" table="`OBJECTTYPE_GROUP`"> + <meta attribute="featureMap" inherit="false">ObjectType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="any" entity-name="ObjectType_any" cascade="all" not-null="false"/> + </class> + <class entity-name="ObjectType_any" lazy="false" table="`OBJECTTYPE_ANY`"> + <meta attribute="featureMap" inherit="false">ObjectType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.PGPDataTypeImpl" entity-name="PGPDataType" abstract="false" lazy="false" discriminator-value="PGPDataType" table="`PGPDATATYPE`"> + <meta attribute="eclassName" inherit="false">PGPDataType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="PGPDATATYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <array name="pGPKeyID" table="`PGPDATATYPE_PGPKEYID`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PGPDATATYPE_PGPKEYID_E_ID`" unique="false"/> + </key> + <list-index column="`PGPDATATYPE_PGPKEYID_IDX`"/> + <element type="byte"/> + </array> + <array name="pGPKeyPacket" table="`PGPDATATYPE_PGPKEYPACKET`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PGPDATATYPE_PGPKEYPACKET_E_ID`" unique="false"/> + </key> + <list-index column="`PGPDATATYPE_PGPKEYPACKET_IDX`"/> + <element type="byte"/> + </array> + <list name="any" table="`PGPDATATYPE_ANY`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PGPDATATYPE_ANY_E_ID`" unique="false"/> + </key> + <list-index column="`PGPDATATYPE_ANY_IDX`"/> + <one-to-many entity-name="PGPDataType_any"/> + </list> + <array name="pGPKeyPacket1" table="`PGPDATATYPE_PGPKEYPACKET1`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PGPDATATYPE_PGPKEYPACKET1_E_ID`" unique="false"/> + </key> + <list-index column="`PGPDATATYPE_PGPKEYPACKET1_IDX`"/> + <element type="byte"/> + </array> + <list name="any1" table="`PGPDATATYPE_ANY1`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PGPDATATYPE_ANY1_E_ID`" unique="false"/> + </key> + <list-index column="`PGPDATATYPE_ANY1_IDX`"/> + <one-to-many entity-name="PGPDataType_any1"/> + </list> + </class> + <class entity-name="PGPDataType_any" lazy="false" table="`PGPDATATYPE_ANY`"> + <meta attribute="featureMap" inherit="false">PGPDataType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class entity-name="PGPDataType_any1" lazy="false" table="`PGPDATATYPE_ANY1`"> + <meta attribute="featureMap" inherit="false">PGPDataType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any1_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any1_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY1_TYPE`"/> + <column not-null="false" unique="false" name="`ANY1_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.ReferenceTypeImpl" entity-name="ReferenceType" abstract="false" lazy="false" discriminator-value="ReferenceType" table="`REFERENCETYPE`"> + <meta attribute="eclassName" inherit="false">ReferenceType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="REFERENCETYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <many-to-one name="transforms" entity-name="TransformsType" lazy="false" cascade="all" foreign-key="REFERENCETYPE_TRANSFORMS" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`TRANSFORMSTYPE_TRANSFORMS_E_ID`"/> + </many-to-one> + <many-to-one name="digestMethod" entity-name="DigestMethodType" lazy="false" cascade="all" foreign-key="REFERENCETYPE_DIGESTMETHOD" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`DIGESTMETHODTYPE_DIGESTMETHOD_E_ID`"/> + </many-to-one> + <array name="digestValue" table="`REFERENCETYPE_DIGESTVALUE`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`REFERENCETYPE_DIGESTVALUE_E_ID`" unique="false"/> + </key> + <list-index column="`REFERENCETYPE_DIGESTVALUE_IDX`"/> + <element type="byte"/> + </array> + <property name="type" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`TYPE`"/> + </property> + <property name="uRI" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`URI`"/> + </property> + </class> + <class name="org.w3._2000._09.xmldsig.impl.RetrievalMethodTypeImpl" entity-name="RetrievalMethodType" abstract="false" lazy="false" discriminator-value="RetrievalMethodType" table="`RETRIEVALMETHODTYPE`"> + <meta attribute="eclassName" inherit="false">RetrievalMethodType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="RETRIEVALMETHODTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <many-to-one name="transforms" entity-name="TransformsType" lazy="false" cascade="all" foreign-key="RETRIEVALMETHODTYPE_TRANSFORMS" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`TRANSFORMSTYPE_TRANSFORMS_E_ID`"/> + </many-to-one> + <property name="type" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`TYPE`"/> + </property> + <property name="uRI" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`URI`"/> + </property> + </class> + <class name="org.w3._2000._09.xmldsig.impl.RSAKeyValueTypeImpl" entity-name="RSAKeyValueType" abstract="false" lazy="false" discriminator-value="RSAKeyValueType" table="`RSAKEYVALUETYPE`"> + <meta attribute="eclassName" inherit="false">RSAKeyValueType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="RSAKEYVALUETYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <array name="modulus" table="`RSAKEYVALUETYPE_MODULUS`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`RSAKEYVALUETYPE_MODULUS_E_ID`" unique="false"/> + </key> + <list-index column="`RSAKEYVALUETYPE_MODULUS_IDX`"/> + <element type="byte"/> + </array> + <array name="exponent" table="`RSAKEYVALUETYPE_EXPONENT`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`RSAKEYVALUETYPE_EXPONENT_E_ID`" unique="false"/> + </key> + <list-index column="`RSAKEYVALUETYPE_EXPONENT_IDX`"/> + <element type="byte"/> + </array> + </class> + <class name="org.w3._2000._09.xmldsig.impl.SignatureMethodTypeImpl" entity-name="SignatureMethodType" abstract="false" lazy="false" discriminator-value="SignatureMethodType" table="`SIGNATUREMETHODTYPE`"> + <meta attribute="eclassName" inherit="false">SignatureMethodType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="SIGNATUREMETHODTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="mixed" table="`SIGNATUREMETHODTYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`SIGNATUREMETHODTYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`SIGNATUREMETHODTYPE_MIXED_IDX`"/> + <one-to-many entity-name="SignatureMethodType_mixed"/> + </list> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ALGORITHM`"/> + </property> + </class> + <class entity-name="SignatureMethodType_mixed" lazy="false" table="`SIGNATUREMETHODTYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">SignatureMethodType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="hMACOutputLength" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`MIXED_HMACOUTPUTLENGTH`"/> + </property> + <list name="any" table="`MIXED_SIGNATUREMETHODTYPE_ANY`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_SIGNATUREMETHODTYPE_ANY_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_SIGNATUREMETHODTYPE_ANY_IDX`"/> + <one-to-many entity-name="SignatureMethodType_any"/> + </list> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ALGORITHM`"/> + </property> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="SignatureMethodType_any" lazy="false" table="`SIGNATUREMETHODTYPE_ANY`"> + <meta attribute="featureMap" inherit="false">SignatureMethodType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.SignaturePropertiesTypeImpl" entity-name="SignaturePropertiesType" abstract="false" lazy="false" discriminator-value="SignaturePropertiesType" table="`SIGNATUREPROPERTIESTYPE`"> + <meta attribute="eclassName" inherit="false">SignaturePropertiesType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="SIGNATUREPROPERTIESTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="signatureProperty" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="SIGNATUREPROPERTIESTYPE_SIGNATUREPROPERTY"> + <column name="`SIGNATUREPROPERTIESTYPE_SIGNATUREPROPERTY_E_ID`" unique="false"/> + </key> + <list-index column="`SIGNATUREPROPERTIESTYPE_SIGNATUREPROPERTY_IDX`"/> + <one-to-many entity-name="SignaturePropertyType"/> + </list> + </class> + <class name="org.w3._2000._09.xmldsig.impl.SignaturePropertyTypeImpl" entity-name="SignaturePropertyType" abstract="false" lazy="false" discriminator-value="SignaturePropertyType" table="`SIGNATUREPROPERTYTYPE`"> + <meta attribute="eclassName" inherit="false">SignaturePropertyType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="SIGNATUREPROPERTYTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="mixed" table="`SIGNATUREPROPERTYTYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`SIGNATUREPROPERTYTYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`SIGNATUREPROPERTYTYPE_MIXED_IDX`"/> + <one-to-many entity-name="SignaturePropertyType_mixed"/> + </list> + <property name="target" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`TARGET`"/> + </property> + </class> + <class entity-name="SignaturePropertyType_mixed" lazy="false" table="`SIGNATUREPROPERTYTYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">SignaturePropertyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="group" table="`MIXED_SIGNATUREPROPERTYTYPE_GROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_SIGNATUREPROPERTYTYPE_GROUP_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_SIGNATUREPROPERTYTYPE_GROUP_IDX`"/> + <one-to-many entity-name="SignaturePropertyType_group"/> + </list> + <many-to-one name="any" entity-name="SignaturePropertyType_any" cascade="all" not-null="false"/> + <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ID`"/> + </property> + <property name="target" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_TARGET`"/> + </property> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="SignaturePropertyType_group" lazy="false" table="`SIGNATUREPROPERTYTYPE_GROUP`"> + <meta attribute="featureMap" inherit="false">SignaturePropertyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="any" entity-name="SignaturePropertyType_any" cascade="all" not-null="false"/> + </class> + <class entity-name="SignaturePropertyType_any" lazy="false" table="`SIGNATUREPROPERTYTYPE_ANY`"> + <meta attribute="featureMap" inherit="false">SignaturePropertyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.SignatureTypeImpl" entity-name="SignatureType" abstract="false" lazy="false" discriminator-value="SignatureType" table="`SIGNATURETYPE`"> + <meta attribute="eclassName" inherit="false">SignatureType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="SIGNATURETYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <many-to-one name="signedInfo" entity-name="SignedInfoType" lazy="false" cascade="all" foreign-key="SIGNATURETYPE_SIGNEDINFO" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`SIGNEDINFOTYPE_SIGNEDINFO_E_ID`"/> + </many-to-one> + <many-to-one name="signatureValue" entity-name="SignatureValueType" lazy="false" cascade="all" foreign-key="SIGNATURETYPE_SIGNATUREVALUE" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`SIGNATUREVALUETYPE_SIGNATUREVALUE_E_ID`"/> + </many-to-one> + <many-to-one name="keyInfo" entity-name="KeyInfoType" lazy="false" cascade="all" foreign-key="SIGNATURETYPE_KEYINFO" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`KEYINFOTYPE_KEYINFO_ID`"/> + </many-to-one> + <list name="object" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="SIGNATURETYPE_OBJECT"> + <column name="`SIGNATURETYPE_OBJECT_E_ID`" unique="false"/> + </key> + <list-index column="`SIGNATURETYPE_OBJECT_IDX`"/> + <one-to-many entity-name="ObjectType"/> + </list> + </class> + <class name="org.w3._2000._09.xmldsig.impl.SignatureValueTypeImpl" entity-name="SignatureValueType" abstract="false" lazy="false" discriminator-value="SignatureValueType" table="`SIGNATUREVALUETYPE`"> + <meta attribute="eclassName" inherit="false">SignatureValueType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="SIGNATUREVALUETYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <array name="value" table="`SIGNATUREVALUETYPE_VALUE`" cascade="all,delete-orphan"> + <key update="true"> + <column name="`SIGNATUREVALUETYPE_VALUE_E_ID`" unique="false"/> + </key> + <list-index column="`SIGNATUREVALUETYPE_VALUE_IDX`"/> + <element type="byte"/> + </array> + </class> + <class name="org.w3._2000._09.xmldsig.impl.SignedInfoTypeImpl" entity-name="SignedInfoType" abstract="false" lazy="false" discriminator-value="SignedInfoType" table="`SIGNEDINFOTYPE`"> + <meta attribute="eclassName" inherit="false">SignedInfoType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="SIGNEDINFOTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <many-to-one name="canonicalizationMethod" entity-name="CanonicalizationMethodType" lazy="false" cascade="all" foreign-key="SIGNEDINFOTYPE_CANONICALIZATIONMETHOD" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`CANONICALIZATIONMETHODTYPE_CANONICALIZATIONMETHOD_E_ID`"/> + </many-to-one> + <many-to-one name="signatureMethod" entity-name="SignatureMethodType" lazy="false" cascade="all" foreign-key="SIGNEDINFOTYPE_SIGNATUREMETHOD" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`SIGNATUREMETHODTYPE_SIGNATUREMETHOD_E_ID`"/> + </many-to-one> + <list name="reference" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="SIGNEDINFOTYPE_REFERENCE"> + <column name="`SIGNEDINFOTYPE_REFERENCE_E_ID`" unique="false"/> + </key> + <list-index column="`SIGNEDINFOTYPE_REFERENCE_IDX`"/> + <one-to-many entity-name="ReferenceType"/> + </list> + </class> + <class name="org.w3._2000._09.xmldsig.impl.SPKIDataTypeImpl" entity-name="SPKIDataType" abstract="false" lazy="false" discriminator-value="SPKIDataType" table="`SPKIDATATYPE`"> + <meta attribute="eclassName" inherit="false">SPKIDataType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="SPKIDATATYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="group" table="`SPKIDATATYPE_GROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`SPKIDATATYPE_GROUP_E_ID`" unique="false"/> + </key> + <list-index column="`SPKIDATATYPE_GROUP_IDX`"/> + <one-to-many entity-name="SPKIDataType_group"/> + </list> + </class> + <class entity-name="SPKIDataType_group" lazy="false" table="`SPKIDATATYPE_GROUP`"> + <meta attribute="featureMap" inherit="false">SPKIDataType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="sPKISexp" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> + <column not-null="false" unique="false" name="`GROUP_SPKISEXP`"/> + </property> + <many-to-one name="any" entity-name="SPKIDataType_any" cascade="all" not-null="false"/> + </class> + <class entity-name="SPKIDataType_any" lazy="false" table="`SPKIDATATYPE_ANY`"> + <meta attribute="featureMap" inherit="false">SPKIDataType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.TransformsTypeImpl" entity-name="TransformsType" abstract="false" lazy="false" discriminator-value="TransformsType" table="`TRANSFORMSTYPE`"> + <meta attribute="eclassName" inherit="false">TransformsType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="TRANSFORMSTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="transform" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="TRANSFORMSTYPE_TRANSFORM"> + <column name="`TRANSFORMSTYPE_TRANSFORM_E_ID`" unique="false"/> + </key> + <list-index column="`TRANSFORMSTYPE_TRANSFORM_IDX`"/> + <one-to-many entity-name="TransformType"/> + </list> + </class> + <class name="org.w3._2000._09.xmldsig.impl.TransformTypeImpl" entity-name="TransformType" abstract="false" lazy="false" discriminator-value="TransformType" table="`TRANSFORMTYPE`"> + <meta attribute="eclassName" inherit="false">TransformType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="TRANSFORMTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="mixed" table="`TRANSFORMTYPE_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`TRANSFORMTYPE_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`TRANSFORMTYPE_MIXED_IDX`"/> + <one-to-many entity-name="TransformType_mixed"/> + </list> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ALGORITHM`"/> + </property> + </class> + <class entity-name="TransformType_mixed" lazy="false" table="`TRANSFORMTYPE_MIXED`"> + <meta attribute="featureMap" inherit="false">TransformType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="group" table="`MIXED_TRANSFORMTYPE_GROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_TRANSFORMTYPE_GROUP_E_ID`" unique="false"/> + </key> + <list-index column="`MIXED_TRANSFORMTYPE_GROUP_IDX`"/> + <one-to-many entity-name="TransformType_group"/> + </list> + <many-to-one name="any" entity-name="TransformType_any" cascade="all" not-null="false"/> + <property name="xPath" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_XPATH`"/> + </property> + <property name="algorithm" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`MIXED_ALGORITHM`"/> + </property> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="TransformType_group" lazy="false" table="`TRANSFORMTYPE_GROUP`"> + <meta attribute="featureMap" inherit="false">TransformType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="any" entity-name="TransformType_any" cascade="all" not-null="false"/> + <property name="xPath" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`GROUP_XPATH`"/> + </property> + </class> + <class entity-name="TransformType_any" lazy="false" table="`TRANSFORMTYPE_ANY`"> + <meta attribute="featureMap" inherit="false">TransformType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.X509DataTypeImpl" entity-name="X509DataType" abstract="false" lazy="false" discriminator-value="X509DataType" table="`X509DATATYPE`"> + <meta attribute="eclassName" inherit="false">X509DataType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="X509DATATYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="group" table="`X509DATATYPE_GROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`X509DATATYPE_GROUP_E_ID`" unique="false"/> + </key> + <list-index column="`X509DATATYPE_GROUP_IDX`"/> + <one-to-many entity-name="X509DataType_group"/> + </list> + </class> + <class entity-name="X509DataType_group" lazy="false" table="`X509DATATYPE_GROUP`"> + <meta attribute="featureMap" inherit="false">X509DataType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="x509IssuerSerial" entity-name="X509IssuerSerialType" lazy="false" cascade="all" foreign-key="X509DATATYPE_X509ISSUERSERIAL" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`GROUP_X509ISSUERSERIALTYPE_X509ISSUERSERIAL_E_ID`"/> + </many-to-one> + <property name="x509SKI" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> + <column not-null="false" unique="false" name="`GROUP_X509SKI`"/> + </property> + <property name="x509SubjectName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`GROUP_X509SUBJECTNAME`"/> + </property> + <property name="x509Certificate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> + <column not-null="false" unique="false" name="`GROUP_X509CERTIFICATE`"/> + </property> + <property name="x509CRL" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> + <column not-null="false" unique="false" name="`GROUP_X509CRL`"/> + </property> + <many-to-one name="any" entity-name="X509DataType_any" cascade="all" not-null="false"/> + </class> + <class entity-name="X509DataType_any" lazy="false" table="`X509DATATYPE_ANY`"> + <meta attribute="featureMap" inherit="false">X509DataType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="any_fme_any_data" type="java.lang.String"/> + <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> + <column not-null="false" unique="false" name="`ANY_TYPE`"/> + <column not-null="false" unique="false" name="`ANY_ID`"/> + </any> + </class> + <class name="org.w3._2000._09.xmldsig.impl.X509IssuerSerialTypeImpl" entity-name="X509IssuerSerialType" abstract="false" lazy="false" discriminator-value="X509IssuerSerialType" table="`X509ISSUERSERIALTYPE`"> + <meta attribute="eclassName" inherit="false">X509IssuerSerialType</meta> + <meta attribute="epackage" inherit="false">http://www.w3.org/2000/09/xmldsig#</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="X509ISSUERSERIALTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="x509IssuerName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`X509ISSUERNAME`"/> + </property> + <property name="x509SerialNumber" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger"> + <column not-null="true" unique="false" name="`X509SERIALNUMBER`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz281730Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz281730Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..02f9b0828 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz281730Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,86 @@ +<?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/issues/supinterfaces</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.issues.library.Book" entity-name="Book" abstract="false" lazy="false" table="`BOOK`"> + <meta attribute="eclassName" inherit="false">Book</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/supinterfaces</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">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.issues.library.BookCategory</param> + <param name="eclassifier">BookCategory</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/supinterfaces</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR" 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.issues.library.Library" entity-name="Library" abstract="false" lazy="false" table="`LIBRARY`"> + <meta attribute="eclassName" inherit="false">Library</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/supinterfaces</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">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`" 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`" unique="false"/> + </key> + <list-index column="`LIBRARY_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.library.Writer" entity-name="Writer" abstract="false" lazy="false" table="`WRITER`"> + <meta attribute="eclassName" inherit="false">Writer</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/supinterfaces</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">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="persist,merge,refresh,save-update,lock"> + <key update="true"> + <column name="`BOOK_AUTHOR_E_ID`" 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/org.eclipse.emf.teneo.hibernate.test.issues/Bz281730Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz281730Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..0e8b76834 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz281730Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,95 @@ +<?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/issues/supinterfaces</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.issues.library.Book" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`BOOK`"> + <meta attribute="eclassName" inherit="false">Book</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/supinterfaces</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="BOOKDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">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.issues.library.BookCategory</param> + <param name="eclassifier">BookCategory</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/supinterfaces</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR" 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.issues.library.Library" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`LIBRARY`"> + <meta attribute="eclassName" inherit="false">Library</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/supinterfaces</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="LIBRARYDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">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`" 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`" unique="false"/> + </key> + <list-index column="`LIBRARY_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.library.Writer" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`WRITER`"> + <meta attribute="eclassName" inherit="false">Writer</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/supinterfaces</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="WRITERDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">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="persist,merge,refresh,save-update,lock"> + <key update="true"> + <column name="`BOOK_AUTHOR_E_ID`" 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/org.eclipse.emf.teneo.hibernate.test.issues/Bz282414Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz282414Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..7b451d308 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz282414Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,46 @@ +<?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.issues.bz282414.impl.BarImpl" entity-name="Bar" abstract="false" lazy="false" table="`BAR_TABLE`"> + <meta attribute="eclassName" inherit="false">Bar</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz282414</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <component name="barKey" class="org.eclipse.emf.teneo.samples.issues.bz282414.impl.BarKeyImpl"> + <meta attribute="eclassName" inherit="false">BarKey</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz282414</meta> + <property name="classId" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`CLAS_ID`"/> + </property> + <property name="groupId" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`GRP_ID`"/> + </property> + </component> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz282414.impl.FooImpl" entity-name="Foo" abstract="false" lazy="false" table="`FOO_TABLE`"> + <meta attribute="eclassName" inherit="false">Foo</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz282414</meta> + <id name="dnmSK" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`DNM_SK`"/> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <bag name="bagOfBars" lazy="true" cascade="all,delete-orphan"> + <key update="true" property-ref="clientId" foreign-key="FOO_BAGOFBARS"> + <column name="`GRP_ID`" unique="false"/> + </key> + <one-to-many entity-name="Bar"/> + </bag> + <property name="clientId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`CLI_ID`" length="8"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz282414Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz282414Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..1c262643d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz282414Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,52 @@ +<?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.issues.bz282414.impl.BarImpl" entity-name="Bar" abstract="false" lazy="false" discriminator-value="Bar" table="`BAR_TABLE`"> + <meta attribute="eclassName" inherit="false">Bar</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz282414</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="BAR_TABLEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <component name="barKey" class="org.eclipse.emf.teneo.samples.issues.bz282414.impl.BarKeyImpl"> + <meta attribute="eclassName" inherit="false">BarKey</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz282414</meta> + <property name="classId" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`CLAS_ID`"/> + </property> + <property name="groupId" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`GRP_ID`"/> + </property> + </component> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz282414.impl.FooImpl" entity-name="Foo" abstract="false" lazy="false" discriminator-value="Foo" table="`FOO_TABLE`"> + <meta attribute="eclassName" inherit="false">Foo</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz282414</meta> + <id name="dnmSK" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`DNM_SK`"/> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="FOO_TABLEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <bag name="bagOfBars" lazy="true" cascade="all,delete-orphan"> + <key update="true" property-ref="clientId" foreign-key="FOO_BAGOFBARS"> + <column name="`GRP_ID`" unique="false"/> + </key> + <one-to-many entity-name="Bar"/> + </bag> + <property name="clientId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`CLI_ID`" length="8"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz284859Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz284859Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz284859Action_hsqldb_e_o_hibernate.hbm.xml diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz284859Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz284859Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz284859Action_hsqldb_h_o_hibernate.hbm.xml diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz288963Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz288963Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..6af78dd27 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz288963Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,78 @@ +<?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="bz288963.BooktypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz288963</param> + <param name="edatatype">BooktypeObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.issues.bz288963.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`BOOK`"> + <meta attribute="eclassName" inherit="false">Book</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz288963</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <many-to-one name="citation" entity-name="Book" lazy="false" cascade="all" foreign-key="BOOK_CITATION" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`BOOK_CITATION_E_ID`"/> + </many-to-one> + <list name="paralist" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="BOOK_PARALIST"> + <column name="`BOOK_PARALIST_E_ID`" unique="false"/> + </key> + <list-index column="`BOOK_PARALIST_IDX`"/> + <one-to-many entity-name="Paragraph"/> + </list> + <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`ID`"/> + </property> + <property name="selfdef" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`SELFDEF`"/> + </property> + <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`TYPE`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz288963.Booktype</param> + <param name="eclassifier">Booktype</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz288963</param> + </type> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz288963.impl.ParagraphImpl" entity-name="Paragraph" abstract="false" lazy="false" table="`PARAGRAPH`"> + <meta attribute="eclassName" inherit="false">Paragraph</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz288963</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="number" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`NUMBER`"/> + </property> + <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`TITLE`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.bz288963.impl.FootnoteImpl" entity-name="Footnote" abstract="false" lazy="false" extends="Paragraph" table="`FOOTNOTE`"> + <meta attribute="eclassName" inherit="false">Footnote</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz288963</meta> + <key> + <column name="`PARAGRAPH_E_ID`"/> + </key> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.bz288963.impl.IndentedparaImpl" entity-name="Indentedpara" abstract="false" lazy="false" extends="Paragraph" table="`INDENTEDPARA`"> + <meta attribute="eclassName" inherit="false">Indentedpara</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz288963</meta> + <key> + <column name="`PARAGRAPH_E_ID`"/> + </key> + <property name="indentSpace" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`INDENTSPACE`"/> + </property> + </joined-subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz288963Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz288963Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..ab5b19434 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz288963Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,78 @@ +<?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="bz288963.BooktypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz288963</param> + <param name="edatatype">BooktypeObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.issues.bz288963.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`BOOK`"> + <meta attribute="eclassName" inherit="false">Book</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz288963</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="BOOKDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <many-to-one name="citation" entity-name="Book" lazy="false" cascade="all" foreign-key="BOOK_CITATION" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`BOOK_CITATION_E_ID`"/> + </many-to-one> + <list name="paralist" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="BOOK_PARALIST"> + <column name="`BOOK_PARALIST_E_ID`" unique="false"/> + </key> + <list-index column="`BOOK_PARALIST_IDX`"/> + <one-to-many entity-name="Paragraph"/> + </list> + <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`ID`"/> + </property> + <property name="selfdef" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`SELFDEF`"/> + </property> + <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`TYPE`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz288963.Booktype</param> + <param name="eclassifier">Booktype</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz288963</param> + </type> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz288963.impl.ParagraphImpl" entity-name="Paragraph" abstract="false" lazy="false" discriminator-value="Paragraph" table="`PARAGRAPH`"> + <meta attribute="eclassName" inherit="false">Paragraph</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz288963</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="PARAGRAPHDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="number" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`NUMBER`"/> + </property> + <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`TITLE`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.issues.bz288963.impl.FootnoteImpl" entity-name="Footnote" abstract="false" lazy="false" extends="Paragraph" discriminator-value="Footnote"> + <meta attribute="eclassName" inherit="false">Footnote</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz288963</meta> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.issues.bz288963.impl.IndentedparaImpl" entity-name="Indentedpara" abstract="false" lazy="false" extends="Paragraph" discriminator-value="Indentedpara"> + <meta attribute="eclassName" inherit="false">Indentedpara</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz288963</meta> + <property name="indentSpace" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`INDENTSPACE`"/> + </property> + </subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz292074Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz292074Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..5b886015f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz292074Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,114 @@ +<?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.issues.bz242995.impl.BookImpl" entity-name="Book" abstract="false" lazy="true" table="`BOOK`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Book"> + <meta attribute="eclassName" inherit="false">Book</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" 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.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz242995.BookCategory</param> + <param name="eclassifier">BookCategory</param> + <param name="epackage">http:///org/eclipse/example/library.ecore</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR" 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.issues.bz242995.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="true" table="`LIBRARY`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Library"> + <meta attribute="eclassName" inherit="false">Library</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="writers" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="LIBRARY_WRITERS"> + <column name="`LIBRARY_WRITERS_E_ID`" 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`" unique="false"/> + </key> + <list-index column="`LIBRARY_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="true" table="`WRITER`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Writer"> + <meta attribute="eclassName" inherit="false">Writer</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="books" lazy="true" cascade="persist,merge,refresh,save-update,lock"> + <key update="true"> + <column name="`BOOK_AUTHOR_E_ID`" unique="false"/> + </key> + <list-index column="`WRITER_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.OneTimeWonderImpl" entity-name="OneTimeWonder" abstract="false" lazy="true" table="`ONETIMEWONDER`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.OneTimeWonder"> + <meta attribute="eclassName" inherit="false">OneTimeWonder</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="foreign"> + <param name="property">theAuthor</param> + </generator> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theAuthor" entity-name="Author" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" constrained="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.AuthorImpl" entity-name="Author" abstract="false" lazy="true" table="`AUTHOR`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Author"> + <meta attribute="eclassName" inherit="false">Author</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theBook" entity-name="OneTimeWonder" cascade="merge,persist,save-update,lock,refresh" lazy="proxy"/> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz292074Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz292074Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..de131434f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz292074Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,129 @@ +<?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.issues.bz242995.impl.BookImpl" entity-name="Book" abstract="false" lazy="true" discriminator-value="Book" table="`BOOK`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Book"> + <meta attribute="eclassName" inherit="false">Book</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="BOOKDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" 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.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.bz242995.BookCategory</param> + <param name="eclassifier">BookCategory</param> + <param name="epackage">http:///org/eclipse/example/library.ecore</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR" 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.issues.bz242995.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="true" discriminator-value="Library" table="`LIBRARY`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Library"> + <meta attribute="eclassName" inherit="false">Library</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="LIBRARYDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="writers" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="LIBRARY_WRITERS"> + <column name="`LIBRARY_WRITERS_E_ID`" 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`" unique="false"/> + </key> + <list-index column="`LIBRARY_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="true" discriminator-value="Writer" table="`WRITER`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Writer"> + <meta attribute="eclassName" inherit="false">Writer</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="WRITERDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="books" lazy="true" cascade="persist,merge,refresh,save-update,lock"> + <key update="true"> + <column name="`BOOK_AUTHOR_E_ID`" unique="false"/> + </key> + <list-index column="`WRITER_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.OneTimeWonderImpl" entity-name="OneTimeWonder" abstract="false" lazy="true" discriminator-value="OneTimeWonder" table="`ONETIMEWONDER`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.OneTimeWonder"> + <meta attribute="eclassName" inherit="false">OneTimeWonder</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="foreign"> + <param name="property">theAuthor</param> + </generator> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="ONETIMEWONDERDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theAuthor" entity-name="Author" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" constrained="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz242995.impl.AuthorImpl" entity-name="Author" abstract="false" lazy="true" discriminator-value="Author" table="`AUTHOR`" proxy="org.eclipse.emf.teneo.samples.issues.bz242995.Author"> + <meta attribute="eclassName" inherit="false">Author</meta> + <meta attribute="epackage" inherit="false">http:///org/eclipse/example/library.ecore</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="AUTHORDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="Name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <one-to-one name="theBook" entity-name="OneTimeWonder" cascade="merge,persist,save-update,lock,refresh" lazy="proxy"/> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz293848Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz293848Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..28da590fd --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz293848Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,83 @@ +<?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 entity-name="ComType" abstract="false" lazy="true" table="`COMTYPE`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl"> + <meta attribute="eclassName" inherit="false">ComType</meta> + <meta attribute="epackage" inherit="false">http://www.tech.com/tech/test/UploadNewXSDTest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <list name="employees" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="COMTYPE_EMPLOYEES"> + <column name="`COMTYPE_EMPLOYEES_E_ID`" unique="false"/> + </key> + <list-index column="`COMTYPE_EMPLOYEES_IDX`"/> + <one-to-many entity-name="PersonType"/> + </list> + <many-to-one name="location" entity-name="LocationType" lazy="proxy" cascade="all" foreign-key="COMTYPE_LOCATION" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`LOCATIONTYPE_LOCATION_E_ID`"/> + </many-to-one> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + </class> + <class entity-name="Department" abstract="false" lazy="true" table="`DEPARTMENT`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl"> + <meta attribute="eclassName" inherit="false">Department</meta> + <meta attribute="epackage" inherit="false">http://www.tech.com/tech/test/UploadNewXSDTest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="booktype" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`BOOKTYPE`"/> + </property> + <property name="bookname" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`BOOKNAME`"/> + </property> + </class> + <class entity-name="LocationType" abstract="false" lazy="true" table="`LOCATIONTYPE`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl"> + <meta attribute="eclassName" inherit="false">LocationType</meta> + <meta attribute="epackage" inherit="false">http://www.tech.com/tech/test/UploadNewXSDTest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <many-to-one name="zip" entity-name="Department" lazy="proxy" cascade="all" foreign-key="LOCATIONTYPE_ZIP" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`DEPARTMENT_ZIP_E_ID`"/> + </many-to-one> + <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`ADDRESS`"/> + </property> + </class> + <class entity-name="PersonType" abstract="false" lazy="true" table="`PERSONTYPE`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl"> + <meta attribute="eclassName" inherit="false">PersonType</meta> + <meta attribute="epackage" inherit="false">http://www.tech.com/tech/test/UploadNewXSDTest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="lastName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`LASTNAME`"/> + </property> + <property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`AGE`"/> + </property> + <property name="firstName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`FIRSTNAME`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz293848Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz293848Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..5be4055a1 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz293848Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,95 @@ +<?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 entity-name="ComType" abstract="false" lazy="true" discriminator-value="ComType" table="`COMTYPE`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl"> + <meta attribute="eclassName" inherit="false">ComType</meta> + <meta attribute="epackage" inherit="false">http://www.tech.com/tech/test/UploadNewXSDTest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="COMTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="employees" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="COMTYPE_EMPLOYEES"> + <column name="`COMTYPE_EMPLOYEES_E_ID`" unique="false"/> + </key> + <list-index column="`COMTYPE_EMPLOYEES_IDX`"/> + <one-to-many entity-name="PersonType"/> + </list> + <many-to-one name="location" entity-name="LocationType" lazy="proxy" cascade="all" foreign-key="COMTYPE_LOCATION" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`LOCATIONTYPE_LOCATION_E_ID`"/> + </many-to-one> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + </class> + <class entity-name="Department" abstract="false" lazy="true" discriminator-value="Department" table="`DEPARTMENT`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl"> + <meta attribute="eclassName" inherit="false">Department</meta> + <meta attribute="epackage" inherit="false">http://www.tech.com/tech/test/UploadNewXSDTest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="DEPARTMENTDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="booktype" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`BOOKTYPE`"/> + </property> + <property name="bookname" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`BOOKNAME`"/> + </property> + </class> + <class entity-name="LocationType" abstract="false" lazy="true" discriminator-value="LocationType" table="`LOCATIONTYPE`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl"> + <meta attribute="eclassName" inherit="false">LocationType</meta> + <meta attribute="epackage" inherit="false">http://www.tech.com/tech/test/UploadNewXSDTest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="LOCATIONTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <many-to-one name="zip" entity-name="Department" lazy="proxy" cascade="all" foreign-key="LOCATIONTYPE_ZIP" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`DEPARTMENT_ZIP_E_ID`"/> + </many-to-one> + <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`ADDRESS`"/> + </property> + </class> + <class entity-name="PersonType" abstract="false" lazy="true" discriminator-value="PersonType" table="`PERSONTYPE`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl"> + <meta attribute="eclassName" inherit="false">PersonType</meta> + <meta attribute="epackage" inherit="false">http://www.tech.com/tech/test/UploadNewXSDTest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="PERSONTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="lastName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`LASTNAME`"/> + </property> + <property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`AGE`"/> + </property> + <property name="firstName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`FIRSTNAME`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz294201Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz294201Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..fda1ddca4 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz294201Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,74 @@ +<?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 entity-name="documentrootexp.DocumentRoot" abstract="false" lazy="false" table="`DOCUMENTROOTEXP_DOCUMENTROOT`"> + <meta attribute="eclassName" inherit="false">DocumentRoot</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/documentrootexp</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <list name="mixed" table="`DOCUMENTROOTEXP_DOCUMENTROOT_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DOCUMENTROOT_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`DOCUMENTROOT_MIXED_IDX`"/> + <one-to-many entity-name="DocumentRoot_mixed"/> + </list> + </class> + <class entity-name="DocumentRoot_mixed" lazy="false" table="`DOCUMENTROOT_MIXED`"> + <meta attribute="featureMap" inherit="false">documentrootexp.DocumentRoot</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <map name="xMLNSPrefixMap" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_DOCUMENTROOT_XMLNSPREFIXMAP_E_ID`" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <element type="java.lang.String"/> + </map> + <map name="xSISchemaLocation" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_DOCUMENTROOT_XSISCHEMALOCATION_E_ID`" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <element type="java.lang.String"/> + </map> + <any id-type="long" meta-type="string" name="aNYTHING" cascade="all"> + <column not-null="false" unique="false" name="`MIXED_ANYTHING_TYPE`"/> + <column not-null="false" unique="false" name="`MIXED_ANYTHING_ID`"/> + </any> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="PersonType" abstract="false" lazy="false" table="`PERSONTYPE`"> + <meta attribute="eclassName" inherit="false">PersonType</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/documentrootexp</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="lastName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`LASTNAME`"/> + </property> + <property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`AGE`"/> + </property> + <property name="firstName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`FIRSTNAME`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz294201Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz294201Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..fad8b0278 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz294201Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,80 @@ +<?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 entity-name="documentrootexp.DocumentRoot" abstract="false" lazy="false" discriminator-value="documentrootexp.DocumentRoot" table="`DOCUMENTROOTEXP_DOCUMENTROOT`"> + <meta attribute="eclassName" inherit="false">DocumentRoot</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/documentrootexp</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="DOCUMENTROOTEXP_DOCUMENTROOTDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="mixed" table="`DOCUMENTROOTEXP_DOCUMENTROOT_MIXED`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`DOCUMENTROOT_MIXED_E_ID`" unique="false"/> + </key> + <list-index column="`DOCUMENTROOT_MIXED_IDX`"/> + <one-to-many entity-name="DocumentRoot_mixed"/> + </list> + </class> + <class entity-name="DocumentRoot_mixed" lazy="false" table="`DOCUMENTROOT_MIXED`"> + <meta attribute="featureMap" inherit="false">documentrootexp.DocumentRoot</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <map name="xMLNSPrefixMap" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_DOCUMENTROOT_XMLNSPREFIXMAP_E_ID`" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <element type="java.lang.String"/> + </map> + <map name="xSISchemaLocation" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MIXED_DOCUMENTROOT_XSISCHEMALOCATION_E_ID`" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <element type="java.lang.String"/> + </map> + <any id-type="long" meta-type="string" name="aNYTHING" cascade="all"> + <column not-null="false" unique="false" name="`MIXED_ANYTHING_TYPE`"/> + <column not-null="false" unique="false" name="`MIXED_ANYTHING_ID`"/> + </any> + <property name="fme_mixed_text" type="java.lang.String"/> + <property name="fme_mixed_cdata" type="java.lang.String"/> + <property name="fme_mixed_comment" type="java.lang.String"/> + </class> + <class entity-name="PersonType" abstract="false" lazy="false" discriminator-value="PersonType" table="`PERSONTYPE`"> + <meta attribute="eclassName" inherit="false">PersonType</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/documentrootexp</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="PERSONTYPEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="lastName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`LASTNAME`"/> + </property> + <property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`AGE`"/> + </property> + <property name="firstName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`FIRSTNAME`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321765Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321765Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..1540f4d17 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321765Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,31 @@ +<?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.issues.bz321765.impl.EmployeeImpl" entity-name="Employee" abstract="false" lazy="false" table="`EMPLOYEE`"> + <meta attribute="eclassName" inherit="false">Employee</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz321765</meta> + <composite-id name="employeePK" class="org.eclipse.emf.teneo.samples.issues.bz321765.impl.EmployeePKImpl" access="org.eclipse.emf.teneo.hibernate.mapping.property.EReferencePropertyHandler"> + <meta attribute="eclassName" inherit="false">EmployeePK</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz321765</meta> + <key-property name="id" type="java.math.BigInteger"> + <column not-null="true" unique="false" name="`ID`"/> + </key-property> + <key-property name="firstName" type="java.lang.String"> + <column not-null="true" unique="false" name="`FIRSTNAME`"/> + </key-property> + <key-property name="lastName" type="java.lang.String"> + <column not-null="true" unique="false" name="`LASTNAME`"/> + </key-property> + </composite-id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">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="salary" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger"> + <column not-null="true" unique="false" name="`SALARY`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321765Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321765Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..cda28f298 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321765Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,34 @@ +<?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.issues.bz321765.impl.EmployeeImpl" entity-name="Employee" abstract="false" lazy="false" discriminator-value="Employee" table="`EMPLOYEE`"> + <meta attribute="eclassName" inherit="false">Employee</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz321765</meta> + <composite-id name="employeePK" class="org.eclipse.emf.teneo.samples.issues.bz321765.impl.EmployeePKImpl" access="org.eclipse.emf.teneo.hibernate.mapping.property.EReferencePropertyHandler"> + <meta attribute="eclassName" inherit="false">EmployeePK</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz321765</meta> + <key-property name="id" type="java.math.BigInteger"> + <column not-null="true" unique="false" name="`ID`"/> + </key-property> + <key-property name="firstName" type="java.lang.String"> + <column not-null="true" unique="false" name="`FIRSTNAME`"/> + </key-property> + <key-property name="lastName" type="java.lang.String"> + <column not-null="true" unique="false" name="`LASTNAME`"/> + </key-property> + </composite-id> + <discriminator type="string"> + <column name="`DTYPE`" index="EMPLOYEEDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">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="salary" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger"> + <column not-null="true" unique="false" name="`SALARY`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321768Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321768Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..25ec681da --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321768Action_hsqldb_e_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 entity-name="Person" abstract="false" lazy="false" table="`PERSON`"> + <meta attribute="eclassName" inherit="false">Person</meta> + <meta attribute="epackage" inherit="false">http:///www.elver.org/org.eclipse.emf.teneo.hibernate.test.issues.Bz321768Action</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <component name="name" class="org.eclipse.emf.ecore.impl.DynamicEObjectImpl"> + <meta attribute="eclassName" inherit="false">Name</meta> + <meta attribute="epackage">http:///www.elver.org/org.eclipse.emf.teneo.hibernate.test.issues.Bz321768Action</meta> + <property name="firstName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME_FIRSTNAME`"/> + </property> + <property name="lastName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME_LASTNAME`"/> + </property> + </component> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321768Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321768Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..9919e16b8 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321768Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,29 @@ +<?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 entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`PERSON`"> + <meta attribute="eclassName" inherit="false">Person</meta> + <meta attribute="epackage" inherit="false">http:///www.elver.org/org.eclipse.emf.teneo.hibernate.test.issues.Bz321768Action</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="PERSONDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <component name="name" class="org.eclipse.emf.ecore.impl.DynamicEObjectImpl"> + <meta attribute="eclassName" inherit="false">Name</meta> + <meta attribute="epackage">http:///www.elver.org/org.eclipse.emf.teneo.hibernate.test.issues.Bz321768Action</meta> + <property name="firstName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME_FIRSTNAME`"/> + </property> + <property name="lastName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME_LASTNAME`"/> + </property> + </component> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321770Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321770Action_hsqldb_e_o_hibernate.hbm.xml index 88a48194a..d75c9dea0 100755..100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321770Action_hsqldb_e_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321770Action_hsqldb_e_o_hibernate.hbm.xml @@ -2,21 +2,21 @@ <!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.issues.bz321770.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" table="`child`"> + <class name="org.eclipse.emf.teneo.samples.issues.bz321770.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" table="`CHILD`"> <meta attribute="eclassName" inherit="false">Child</meta> <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz321770</meta> <id name="id" type="long" unsaved-value="0"> - <column not-null="true" unique="false" name="`id`"/> + <column not-null="true" unique="false" name="`ID`"/> <generator class="native"/> </id> <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion" inherit="false">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`"/> </property> </class> - <class name="org.eclipse.emf.teneo.samples.issues.bz321770.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" table="`parent`"> + <class name="org.eclipse.emf.teneo.samples.issues.bz321770.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" table="`PARENT`"> <meta attribute="eclassName" inherit="false">Parent</meta> <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz321770</meta> <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> @@ -26,9 +26,9 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion" inherit="false">true</meta> </version> - <bag name="child" order-by="`id` asc" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="parent_child"> - <column name="`parent_child_e_id`" not-null="false" unique="false"/> + <bag name="child" order-by="`ID` asc" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="PARENT_CHILD"> + <column name="`PARENT_CHILD_E_ID`" unique="false"/> </key> <one-to-many entity-name="Child"/> </bag> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321770Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321770Action_hsqldb_h_o_hibernate.hbm.xml index 149886370..8cd8a5cc3 100755..100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321770Action_hsqldb_h_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321770Action_hsqldb_h_o_hibernate.hbm.xml @@ -2,24 +2,24 @@ <!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.issues.bz321770.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" discriminator-value="Child" table="`child`"> + <class name="org.eclipse.emf.teneo.samples.issues.bz321770.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" discriminator-value="Child" table="`CHILD`"> <meta attribute="eclassName" inherit="false">Child</meta> <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz321770</meta> <id name="id" type="long" unsaved-value="0"> - <column not-null="true" unique="false" name="`id`"/> + <column not-null="true" unique="false" name="`ID`"/> <generator class="native"/> </id> <discriminator type="string"> - <column name="dtype" index="childdtype" length="255" not-null="true"/> + <column name="`DTYPE`" index="CHILDDTYPE" length="255" not-null="true"/> </discriminator> <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion" inherit="false">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`"/> </property> </class> - <class name="org.eclipse.emf.teneo.samples.issues.bz321770.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" discriminator-value="Parent" table="`parent`"> + <class name="org.eclipse.emf.teneo.samples.issues.bz321770.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" discriminator-value="Parent" table="`PARENT`"> <meta attribute="eclassName" inherit="false">Parent</meta> <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz321770</meta> <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> @@ -27,14 +27,14 @@ <generator class="native"/> </id> <discriminator type="string"> - <column name="dtype" index="parentdtype" length="255" not-null="true"/> + <column name="`DTYPE`" index="PARENTDTYPE" length="255" not-null="true"/> </discriminator> <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion" inherit="false">true</meta> </version> - <bag name="child" order-by="`id` asc" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="parent_child"> - <column name="`parent_child_e_id`" not-null="false" unique="false"/> + <bag name="child" order-by="`ID` asc" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="PARENT_CHILD"> + <column name="`PARENT_CHILD_E_ID`" unique="false"/> </key> <one-to-many entity-name="Child"/> </bag> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321773Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321773Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..3e71ffe1b --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321773Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,38 @@ +<?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.issues.bz321773.impl.Item1Impl" entity-name="Item1" abstract="false" lazy="false" table="`ITEM1`"> + <meta attribute="eclassName" inherit="false">Item1</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz321773</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="sequence"> + <param name="sequence">firstSeq</param> + </generator> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="data" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`DATA`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz321773.impl.Item2Impl" entity-name="Item2" abstract="false" lazy="false" table="`ITEM2`"> + <meta attribute="eclassName" inherit="false">Item2</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz321773</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="seqhilo"> + <param name="sequence">secondSeq</param> + <param name="max_lo">24</param> + </generator> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="data" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`DATA`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321773Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321773Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..bd8c59684 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz321773Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,44 @@ +<?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.issues.bz321773.impl.Item1Impl" entity-name="Item1" abstract="false" lazy="false" discriminator-value="Item1" table="`ITEM1`"> + <meta attribute="eclassName" inherit="false">Item1</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz321773</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="sequence"> + <param name="sequence">firstSeq</param> + </generator> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="ITEM1DTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="data" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`DATA`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz321773.impl.Item2Impl" entity-name="Item2" abstract="false" lazy="false" discriminator-value="Item2" table="`ITEM2`"> + <meta attribute="eclassName" inherit="false">Item2</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz321773</meta> + <id name="id" type="long" unsaved-value="0"> + <column not-null="true" unique="false" name="`ID`"/> + <generator class="seqhilo"> + <param name="sequence">secondSeq</param> + <param name="max_lo">24</param> + </generator> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="ITEM2DTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="data" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`DATA`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz331953Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz331953Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..1f2bf267e --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz331953Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,85 @@ +<?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" inherit="false">Book</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id name="title" type="java.lang.String"> + <column not-null="true" unique="false" name="`TITLE`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <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> + <param name="eclassifier">BookCategory</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`BOOK_AUTHOR_E_ID`"/> + </many-to-one> + <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`TEST`"/> + </property> + </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" inherit="false">Library</meta> + <meta attribute="epackage" inherit="false">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" inherit="false">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" inherit="false">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`" unique="false"/> + </key> + <list-index column="`TEST_INDEX`"/> + <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`" 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" inherit="false">Writer</meta> + <meta attribute="epackage" inherit="false">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" inherit="false">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" inherit="false">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="persist,merge,refresh,save-update,lock"> + <key update="true"> + <column name="`BOOK_AUTHOR_E_ID`" 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/org.eclipse.emf.teneo.hibernate.test.issues/Bz331953Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz331953Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..30e3ba6d0 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz331953Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,94 @@ +<?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" inherit="false">Book</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id name="title" type="java.lang.String"> + <column not-null="true" unique="false" name="`TITLE`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="BOOKDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <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> + <param name="eclassifier">BookCategory</param> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`BOOK_AUTHOR_E_ID`"/> + </many-to-one> + <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`TEST`"/> + </property> + </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" inherit="false">Library</meta> + <meta attribute="epackage" inherit="false">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" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="LIBRARYDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">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`" unique="false"/> + </key> + <list-index column="`TEST_INDEX`"/> + <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`" 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" inherit="false">Writer</meta> + <meta attribute="epackage" inherit="false">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" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="WRITERDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">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="persist,merge,refresh,save-update,lock"> + <key update="true"> + <column name="`BOOK_AUTHOR_E_ID`" 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/org.eclipse.emf.teneo.hibernate.test.issues/Bz336501Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz336501Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..b8a539eee --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz336501Action_hsqldb_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.issues.bz336501.impl.TestImpl" entity-name="Test" abstract="false" lazy="false" table="`TEST`"> + <meta attribute="eclassName" inherit="false">Test</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz336501</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" inherit="false">true</meta> + </version> + <property name="dateOrTime" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" unique="false" name="`DATEORTIME`"/> + </property> + <list name="dateOrTimes" table="`TEST_DATEORTIMES`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`TEST_DATEORTIMES_NAME`" unique="false"/> + </key> + <list-index column="`TEST_DATEORTIMES_IDX`"/> + <element type="timestamp"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz336501Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz336501Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..f74f365a7 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz336501Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,28 @@ +<?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.issues.bz336501.impl.TestImpl" entity-name="Test" abstract="false" lazy="false" discriminator-value="Test" table="`TEST`"> + <meta attribute="eclassName" inherit="false">Test</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz336501</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`NAME`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="TESTDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="dateOrTime" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" unique="false" name="`DATEORTIME`"/> + </property> + <list name="dateOrTimes" table="`TEST_DATEORTIMES`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`TEST_DATEORTIMES_NAME`" unique="false"/> + </key> + <list-index column="`TEST_DATEORTIMES_IDX`"/> + <element type="timestamp"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz337580Action_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz337580Action_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..29393817b --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz337580Action_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,19 @@ +<?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.issues.bz337580.impl.TestImpl" entity-name="Test" abstract="false" lazy="false" table="`AVERYLONGNAMEFORTEST`"> + <meta attribute="eclassName" inherit="false">Test</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz337580</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="nameWhichShouldBeTrunctated" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`NMWHCHSHLD`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz337580Action_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz337580Action_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..aa604d205 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/Bz337580Action_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,22 @@ +<?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.issues.bz337580.impl.TestImpl" entity-name="Test" abstract="false" lazy="false" discriminator-value="Test" table="`AVERYLONGNAMEFORTEST`"> + <meta attribute="eclassName" inherit="false">Test</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz337580</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="AVERYLONGNAMEFORTESTDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="nameWhichShouldBeTrunctated" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`NMWHCHSHLD`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/NoCollectionOwnerAction_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/NoCollectionOwnerAction_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..aa506e096 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/NoCollectionOwnerAction_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,175 @@ +<?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.issues.nocollectionowner.impl.ProductImpl" entity-name="Product" abstract="false" lazy="false" table="`PRODUCT`"> + <meta attribute="eclassName" inherit="false">Product</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/nocollectionowner</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <property name="number" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Integer"> + <column not-null="false" unique="false" name="`NUMBER`"/> + </property> + <property name="description" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`DESCRIPTION`"/> + </property> + <many-to-one name="productCategory" entity-name="ProductCategory" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="PRODUCT_PRODUCTCATEGORY" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`PRODUCT_PRODUCTCATEGORY_E_ID`"/> + </many-to-one> + <many-to-one name="priceCategory" entity-name="PriceCategory" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="PRODUCT_PRICECATEGORY" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`PRICECATEGORY_PRICECATEGORY_E_ID`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.nocollectionowner.impl.CustomerImpl" entity-name="Customer" abstract="false" lazy="false" table="`CUSTOMER`"> + <meta attribute="eclassName" inherit="false">Customer</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/nocollectionowner</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="surname" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`SURNAME`"/> + </property> + <property name="familyName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`FAMILYNAME`"/> + </property> + <property name="telephoneNr" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`TELEPHONENR`"/> + </property> + <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`ADDRESS`"/> + </property> + <property name="hotel" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`HOTEL`"/> + </property> + <list name="comments" table="`CUSTOMER_COMMENTS`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`CUSTOMER_COMMENTS_E_ID`" unique="false"/> + </key> + <list-index column="`CUSTOMER_COMMENTS_IDX`"/> + <element type="java.lang.String"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.nocollectionowner.impl.ProductCategoryImpl" entity-name="ProductCategory" abstract="false" lazy="false" table="`PRODUCTCATEGORY`"> + <meta attribute="eclassName" inherit="false">ProductCategory</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/nocollectionowner</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="products" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PRODUCT_PRODUCTCATEGORY_E_ID`" unique="false"/> + </key> + <list-index column="`PRODUCTCATEGORY_PRODUCTS_IDX`"/> + <one-to-many entity-name="Product"/> + </list> + <list name="subCategorys" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PRODUCTCATEGORY_PARENT_E_ID`" unique="false"/> + </key> + <list-index column="`PRODUCTCATEGORY_SUBCATEGORYS_IDX`"/> + <one-to-many entity-name="ProductCategory"/> + </list> + <many-to-one name="parent" entity-name="ProductCategory" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="PRODUCTCATEGORY_PARENT" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`PRODUCTCATEGORY_PARENT_E_ID`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.nocollectionowner.impl.PriceCategoryImpl" entity-name="PriceCategory" abstract="false" lazy="false" table="`PRICECATEGORY`"> + <meta attribute="eclassName" inherit="false">PriceCategory</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/nocollectionowner</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" inherit="false">true</meta> + </version> + <list name="prices" table="`PRICECATEGORY_PRICES`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PRICECATEGORY_PRICES_NAME`" unique="false"/> + </key> + <list-index column="`PRICECATEGORY_PRICES_IDX`"/> + <element type="double"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.nocollectionowner.impl.OrderImpl" entity-name="Order" abstract="false" lazy="false" table="`ORDER`"> + <meta attribute="eclassName" inherit="false">Order</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/nocollectionowner</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="number" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NUMBER`"/> + </property> + <list name="transactions" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`TRANSACTION_ORDER_E_ID`" unique="false"/> + </key> + <list-index column="`ORDER_TRANSACTIONS_IDX`"/> + <one-to-many entity-name="Transaction"/> + </list> + <many-to-one name="customer" entity-name="Customer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="ORDER_CUSTOMER" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`CUSTOMER_CUSTOMER_E_ID`"/> + </many-to-one> + <list name="comments" table="`ORDER_COMMENTS`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`ORDER_COMMENTS_E_ID`" unique="false"/> + </key> + <list-index column="`ORDER_COMMENTS_IDX`"/> + <element type="java.lang.String"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.nocollectionowner.impl.TransactionImpl" entity-name="Transaction" abstract="false" lazy="false" table="`TRANSACTION`"> + <meta attribute="eclassName" inherit="false">Transaction</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/nocollectionowner</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">true</meta> + </version> + <property name="number" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NUMBER`"/> + </property> + <many-to-one name="order" entity-name="Order" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="TRANSACTION_ORDER" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`TRANSACTION_ORDER_E_ID`"/> + </many-to-one> + <many-to-one name="product" entity-name="Product" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="TRANSACTION_PRODUCT" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`PRODUCT_PRODUCT_E_ID`"/> + </many-to-one> + <property name="startDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`STARTDATE`"/> + </property> + <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`ENDDATE`"/> + </property> + <property name="price" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`PRICE`"/> + </property> + <property name="paidDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`PAIDDATE`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/NoCollectionOwnerAction_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/NoCollectionOwnerAction_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..0c7fe4c71 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/NoCollectionOwnerAction_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,193 @@ +<?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.issues.nocollectionowner.impl.ProductImpl" entity-name="Product" abstract="false" lazy="false" discriminator-value="Product" table="`PRODUCT`"> + <meta attribute="eclassName" inherit="false">Product</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/nocollectionowner</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="PRODUCTDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <property name="number" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Integer"> + <column not-null="false" unique="false" name="`NUMBER`"/> + </property> + <property name="description" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`DESCRIPTION`"/> + </property> + <many-to-one name="productCategory" entity-name="ProductCategory" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="PRODUCT_PRODUCTCATEGORY" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`PRODUCT_PRODUCTCATEGORY_E_ID`"/> + </many-to-one> + <many-to-one name="priceCategory" entity-name="PriceCategory" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="PRODUCT_PRICECATEGORY" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`PRICECATEGORY_PRICECATEGORY_E_ID`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.nocollectionowner.impl.CustomerImpl" entity-name="Customer" abstract="false" lazy="false" discriminator-value="Customer" table="`CUSTOMER`"> + <meta attribute="eclassName" inherit="false">Customer</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/nocollectionowner</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="CUSTOMERDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="surname" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`SURNAME`"/> + </property> + <property name="familyName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`FAMILYNAME`"/> + </property> + <property name="telephoneNr" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`TELEPHONENR`"/> + </property> + <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`ADDRESS`"/> + </property> + <property name="hotel" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`HOTEL`"/> + </property> + <list name="comments" table="`CUSTOMER_COMMENTS`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`CUSTOMER_COMMENTS_E_ID`" unique="false"/> + </key> + <list-index column="`CUSTOMER_COMMENTS_IDX`"/> + <element type="java.lang.String"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.nocollectionowner.impl.ProductCategoryImpl" entity-name="ProductCategory" abstract="false" lazy="false" discriminator-value="ProductCategory" table="`PRODUCTCATEGORY`"> + <meta attribute="eclassName" inherit="false">ProductCategory</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/nocollectionowner</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="PRODUCTCATEGORYDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NAME`"/> + </property> + <list name="products" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PRODUCT_PRODUCTCATEGORY_E_ID`" unique="false"/> + </key> + <list-index column="`PRODUCTCATEGORY_PRODUCTS_IDX`"/> + <one-to-many entity-name="Product"/> + </list> + <list name="subCategorys" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PRODUCTCATEGORY_PARENT_E_ID`" unique="false"/> + </key> + <list-index column="`PRODUCTCATEGORY_SUBCATEGORYS_IDX`"/> + <one-to-many entity-name="ProductCategory"/> + </list> + <many-to-one name="parent" entity-name="ProductCategory" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="PRODUCTCATEGORY_PARENT" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`PRODUCTCATEGORY_PARENT_E_ID`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.nocollectionowner.impl.PriceCategoryImpl" entity-name="PriceCategory" abstract="false" lazy="false" discriminator-value="PriceCategory" table="`PRICECATEGORY`"> + <meta attribute="eclassName" inherit="false">PriceCategory</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/nocollectionowner</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`NAME`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="PRICECATEGORYDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <list name="prices" table="`PRICECATEGORY_PRICES`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`PRICECATEGORY_PRICES_NAME`" unique="false"/> + </key> + <list-index column="`PRICECATEGORY_PRICES_IDX`"/> + <element type="double"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.nocollectionowner.impl.OrderImpl" entity-name="Order" abstract="false" lazy="false" discriminator-value="Order" table="`ORDER`"> + <meta attribute="eclassName" inherit="false">Order</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/nocollectionowner</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="ORDERDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="number" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NUMBER`"/> + </property> + <list name="transactions" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`TRANSACTION_ORDER_E_ID`" unique="false"/> + </key> + <list-index column="`ORDER_TRANSACTIONS_IDX`"/> + <one-to-many entity-name="Transaction"/> + </list> + <many-to-one name="customer" entity-name="Customer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="ORDER_CUSTOMER" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`CUSTOMER_CUSTOMER_E_ID`"/> + </many-to-one> + <list name="comments" table="`ORDER_COMMENTS`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`ORDER_COMMENTS_E_ID`" unique="false"/> + </key> + <list-index column="`ORDER_COMMENTS_IDX`"/> + <element type="java.lang.String"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.nocollectionowner.impl.TransactionImpl" entity-name="Transaction" abstract="false" lazy="false" discriminator-value="Transaction" table="`TRANSACTION`"> + <meta attribute="eclassName" inherit="false">Transaction</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/nocollectionowner</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="TRANSACTIONDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="number" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NUMBER`"/> + </property> + <many-to-one name="order" entity-name="Order" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="TRANSACTION_ORDER" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`TRANSACTION_ORDER_E_ID`"/> + </many-to-one> + <many-to-one name="product" entity-name="Product" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="TRANSACTION_PRODUCT" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`PRODUCT_PRODUCT_E_ID`"/> + </many-to-one> + <property name="startDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`STARTDATE`"/> + </property> + <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`ENDDATE`"/> + </property> + <property name="price" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`PRICE`"/> + </property> + <property name="paidDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`PAIDDATE`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/TransientOtmAction_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/TransientOtmAction_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..d1cb04891 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/TransientOtmAction_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,36 @@ +<?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.hibernate.transientotm.impl.TBookImpl" entity-name="TBook" abstract="false" lazy="false" table="`TBOOK`"> + <meta attribute="eclassName" inherit="false">TBook</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/hibernate/transientotm</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">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> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.hibernate.transientotm.impl.TWriterImpl" entity-name="TWriter" abstract="false" lazy="false" table="`TWRITER`"> + <meta attribute="eclassName" inherit="false">TWriter</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/hibernate/transientotm</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">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" inherit="false">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> + <many-to-one name="book" entity-name="TBook" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="TWRITER_BOOK" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`TBOOK_BOOK_E_ID`"/> + </many-to-one> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/TransientOtmAction_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/TransientOtmAction_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..b8e06c308 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/TransientOtmAction_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,42 @@ +<?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.hibernate.transientotm.impl.TBookImpl" entity-name="TBook" abstract="false" lazy="false" discriminator-value="TBook" table="`TBOOK`"> + <meta attribute="eclassName" inherit="false">TBook</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/hibernate/transientotm</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="TBOOKDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">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> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.hibernate.transientotm.impl.TWriterImpl" entity-name="TWriter" abstract="false" lazy="false" discriminator-value="TWriter" table="`TWRITER`"> + <meta attribute="eclassName" inherit="false">TWriter</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/hibernate/transientotm</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="TWRITERDTYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">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> + <many-to-one name="book" entity-name="TBook" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="TWRITER_BOOK" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`TBOOK_BOOK_E_ID`"/> + </many-to-one> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/UpdateAction_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/UpdateAction_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..4cde5d957 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/UpdateAction_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,32 @@ +<?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.issues.update.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" table="`CHILD`"> + <meta attribute="eclassName" inherit="false">Child</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/update</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`NAME`"/> + </id> + <property name="description" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`DESCRIPTION`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.update.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" table="`PARENT`"> + <meta attribute="eclassName" inherit="false">Parent</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/update</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`NAME`"/> + </id> + <property name="description" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`DESCRIPTION`"/> + </property> + <list name="children" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="PARENT_CHILDREN"> + <column name="`PARENT_CHILDREN_NAME`" unique="false"/> + </key> + <list-index column="`PARENT_CHILDREN_IDX`"/> + <one-to-many entity-name="Child"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/UpdateAction_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/UpdateAction_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..2c0972c42 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/UpdateAction_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,38 @@ +<?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.issues.update.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" discriminator-value="Child" table="`CHILD`"> + <meta attribute="eclassName" inherit="false">Child</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/update</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`NAME`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="CHILDDTYPE" length="255" not-null="true"/> + </discriminator> + <property name="description" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`DESCRIPTION`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.update.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" discriminator-value="Parent" table="`PARENT`"> + <meta attribute="eclassName" inherit="false">Parent</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/update</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`NAME`"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="PARENTDTYPE" length="255" not-null="true"/> + </discriminator> + <property name="description" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`DESCRIPTION`"/> + </property> + <list name="children" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="PARENT_CHILDREN"> + <column name="`PARENT_CHILDREN_NAME`" unique="false"/> + </key> + <list-index column="`PARENT_CHILDREN_IDX`"/> + <one-to-many entity-name="Child"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file |