diff options
author | mtaal | 2007-03-29 15:00:16 +0000 |
---|---|---|
committer | mtaal | 2007-03-29 15:00:16 +0000 |
commit | 19a83b62cb2087d12bb022026939698afda8378e (patch) | |
tree | 8ca9616a72314b20a07a46447f791c19cad3e1ef | |
parent | 0e0bf52120d47f42cb3c85a5492f17834f5e8d5d (diff) | |
download | org.eclipse.emf.teneo-19a83b62cb2087d12bb022026939698afda8378e.tar.gz org.eclipse.emf.teneo-19a83b62cb2087d12bb022026939698afda8378e.tar.xz org.eclipse.emf.teneo-19a83b62cb2087d12bb022026939698afda8378e.zip |
[177370]
[179446]
[177369]
299 files changed, 25328 insertions, 228 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/.settings/org.eclipse.core.resources.prefs b/tests/org.eclipse.emf.teneo.hibernate.test/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 000000000..f5b9de851 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,5 @@ +#Thu Mar 29 15:48:35 CEST 2007 +eclipse.preferences.version=1 +encoding//hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_a_o_hibernate.hbm.xml=UTF-8 +encoding//hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_e_o_hibernate.hbm.xml=UTF-8 +encoding//hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_s_o_hibernate.hbm.xml=UTF-8 diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbIdAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbIdAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..23a24ec71 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbIdAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,45 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:40 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdentityIDImpl" entity-name="IdentityID" abstract="false" lazy="false" discriminator-value="IdentityID" table="`identityid`"> + <meta attribute="eclassName">IdentityID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="identity"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.SimpleIDImpl" entity-name="SimpleID" abstract="false" lazy="false" discriminator-value="SimpleID" table="`simpleid`"> + <meta attribute="eclassName">SimpleID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="autoID" type="long"> + <column not-null="true" unique="false" name="`autod`"/> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.TableIDImpl" entity-name="TableID" abstract="false" lazy="false" discriminator-value="TableID" table="`tableid`"> + <meta attribute="eclassName">TableID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="hilo"> + <param name="table">hilo_table</param> + <param name="column">the_hilo_column</param> + </generator> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> +</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.emf.annotations/HbIdAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbIdAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..16076478b --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbIdAction_mysql_e_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:01 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdentityIDImpl" entity-name="IdentityID" abstract="false" lazy="false" table="`identityid`"> + <meta attribute="eclassName">IdentityID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="identity"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.SimpleIDImpl" entity-name="SimpleID" abstract="false" lazy="false" table="`simpleid`"> + <meta attribute="eclassName">SimpleID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="autoID" type="long"> + <column not-null="true" unique="false" name="`autod`"/> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.TableIDImpl" entity-name="TableID" abstract="false" lazy="false" table="`tableid`"> + <meta attribute="eclassName">TableID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="hilo"> + <param name="table">hilo_table</param> + <param name="column">the_hilo_column</param> + </generator> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">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.emf.annotations/HbIdAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbIdAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..23c03a735 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HbIdAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:24 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.IdentityIDImpl" entity-name="IdentityID" abstract="false" lazy="false" table="`identityid`"> + <meta attribute="eclassName">IdentityID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="identity"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.SimpleIDImpl" entity-name="SimpleID" abstract="false" lazy="false" table="`simpleid`"> + <meta attribute="eclassName">SimpleID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="autoID" type="long"> + <column not-null="true" unique="false" name="`autod`"/> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.hb.generator.id.impl.TableIDImpl" entity-name="TableID" abstract="false" lazy="false" table="`tableid`"> + <meta attribute="eclassName">TableID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="hilo"> + <param name="table">hilo_table</param> + <param name="column">the_hilo_column</param> + </generator> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">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.emf.annotations/JoinColumnsTest$1_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/JoinColumnsTest$1_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..3c6c63886 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/JoinColumnsTest$1_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:40 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.joincolumns.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumns</meta> + <composite-id class="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.PersonID" mapped="true"> + <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 column="`dtype`" type="string"/> + <version name="myversion" column="myversion" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.annotations.joincolumns.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" extends="Person" discriminator-value="Parent"> + <meta attribute="eclassName">Parent</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumns</meta> + <list name="children" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`myparentfirstname`" not-null="false" unique="false"/> + <column name="`myparentlastname`" not-null="false" unique="false"/> + </key> + <list-index column="`parent_children_idx`"/> + <one-to-many entity-name="Child"/> + </list> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.annotations.joincolumns.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" extends="Person" discriminator-value="Child"> + <meta attribute="eclassName">Child</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumns</meta> + </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.emf.annotations/JoinColumnsTest$1_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/JoinColumnsTest$1_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..b4321ca9d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/JoinColumnsTest$1_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,45 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:02 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.joincolumns.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumns</meta> + <composite-id class="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.PersonID" mapped="true"> + <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="myversion" column="myversion" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.joincolumns.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" extends="Person" table="`parent`"> + <meta attribute="eclassName">Parent</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumns</meta> + <key> + <column name="`person_firstname`"/> + <column name="`person_lastname`"/> + </key> + <list name="children" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`myparentfirstname`" not-null="false" unique="false"/> + <column name="`myparentlastname`" not-null="false" unique="false"/> + </key> + <list-index column="`parent_children_idx`"/> + <one-to-many entity-name="Child"/> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.joincolumns.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" extends="Person" table="`child`"> + <meta attribute="eclassName">Child</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumns</meta> + <key> + <column name="`person_firstname`"/> + <column name="`person_lastname`"/> + </key> + </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.emf.annotations/JoinColumnsTest$1_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/JoinColumnsTest$1_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..e1c3f380c --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/JoinColumnsTest$1_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,45 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:25 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.joincolumns.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumns</meta> + <composite-id class="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.PersonID" mapped="true"> + <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="myversion" column="myversion" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.joincolumns.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" extends="Person" table="`parent`"> + <meta attribute="eclassName">Parent</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumns</meta> + <key> + <column name="`person_firstname`"/> + <column name="`person_lastname`"/> + </key> + <list name="children" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`myparentfirstname`" not-null="false" unique="false"/> + <column name="`myparentlastname`" not-null="false" unique="false"/> + </key> + <list-index column="`parent_children_idx`"/> + <one-to-many entity-name="Child"/> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.joincolumns.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" extends="Person" table="`child`"> + <meta attribute="eclassName">Child</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumns</meta> + <key> + <column name="`person_firstname`"/> + <column name="`person_lastname`"/> + </key> + </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.emf.annotations/UserTypeAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/UserTypeAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..57ed858bb --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/UserTypeAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:35 CEST 2007 --> +<hibernate-mapping> + <typedef name="nameType" class="org.eclipse.emf.teneo.samples.emf.hibernate.usertype.NameType"/> + <typedef name="usertype.PhoneNumber" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.elver.org/samples/emf/hibernate/usertype</param> + <param name="edatatype">PhoneNumber</param> + </typedef> + <typedef name="intArrayType" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.elver.org/samples/emf/hibernate/usertype</param> + <param name="edatatype">IntArray</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.hibernate.usertype.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.elver.org/samples/emf/hibernate/usertype</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="nameType"> + <column not-null="false" unique="false" name="`first_name`"/> + <column not-null="false" unique="false" name="`last_name`"/> + </property> + <property name="numbers" lazy="false" insert="true" update="true" not-null="true" unique="false" type="intArrayType"> + <column not-null="true" unique="false" name="`numbers`"/> + </property> + <list name="phoneNumbers" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_phonenumbers_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`person_phonenumbers_idx`"/> + <element type="usertype.PhoneNumber"/> + </list> + <property name="emergencyContact" lazy="false" insert="true" update="true" not-null="false" unique="false" type="usertype.PhoneNumber"> + <column not-null="false" unique="false" name="`emergencycontact`"/> + </property> + <bag name="addresses" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`address_person_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Address"/> + </bag> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.hibernate.usertype.impl.AddressImpl" entity-name="Address" abstract="false" lazy="false" discriminator-value="Address" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.elver.org/samples/emf/hibernate/usertype</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="addressInfo" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`addressinfo`"/> + </property> + <many-to-one name="person" entity-name="Person" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`address_person_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.emf.annotations/UserTypeAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/UserTypeAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..1d820a045 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/UserTypeAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,66 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:56 CEST 2007 --> +<hibernate-mapping> + <typedef name="nameType" class="org.eclipse.emf.teneo.samples.emf.hibernate.usertype.NameType"/> + <typedef name="usertype.PhoneNumber" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.elver.org/samples/emf/hibernate/usertype</param> + <param name="edatatype">PhoneNumber</param> + </typedef> + <typedef name="intArrayType" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.elver.org/samples/emf/hibernate/usertype</param> + <param name="edatatype">IntArray</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.hibernate.usertype.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.elver.org/samples/emf/hibernate/usertype</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="nameType"> + <column not-null="false" unique="false" name="`first_name`"/> + <column not-null="false" unique="false" name="`last_name`"/> + </property> + <property name="numbers" lazy="false" insert="true" update="true" not-null="true" unique="false" type="intArrayType"> + <column not-null="true" unique="false" name="`numbers`"/> + </property> + <list name="phoneNumbers" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_phonenumbers_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`person_phonenumbers_idx`"/> + <element type="usertype.PhoneNumber"/> + </list> + <property name="emergencyContact" lazy="false" insert="true" update="true" not-null="false" unique="false" type="usertype.PhoneNumber"> + <column not-null="false" unique="false" name="`emergencycontact`"/> + </property> + <bag name="addresses" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`address_person_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Address"/> + </bag> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.hibernate.usertype.impl.AddressImpl" entity-name="Address" abstract="false" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.elver.org/samples/emf/hibernate/usertype</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="addressInfo" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`addressinfo`"/> + </property> + <many-to-one name="person" entity-name="Person" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`address_person_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.emf.annotations/UserTypeAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/UserTypeAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..58791031d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/UserTypeAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,66 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:19 CEST 2007 --> +<hibernate-mapping> + <typedef name="nameType" class="org.eclipse.emf.teneo.samples.emf.hibernate.usertype.NameType"/> + <typedef name="usertype.PhoneNumber" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.elver.org/samples/emf/hibernate/usertype</param> + <param name="edatatype">PhoneNumber</param> + </typedef> + <typedef name="intArrayType" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.elver.org/samples/emf/hibernate/usertype</param> + <param name="edatatype">IntArray</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.hibernate.usertype.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.elver.org/samples/emf/hibernate/usertype</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="nameType"> + <column not-null="false" unique="false" name="`first_name`"/> + <column not-null="false" unique="false" name="`last_name`"/> + </property> + <property name="numbers" lazy="false" insert="true" update="true" not-null="true" unique="false" type="intArrayType"> + <column not-null="true" unique="false" name="`numbers`"/> + </property> + <list name="phoneNumbers" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_phonenumbers_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`person_phonenumbers_idx`"/> + <element type="usertype.PhoneNumber"/> + </list> + <property name="emergencyContact" lazy="false" insert="true" update="true" not-null="false" unique="false" type="usertype.PhoneNumber"> + <column not-null="false" unique="false" name="`emergencycontact`"/> + </property> + <bag name="addresses" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`address_person_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Address"/> + </bag> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.hibernate.usertype.impl.AddressImpl" entity-name="Address" abstract="false" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.elver.org/samples/emf/hibernate/usertype</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="addressInfo" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`addressinfo`"/> + </property> + <many-to-one name="person" entity-name="Person" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`address_person_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.emf.detach/DetachFeatureMapTest$1_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachFeatureMapTest$1_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..88e053e5a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachFeatureMapTest$1_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,73 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:07 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachfeaturemap.impl.ContactsImpl" entity-name="Contacts" abstract="false" lazy="false" discriminator-value="Contacts" table="`contacts`"> + <meta attribute="eclassName">Contacts</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/detach/detachfeaturemap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="persons" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`contacts_persons_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`contacts_persons_idx`"/> + <one-to-many entity-name="Person"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachfeaturemap.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/detach/detachfeaturemap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="phones" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_phones_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`person_phones_idx`"/> + <one-to-many entity-name="Person_phones"/> + </list> + </class> + <class entity-name="Person_phones" lazy="false" table="`person_phones`"> + <meta attribute="featureMap">Person</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="office" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`office`"/> + </property> + <property name="mobile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`mobile`"/> + </property> + <property name="fax" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`fax`"/> + </property> + <property name="home" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`home`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.detach.detachfeaturemap.impl.SpecialPersonImpl" entity-name="SpecialPerson" abstract="false" lazy="false" extends="Person" discriminator-value="SpecialPerson"> + <meta attribute="eclassName">SpecialPerson</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/detach/detachfeaturemap</meta> + </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.emf.detach/DetachFeatureMapTest$1_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachFeatureMapTest$1_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..c385176cb --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachFeatureMapTest$1_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:09 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachfeaturemap.impl.ContactsImpl" entity-name="Contacts" abstract="false" lazy="false" table="`contacts`"> + <meta attribute="eclassName">Contacts</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/detach/detachfeaturemap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="persons" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`contacts_persons_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`contacts_persons_idx`"/> + <one-to-many entity-name="Person"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachfeaturemap.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/detach/detachfeaturemap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="phones" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_phones_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`person_phones_idx`"/> + <one-to-many entity-name="Person_phones"/> + </list> + </class> + <class entity-name="Person_phones" lazy="false" table="`person_phones`"> + <meta attribute="featureMap">Person</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="office" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`office`"/> + </property> + <property name="mobile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`mobile`"/> + </property> + <property name="fax" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`fax`"/> + </property> + <property name="home" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`home`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.detach.detachfeaturemap.impl.SpecialPersonImpl" entity-name="SpecialPerson" abstract="false" lazy="false" extends="Person" table="`specialperson`"> + <meta attribute="eclassName">SpecialPerson</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/detach/detachfeaturemap</meta> + <key> + <column name="`person_e_id`"/> + </key> + </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.emf.detach/DetachFeatureMapTest$1_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachFeatureMapTest$1_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..2a753f60c --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachFeatureMapTest$1_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:06 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachfeaturemap.impl.ContactsImpl" entity-name="Contacts" abstract="false" lazy="false" table="`contacts`"> + <meta attribute="eclassName">Contacts</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/detach/detachfeaturemap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="persons" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`contacts_persons_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`contacts_persons_idx`"/> + <one-to-many entity-name="Person"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachfeaturemap.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/detach/detachfeaturemap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="phones" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_phones_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`person_phones_idx`"/> + <one-to-many entity-name="Person_phones"/> + </list> + </class> + <class entity-name="Person_phones" lazy="false" table="`person_phones`"> + <meta attribute="featureMap">Person</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="office" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`office`"/> + </property> + <property name="mobile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`mobile`"/> + </property> + <property name="fax" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`fax`"/> + </property> + <property name="home" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`home`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.detach.detachfeaturemap.impl.SpecialPersonImpl" entity-name="SpecialPerson" abstract="false" lazy="false" extends="Person" table="`specialperson`"> + <meta attribute="eclassName">SpecialPerson</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/detach/detachfeaturemap</meta> + <key> + <column name="`person_e_id`"/> + </key> + </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.emf.detach/DetachTest$1_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachTest$1_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..712dfb4fa --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachTest$1_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,64 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:08 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachtest.impl.TestAImpl" entity-name="TestA" abstract="false" lazy="false" discriminator-value="TestA" table="`testa`"> + <meta attribute="eclassName">TestA</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachtest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + <many-to-one name="testB" entity-name="TestB" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`testb_testb_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachtest.impl.TestBImpl" entity-name="TestB" abstract="false" lazy="false" discriminator-value="TestB" table="`testb`"> + <meta attribute="eclassName">TestB</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachtest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachtest.impl.TestCImpl" entity-name="TestC" abstract="false" lazy="false" discriminator-value="TestC" table="`testc`"> + <meta attribute="eclassName">TestC</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachtest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + <property name="myDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="true" unique="false" name="`mydate`"/> + </property> + <list name="testB" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`testc_testb_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`testc_testb_idx`"/> + <one-to-many entity-name="TestB"/> + </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.emf.detach/DetachTest$1_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachTest$1_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..28200bf9e --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachTest$1_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,61 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:10 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachtest.impl.TestAImpl" entity-name="TestA" abstract="false" lazy="false" table="`testa`"> + <meta attribute="eclassName">TestA</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachtest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + <many-to-one name="testB" entity-name="TestB" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`testb_testb_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachtest.impl.TestBImpl" entity-name="TestB" abstract="false" lazy="false" table="`testb`"> + <meta attribute="eclassName">TestB</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachtest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachtest.impl.TestCImpl" entity-name="TestC" abstract="false" lazy="false" table="`testc`"> + <meta attribute="eclassName">TestC</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachtest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + <property name="myDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="true" unique="false" name="`mydate`"/> + </property> + <list name="testB" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`testc_testb_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`testc_testb_idx`"/> + <one-to-many entity-name="TestB"/> + </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.emf.detach/DetachTest$1_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachTest$1_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..f8ebf6dae --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachTest$1_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,61 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:07 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachtest.impl.TestAImpl" entity-name="TestA" abstract="false" lazy="false" table="`testa`"> + <meta attribute="eclassName">TestA</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachtest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + <many-to-one name="testB" entity-name="TestB" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`testb_testb_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachtest.impl.TestBImpl" entity-name="TestB" abstract="false" lazy="false" table="`testb`"> + <meta attribute="eclassName">TestB</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachtest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachtest.impl.TestCImpl" entity-name="TestC" abstract="false" lazy="false" table="`testc`"> + <meta attribute="eclassName">TestC</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachtest</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + <property name="myDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="true" unique="false" name="`mydate`"/> + </property> + <list name="testB" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`testc_testb_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`testc_testb_idx`"/> + <one-to-many entity-name="TestB"/> + </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.emf.sample/AccountingTest$1_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/AccountingTest$1_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..74c62e4d5 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/AccountingTest$1_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,231 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:27 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.AccountImpl" entity-name="Account" abstract="true" lazy="false" discriminator-value="Account" table="`account`"> + <meta attribute="eclassName">Account</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.AccountGroupImpl" entity-name="AccountGroup" abstract="false" lazy="false" discriminator-value="AccountGroup" table="`accountgroup`"> + <meta attribute="eclassName">AccountGroup</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="account" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`accountgroup_account_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`accountgroup_account_idx`"/> + <one-to-many entity-name="Account"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.AccountingImpl" entity-name="Accounting" abstract="false" lazy="false" discriminator-value="Accounting" table="`accounting`"> + <meta attribute="eclassName">Accounting</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="accountGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`accounting_accountgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`accounting_accountgroup_idx`"/> + <one-to-many entity-name="AccountGroup"/> + </list> + <list name="vat" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`accounting_vat_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`accounting_vat_idx`"/> + <one-to-many entity-name="Vat"/> + </list> + <many-to-one name="vatAccount" entity-name="BalanceAccount" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`balanceaccount_vataccount_e_id`"/> + </many-to-one> + <many-to-one name="report" entity-name="Report" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`report_report_e_id`"/> + </many-to-one> + <list name="journalGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`accounting_journalgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`accounting_journalgroup_idx`"/> + <one-to-many entity-name="JournalGroup"/> + </list> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.BalanceAccountImpl" entity-name="BalanceAccount" abstract="false" lazy="false" extends="Account" discriminator-value="BalanceAccount"> + <meta attribute="eclassName">BalanceAccount</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <list name="report" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`balanceaccount_reportgroup`"> + <key update="true"> + <column name="`balanceaccount_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`balanceaccount_report_idx`"/> + <many-to-many entity-name="ReportGroup" unique="false"> + <column name="`reportgroup_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </subclass> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.JournalGroupImpl" entity-name="JournalGroup" abstract="false" lazy="false" discriminator-value="JournalGroup" table="`journalgroup`"> + <meta attribute="eclassName">JournalGroup</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="journalGroups" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`journalgroup_journalgroups_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`journalgroup_journalgroups_idx`"/> + <one-to-many entity-name="JournalGroup"/> + </list> + <list name="journalStatements" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`journalgroup_journalstatements_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`journalgroup_journalstatements_idx`"/> + <one-to-many entity-name="JournalStatement"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.JournalStatementImpl" entity-name="JournalStatement" abstract="false" lazy="false" discriminator-value="JournalStatement" table="`journalstatement`"> + <meta attribute="eclassName">JournalStatement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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> + <property name="date" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" unique="false" name="`date`"/> + </property> + <property name="amount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`amount`"/> + </property> + <many-to-one name="debitAccount" entity-name="Account" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`account_debitaccount_e_id`"/> + </many-to-one> + <many-to-one name="creditAccount" entity-name="Account" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`account_creditaccount_e_id`"/> + </many-to-one> + <many-to-one name="vat" entity-name="Vat" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`vat_vat_e_id`"/> + </many-to-one> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.PLAccountImpl" entity-name="PLAccount" abstract="false" lazy="false" extends="Account" discriminator-value="PLAccount"> + <meta attribute="eclassName">PLAccount</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + </subclass> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.ReportImpl" entity-name="Report" abstract="false" lazy="false" discriminator-value="Report" table="`report`"> + <meta attribute="eclassName">Report</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="debitReportGroup" entity-name="ReportGroup" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`reportgroup_debitreportgroup_e_id`"/> + </many-to-one> + <many-to-one name="creditReportGroup" entity-name="ReportGroup" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`reportgroup_creditreportgroup_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.ReportGroupImpl" entity-name="ReportGroup" abstract="false" lazy="false" discriminator-value="ReportGroup" table="`reportgroup`"> + <meta attribute="eclassName">ReportGroup</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="reportGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`reportgroup_reportgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`reportgroup_reportgroup_idx`"/> + <one-to-many entity-name="ReportGroup"/> + </list> + <list name="account" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`reportgroup_balanceaccount`"> + <key update="true"> + <column name="`reportgroup_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`reportgroup_account_idx`"/> + <many-to-many entity-name="BalanceAccount" unique="false"> + <column name="`balanceaccount_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.VatImpl" entity-name="Vat" abstract="false" lazy="false" discriminator-value="Vat" table="`vat`"> + <meta attribute="eclassName">Vat</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="rate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`rate`"/> + </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.emf.sample/AccountingTest$1_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/AccountingTest$1_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..d1cf4a15a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/AccountingTest$1_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,229 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:06 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.AccountImpl" entity-name="Account" abstract="true" lazy="false" table="`account`"> + <meta attribute="eclassName">Account</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.AccountGroupImpl" entity-name="AccountGroup" abstract="false" lazy="false" table="`accountgroup`"> + <meta attribute="eclassName">AccountGroup</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="account" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`accountgroup_account_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`accountgroup_account_idx`"/> + <one-to-many entity-name="Account"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.AccountingImpl" entity-name="Accounting" abstract="false" lazy="false" table="`accounting`"> + <meta attribute="eclassName">Accounting</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="accountGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`accounting_accountgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`accounting_accountgroup_idx`"/> + <one-to-many entity-name="AccountGroup"/> + </list> + <list name="vat" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`accounting_vat_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`accounting_vat_idx`"/> + <one-to-many entity-name="Vat"/> + </list> + <many-to-one name="vatAccount" entity-name="BalanceAccount" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`balanceaccount_vataccount_e_id`"/> + </many-to-one> + <many-to-one name="report" entity-name="Report" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`report_report_e_id`"/> + </many-to-one> + <list name="journalGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`accounting_journalgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`accounting_journalgroup_idx`"/> + <one-to-many entity-name="JournalGroup"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.BalanceAccountImpl" entity-name="BalanceAccount" abstract="false" lazy="false" extends="Account" table="`balanceaccount`"> + <meta attribute="eclassName">BalanceAccount</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <key> + <column name="`account_e_id`"/> + </key> + <list name="report" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`balanceaccount_reportgroup`"> + <key update="true"> + <column name="`balanceaccount_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`balanceaccount_report_idx`"/> + <many-to-many entity-name="ReportGroup" unique="false"> + <column name="`reportgroup_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.JournalGroupImpl" entity-name="JournalGroup" abstract="false" lazy="false" table="`journalgroup`"> + <meta attribute="eclassName">JournalGroup</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="journalGroups" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`journalgroup_journalgroups_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`journalgroup_journalgroups_idx`"/> + <one-to-many entity-name="JournalGroup"/> + </list> + <list name="journalStatements" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`journalgroup_journalstatements_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`journalgroup_journalstatements_idx`"/> + <one-to-many entity-name="JournalStatement"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.JournalStatementImpl" entity-name="JournalStatement" abstract="false" lazy="false" table="`journalstatement`"> + <meta attribute="eclassName">JournalStatement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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> + <property name="date" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" unique="false" name="`date`"/> + </property> + <property name="amount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`amount`"/> + </property> + <many-to-one name="debitAccount" entity-name="Account" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`account_debitaccount_e_id`"/> + </many-to-one> + <many-to-one name="creditAccount" entity-name="Account" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`account_creditaccount_e_id`"/> + </many-to-one> + <many-to-one name="vat" entity-name="Vat" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`vat_vat_e_id`"/> + </many-to-one> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.PLAccountImpl" entity-name="PLAccount" abstract="false" lazy="false" extends="Account" table="`placcount`"> + <meta attribute="eclassName">PLAccount</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <key> + <column name="`account_e_id`"/> + </key> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.ReportImpl" entity-name="Report" abstract="false" lazy="false" table="`report`"> + <meta attribute="eclassName">Report</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="debitReportGroup" entity-name="ReportGroup" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`reportgroup_debitreportgroup_e_id`"/> + </many-to-one> + <many-to-one name="creditReportGroup" entity-name="ReportGroup" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`reportgroup_creditreportgroup_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.ReportGroupImpl" entity-name="ReportGroup" abstract="false" lazy="false" table="`reportgroup`"> + <meta attribute="eclassName">ReportGroup</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="reportGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`reportgroup_reportgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`reportgroup_reportgroup_idx`"/> + <one-to-many entity-name="ReportGroup"/> + </list> + <list name="account" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`reportgroup_balanceaccount`"> + <key update="true"> + <column name="`reportgroup_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`reportgroup_account_idx`"/> + <many-to-many entity-name="BalanceAccount" unique="false"> + <column name="`balanceaccount_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.VatImpl" entity-name="Vat" abstract="false" lazy="false" table="`vat`"> + <meta attribute="eclassName">Vat</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="rate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`rate`"/> + </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.emf.sample/AccountingTest$1_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/AccountingTest$1_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..6bfedc8ca --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/AccountingTest$1_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,229 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:41 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.AccountImpl" entity-name="Account" abstract="true" lazy="false" table="`account`"> + <meta attribute="eclassName">Account</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.AccountGroupImpl" entity-name="AccountGroup" abstract="false" lazy="false" table="`accountgroup`"> + <meta attribute="eclassName">AccountGroup</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="account" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`accountgroup_account_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`accountgroup_account_idx`"/> + <one-to-many entity-name="Account"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.AccountingImpl" entity-name="Accounting" abstract="false" lazy="false" table="`accounting`"> + <meta attribute="eclassName">Accounting</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="accountGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`accounting_accountgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`accounting_accountgroup_idx`"/> + <one-to-many entity-name="AccountGroup"/> + </list> + <list name="vat" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`accounting_vat_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`accounting_vat_idx`"/> + <one-to-many entity-name="Vat"/> + </list> + <many-to-one name="vatAccount" entity-name="BalanceAccount" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`balanceaccount_vataccount_e_id`"/> + </many-to-one> + <many-to-one name="report" entity-name="Report" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`report_report_e_id`"/> + </many-to-one> + <list name="journalGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`accounting_journalgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`accounting_journalgroup_idx`"/> + <one-to-many entity-name="JournalGroup"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.BalanceAccountImpl" entity-name="BalanceAccount" abstract="false" lazy="false" extends="Account" table="`balanceaccount`"> + <meta attribute="eclassName">BalanceAccount</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <key> + <column name="`account_e_id`"/> + </key> + <list name="report" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`balanceaccount_reportgroup`"> + <key update="true"> + <column name="`balanceaccount_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`balanceaccount_report_idx`"/> + <many-to-many entity-name="ReportGroup" unique="false"> + <column name="`reportgroup_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.JournalGroupImpl" entity-name="JournalGroup" abstract="false" lazy="false" table="`journalgroup`"> + <meta attribute="eclassName">JournalGroup</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="journalGroups" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`journalgroup_journalgroups_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`journalgroup_journalgroups_idx`"/> + <one-to-many entity-name="JournalGroup"/> + </list> + <list name="journalStatements" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`journalgroup_journalstatements_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`journalgroup_journalstatements_idx`"/> + <one-to-many entity-name="JournalStatement"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.JournalStatementImpl" entity-name="JournalStatement" abstract="false" lazy="false" table="`journalstatement`"> + <meta attribute="eclassName">JournalStatement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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> + <property name="date" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" unique="false" name="`date`"/> + </property> + <property name="amount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`amount`"/> + </property> + <many-to-one name="debitAccount" entity-name="Account" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`account_debitaccount_e_id`"/> + </many-to-one> + <many-to-one name="creditAccount" entity-name="Account" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`account_creditaccount_e_id`"/> + </many-to-one> + <many-to-one name="vat" entity-name="Vat" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`vat_vat_e_id`"/> + </many-to-one> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.PLAccountImpl" entity-name="PLAccount" abstract="false" lazy="false" extends="Account" table="`placcount`"> + <meta attribute="eclassName">PLAccount</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <key> + <column name="`account_e_id`"/> + </key> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.ReportImpl" entity-name="Report" abstract="false" lazy="false" table="`report`"> + <meta attribute="eclassName">Report</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="debitReportGroup" entity-name="ReportGroup" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`reportgroup_debitreportgroup_e_id`"/> + </many-to-one> + <many-to-one name="creditReportGroup" entity-name="ReportGroup" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`reportgroup_creditreportgroup_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.ReportGroupImpl" entity-name="ReportGroup" abstract="false" lazy="false" table="`reportgroup`"> + <meta attribute="eclassName">ReportGroup</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="reportGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`reportgroup_reportgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`reportgroup_reportgroup_idx`"/> + <one-to-many entity-name="ReportGroup"/> + </list> + <list name="account" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`reportgroup_balanceaccount`"> + <key update="true"> + <column name="`reportgroup_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`reportgroup_account_idx`"/> + <many-to-many entity-name="BalanceAccount" unique="false"> + <column name="`balanceaccount_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.VatImpl" entity-name="Vat" abstract="false" lazy="false" table="`vat`"> + <meta attribute="eclassName">Vat</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="rate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`rate`"/> + </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.emf.sample/CapaTest$1_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/CapaTest$1_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..a29a5bb44 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/CapaTest$1_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,173 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:19 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.CapacityEntryImpl" entity-name="CapacityEntry" abstract="false" lazy="false" discriminator-value="CapacityEntry" table="`capacityentry`"> + <meta attribute="eclassName">CapacityEntry</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="capacityEntryId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`capacityentryid`"/> + </property> + <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 name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.MachineImpl" entity-name="Machine" abstract="false" lazy="false" discriminator-value="Machine" table="`machine`"> + <meta attribute="eclassName">Machine</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="workWeek" entity-name="WorkWeek" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`workweek_workweek_e_id`"/> + </many-to-one> + <property name="machineId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`machineid`"/> + </property> + <property name="machineSearchString" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`machinesearchstring`"/> + </property> + <property name="multiplicity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`multiplicity`"/> + </property> + <property name="taskSearchString" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`tasksearchstring`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.MachineListImpl" entity-name="MachineList" abstract="false" lazy="false" discriminator-value="MachineList" table="`machinelist`"> + <meta attribute="eclassName">MachineList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="machines" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`machinelist_machines_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`machinelist_machines_idx`"/> + <one-to-many entity-name="Machine"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.ProductionImpl" entity-name="Production" abstract="false" lazy="false" discriminator-value="Production" table="`production`"> + <meta attribute="eclassName">Production</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="article" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`article`"/> + </property> + <property name="dueTime" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`duetime`"/> + </property> + <property name="missingAmount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`missingamount`"/> + </property> + <property name="productionId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`productionid`"/> + </property> + <property name="startTime" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`starttime`"/> + </property> + <property name="totalAmount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`totalamount`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.TaskImpl" entity-name="Task" abstract="false" lazy="false" discriminator-value="Task" table="`task`"> + <meta attribute="eclassName">Task</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="capacityEntry" entity-name="CapacityEntry" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`capacityentry_capacityentry_e_id`"/> + </many-to-one> + <many-to-one name="production" entity-name="Production" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`production_production_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> + <property name="taskId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`taskid`"/> + </property> + <property name="timePerPice" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`timeperpice`"/> + </property> + <property name="timePerPreperation" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`timeperpreperation`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.WorkDayImpl" entity-name="WorkDay" abstract="false" lazy="false" discriminator-value="WorkDay" table="`workday`"> + <meta attribute="eclassName">WorkDay</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="dayOfWeek" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`dayofweek`"/> + </property> + <property name="duration" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`duration`"/> + </property> + <property name="startTime" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`starttime`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.WorkWeekImpl" entity-name="WorkWeek" abstract="false" lazy="false" discriminator-value="WorkWeek" table="`workweek`"> + <meta attribute="eclassName">WorkWeek</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="days" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`workweek_days_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workweek_days_idx`"/> + <one-to-many entity-name="WorkDay"/> + </list> + <property name="workWeekId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`workweekid`"/> + </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.emf.sample/CapaTest$1_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/CapaTest$1_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..0b270f2ba --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/CapaTest$1_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,166 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:54 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.CapacityEntryImpl" entity-name="CapacityEntry" abstract="false" lazy="false" table="`capacityentry`"> + <meta attribute="eclassName">CapacityEntry</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="capacityEntryId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`capacityentryid`"/> + </property> + <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 name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.MachineImpl" entity-name="Machine" abstract="false" lazy="false" table="`machine`"> + <meta attribute="eclassName">Machine</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="workWeek" entity-name="WorkWeek" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`workweek_workweek_e_id`"/> + </many-to-one> + <property name="machineId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`machineid`"/> + </property> + <property name="machineSearchString" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`machinesearchstring`"/> + </property> + <property name="multiplicity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`multiplicity`"/> + </property> + <property name="taskSearchString" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`tasksearchstring`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.MachineListImpl" entity-name="MachineList" abstract="false" lazy="false" table="`machinelist`"> + <meta attribute="eclassName">MachineList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="machines" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`machinelist_machines_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`machinelist_machines_idx`"/> + <one-to-many entity-name="Machine"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.ProductionImpl" entity-name="Production" abstract="false" lazy="false" table="`production`"> + <meta attribute="eclassName">Production</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="article" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`article`"/> + </property> + <property name="dueTime" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`duetime`"/> + </property> + <property name="missingAmount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`missingamount`"/> + </property> + <property name="productionId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`productionid`"/> + </property> + <property name="startTime" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`starttime`"/> + </property> + <property name="totalAmount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`totalamount`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.TaskImpl" entity-name="Task" abstract="false" lazy="false" table="`task`"> + <meta attribute="eclassName">Task</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="capacityEntry" entity-name="CapacityEntry" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`capacityentry_capacityentry_e_id`"/> + </many-to-one> + <many-to-one name="production" entity-name="Production" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`production_production_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> + <property name="taskId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`taskid`"/> + </property> + <property name="timePerPice" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`timeperpice`"/> + </property> + <property name="timePerPreperation" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`timeperpreperation`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.WorkDayImpl" entity-name="WorkDay" abstract="false" lazy="false" table="`workday`"> + <meta attribute="eclassName">WorkDay</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="dayOfWeek" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`dayofweek`"/> + </property> + <property name="duration" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`duration`"/> + </property> + <property name="startTime" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`starttime`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.WorkWeekImpl" entity-name="WorkWeek" abstract="false" lazy="false" table="`workweek`"> + <meta attribute="eclassName">WorkWeek</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="days" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`workweek_days_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workweek_days_idx`"/> + <one-to-many entity-name="WorkDay"/> + </list> + <property name="workWeekId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`workweekid`"/> + </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.emf.sample/CapaTest$1_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/CapaTest$1_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..a1aa5f382 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/CapaTest$1_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,166 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:32 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.CapacityEntryImpl" entity-name="CapacityEntry" abstract="false" lazy="false" table="`capacityentry`"> + <meta attribute="eclassName">CapacityEntry</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="capacityEntryId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`capacityentryid`"/> + </property> + <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 name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.MachineImpl" entity-name="Machine" abstract="false" lazy="false" table="`machine`"> + <meta attribute="eclassName">Machine</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="workWeek" entity-name="WorkWeek" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`workweek_workweek_e_id`"/> + </many-to-one> + <property name="machineId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`machineid`"/> + </property> + <property name="machineSearchString" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`machinesearchstring`"/> + </property> + <property name="multiplicity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`multiplicity`"/> + </property> + <property name="taskSearchString" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`tasksearchstring`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.MachineListImpl" entity-name="MachineList" abstract="false" lazy="false" table="`machinelist`"> + <meta attribute="eclassName">MachineList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="machines" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`machinelist_machines_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`machinelist_machines_idx`"/> + <one-to-many entity-name="Machine"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.ProductionImpl" entity-name="Production" abstract="false" lazy="false" table="`production`"> + <meta attribute="eclassName">Production</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="article" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`article`"/> + </property> + <property name="dueTime" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`duetime`"/> + </property> + <property name="missingAmount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`missingamount`"/> + </property> + <property name="productionId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`productionid`"/> + </property> + <property name="startTime" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`starttime`"/> + </property> + <property name="totalAmount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`totalamount`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.TaskImpl" entity-name="Task" abstract="false" lazy="false" table="`task`"> + <meta attribute="eclassName">Task</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="capacityEntry" entity-name="CapacityEntry" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`capacityentry_capacityentry_e_id`"/> + </many-to-one> + <many-to-one name="production" entity-name="Production" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`production_production_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> + <property name="taskId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`taskid`"/> + </property> + <property name="timePerPice" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`timeperpice`"/> + </property> + <property name="timePerPreperation" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`timeperpreperation`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.WorkDayImpl" entity-name="WorkDay" abstract="false" lazy="false" table="`workday`"> + <meta attribute="eclassName">WorkDay</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="dayOfWeek" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`dayofweek`"/> + </property> + <property name="duration" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`duration`"/> + </property> + <property name="startTime" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`starttime`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.capa.impl.WorkWeekImpl" entity-name="WorkWeek" abstract="false" lazy="false" table="`workweek`"> + <meta attribute="eclassName">WorkWeek</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/capa</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="days" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`workweek_days_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workweek_days_idx`"/> + <one-to-many entity-name="WorkDay"/> + </list> + <property name="workWeekId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`workweekid`"/> + </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.emf.sample/CatalogTest$1_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/CatalogTest$1_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..d6fe7d4ba --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/CatalogTest$1_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,112 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:43 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.CatalogTypeImpl" entity-name="CatalogType" abstract="false" lazy="false" discriminator-value="CatalogType" table="`catalogtype`"> + <meta attribute="eclassName">CatalogType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="subCatalog" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`catalogtype_subcatalog_name`" not-null="false" unique="false"/> + </key> + <list-index column="`catalogtype_subcatalog_idx`"/> + <one-to-many entity-name="CatalogType"/> + </list> + <list name="product" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`catalogtype_product_name`" not-null="false" unique="false"/> + </key> + <list-index column="`catalogtype_product_idx`"/> + <one-to-many entity-name="ProductType"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.PriceTypeImpl" entity-name="PriceType" abstract="false" lazy="false" discriminator-value="PriceType" table="`pricetype`"> + <meta attribute="eclassName">PriceType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="quantityTo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`quantityto`"/> + </property> + <many-to-one name="supplier" entity-name="SupplierType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" discriminator-value="ProductType" table="`producttype`"> + <meta attribute="eclassName">ProductType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id name="code" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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> + <list name="remark" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`producttype_remark_code`" not-null="false" unique="false"/> + </key> + <list-index column="`producttype_remark_idx`"/> + <one-to-many entity-name="StringType"/> + </list> + <many-to-one name="price" entity-name="PriceType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`pricetype_price_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.StringTypeImpl" entity-name="StringType" abstract="false" lazy="false" discriminator-value="StringType" table="`stringtype`"> + <meta attribute="eclassName">StringType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" discriminator-value="SupplierType" table="`suppliertype`"> + <meta attribute="eclassName">SupplierType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`noofemployees`"/> + </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.emf.sample/CatalogTest$1_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/CatalogTest$1_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..7b16000cc --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/CatalogTest$1_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,107 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:25 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.CatalogTypeImpl" entity-name="CatalogType" abstract="false" lazy="false" table="`catalogtype`"> + <meta attribute="eclassName">CatalogType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="subCatalog" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`catalogtype_subcatalog_name`" not-null="false" unique="false"/> + </key> + <list-index column="`catalogtype_subcatalog_idx`"/> + <one-to-many entity-name="CatalogType"/> + </list> + <list name="product" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`catalogtype_product_name`" not-null="false" unique="false"/> + </key> + <list-index column="`catalogtype_product_idx`"/> + <one-to-many entity-name="ProductType"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.PriceTypeImpl" entity-name="PriceType" abstract="false" lazy="false" table="`pricetype`"> + <meta attribute="eclassName">PriceType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="quantityTo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`quantityto`"/> + </property> + <many-to-one name="supplier" entity-name="SupplierType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" table="`producttype`"> + <meta attribute="eclassName">ProductType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id name="code" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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> + <list name="remark" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`producttype_remark_code`" not-null="false" unique="false"/> + </key> + <list-index column="`producttype_remark_idx`"/> + <one-to-many entity-name="StringType"/> + </list> + <many-to-one name="price" entity-name="PriceType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`pricetype_price_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.StringTypeImpl" entity-name="StringType" abstract="false" lazy="false" table="`stringtype`"> + <meta attribute="eclassName">StringType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" table="`suppliertype`"> + <meta attribute="eclassName">SupplierType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`noofemployees`"/> + </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.emf.sample/CatalogTest$1_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/CatalogTest$1_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..7d8bc8940 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/CatalogTest$1_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,107 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:05 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.CatalogTypeImpl" entity-name="CatalogType" abstract="false" lazy="false" table="`catalogtype`"> + <meta attribute="eclassName">CatalogType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="subCatalog" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`catalogtype_subcatalog_name`" not-null="false" unique="false"/> + </key> + <list-index column="`catalogtype_subcatalog_idx`"/> + <one-to-many entity-name="CatalogType"/> + </list> + <list name="product" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`catalogtype_product_name`" not-null="false" unique="false"/> + </key> + <list-index column="`catalogtype_product_idx`"/> + <one-to-many entity-name="ProductType"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.PriceTypeImpl" entity-name="PriceType" abstract="false" lazy="false" table="`pricetype`"> + <meta attribute="eclassName">PriceType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="quantityTo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`quantityto`"/> + </property> + <many-to-one name="supplier" entity-name="SupplierType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" table="`producttype`"> + <meta attribute="eclassName">ProductType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id name="code" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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> + <list name="remark" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`producttype_remark_code`" not-null="false" unique="false"/> + </key> + <list-index column="`producttype_remark_idx`"/> + <one-to-many entity-name="StringType"/> + </list> + <many-to-one name="price" entity-name="PriceType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`pricetype_price_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.StringTypeImpl" entity-name="StringType" abstract="false" lazy="false" table="`stringtype`"> + <meta attribute="eclassName">StringType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" table="`suppliertype`"> + <meta attribute="eclassName">SupplierType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`noofemployees`"/> + </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.emf.sample/DetachFromSessionAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/DetachFromSessionAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..55b0e2624 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/DetachFromSessionAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,88 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:41 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/DetachFromSessionAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/DetachFromSessionAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..e8673a7a2 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/DetachFromSessionAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:23 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/DetachFromSessionAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/DetachFromSessionAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..6534b8c02 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/DetachFromSessionAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:03 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/ExtendedPO2Test$1_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/ExtendedPO2Test$1_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..ca034d8c9 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/ExtendedPO2Test$1_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,196 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:39 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" discriminator-value="Item" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="order" entity-name="PurchaseOrder" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`item_order_e_id`"/> + </many-to-one> + <property name="productName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`productname`"/> + </property> + <property name="quantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`quantity`"/> + </property> + <property name="USPrice" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`usprice`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="shipDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`shipdate`"/> + </property> + <property name="partNum" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`partnum`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" discriminator-value="Address" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`country`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" discriminator-value="USAddress"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <property name="street" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`city`"/> + </property> + <property name="state" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`state`"/> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </subclass> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.PurchaseOrderImpl" entity-name="PurchaseOrder" abstract="false" lazy="false" discriminator-value="PurchaseOrder" table="`purchaseorder`"> + <meta attribute="eclassName">PurchaseOrder</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="items" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`item_order_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`purchaseorder_items_idx`"/> + <one-to-many entity-name="Item"/> + </list> + <many-to-one name="billTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`address_billto_e_id`"/> + </many-to-one> + <many-to-one name="shipTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_shipto_e_id`"/> + </many-to-one> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="orderDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`orderdate`"/> + </property> + <property name="status" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`status`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.epo2.OrderStatus</param> + </type> + </property> + <many-to-one name="customer" entity-name="Customer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`purchaseorder_customer_e_id`"/> + </many-to-one> + <many-to-one name="previousOrder" entity-name="PurchaseOrder" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`purchaseorder_previousorder_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.SupplierImpl" entity-name="Supplier" abstract="false" lazy="false" discriminator-value="Supplier" table="`supplier`"> + <meta attribute="eclassName">Supplier</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="customers" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`supplier_customers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`supplier_customers_idx`"/> + <one-to-many entity-name="Customer"/> + </list> + <list name="orders" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`supplier_orders_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`supplier_orders_idx`"/> + <one-to-many entity-name="PurchaseOrder"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.CustomerImpl" entity-name="Customer" abstract="false" lazy="false" discriminator-value="Customer" table="`customer`"> + <meta attribute="eclassName">Customer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="customerID" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`customerid`"/> + </property> + <list name="orders" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`purchaseorder_customer_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`customer_orders_idx`"/> + <one-to-many entity-name="PurchaseOrder"/> + </list> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.GlobalAddressImpl" entity-name="GlobalAddress" abstract="false" lazy="false" extends="Address" discriminator-value="GlobalAddress"> + <meta attribute="eclassName">GlobalAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <property name="countryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`countrycode`"/> + </property> + <list name="location" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`globaladdress_location_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`globaladdress_location_idx`"/> + <element type="java.lang.String"/> + </list> + </subclass> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.GlobalLocationImpl" entity-name="GlobalLocation" abstract="false" lazy="false" discriminator-value="GlobalLocation" table="`globallocation`"> + <meta attribute="eclassName">GlobalLocation</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="countryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`countrycode`"/> + </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.emf.sample/ExtendedPO2Test$1_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/ExtendedPO2Test$1_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..b333ec44a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/ExtendedPO2Test$1_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,196 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:21 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="order" entity-name="PurchaseOrder" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`item_order_e_id`"/> + </many-to-one> + <property name="productName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`productname`"/> + </property> + <property name="quantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`quantity`"/> + </property> + <property name="USPrice" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`usprice`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="shipDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`shipdate`"/> + </property> + <property name="partNum" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`partnum`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`country`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`usaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <key> + <column name="`address_e_id`"/> + </key> + <property name="street" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`city`"/> + </property> + <property name="state" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`state`"/> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.PurchaseOrderImpl" entity-name="PurchaseOrder" abstract="false" lazy="false" table="`purchaseorder`"> + <meta attribute="eclassName">PurchaseOrder</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="items" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`item_order_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`purchaseorder_items_idx`"/> + <one-to-many entity-name="Item"/> + </list> + <many-to-one name="billTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`address_billto_e_id`"/> + </many-to-one> + <many-to-one name="shipTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_shipto_e_id`"/> + </many-to-one> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="orderDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`orderdate`"/> + </property> + <property name="status" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`status`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.epo2.OrderStatus</param> + </type> + </property> + <many-to-one name="customer" entity-name="Customer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`purchaseorder_customer_e_id`"/> + </many-to-one> + <many-to-one name="previousOrder" entity-name="PurchaseOrder" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`purchaseorder_previousorder_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.SupplierImpl" entity-name="Supplier" abstract="false" lazy="false" table="`supplier`"> + <meta attribute="eclassName">Supplier</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="customers" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`supplier_customers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`supplier_customers_idx`"/> + <one-to-many entity-name="Customer"/> + </list> + <list name="orders" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`supplier_orders_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`supplier_orders_idx`"/> + <one-to-many entity-name="PurchaseOrder"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.CustomerImpl" entity-name="Customer" abstract="false" lazy="false" table="`customer`"> + <meta attribute="eclassName">Customer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="customerID" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`customerid`"/> + </property> + <list name="orders" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`purchaseorder_customer_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`customer_orders_idx`"/> + <one-to-many entity-name="PurchaseOrder"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.GlobalAddressImpl" entity-name="GlobalAddress" abstract="false" lazy="false" extends="Address" table="`globaladdress`"> + <meta attribute="eclassName">GlobalAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <key> + <column name="`address_e_id`"/> + </key> + <property name="countryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`countrycode`"/> + </property> + <list name="location" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`globaladdress_location_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`globaladdress_location_idx`"/> + <element type="java.lang.String"/> + </list> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.GlobalLocationImpl" entity-name="GlobalLocation" abstract="false" lazy="false" table="`globallocation`"> + <meta attribute="eclassName">GlobalLocation</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="countryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`countrycode`"/> + </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.emf.sample/ExtendedPO2Test$1_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/ExtendedPO2Test$1_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..956b58d61 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/ExtendedPO2Test$1_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,196 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:52 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="order" entity-name="PurchaseOrder" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`item_order_e_id`"/> + </many-to-one> + <property name="productName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`productname`"/> + </property> + <property name="quantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`quantity`"/> + </property> + <property name="USPrice" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`usprice`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="shipDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`shipdate`"/> + </property> + <property name="partNum" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`partnum`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`country`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`usaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <key> + <column name="`address_e_id`"/> + </key> + <property name="street" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`city`"/> + </property> + <property name="state" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`state`"/> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.PurchaseOrderImpl" entity-name="PurchaseOrder" abstract="false" lazy="false" table="`purchaseorder`"> + <meta attribute="eclassName">PurchaseOrder</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="items" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`item_order_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`purchaseorder_items_idx`"/> + <one-to-many entity-name="Item"/> + </list> + <many-to-one name="billTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`address_billto_e_id`"/> + </many-to-one> + <many-to-one name="shipTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_shipto_e_id`"/> + </many-to-one> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="orderDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`orderdate`"/> + </property> + <property name="status" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`status`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.epo2.OrderStatus</param> + </type> + </property> + <many-to-one name="customer" entity-name="Customer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`purchaseorder_customer_e_id`"/> + </many-to-one> + <many-to-one name="previousOrder" entity-name="PurchaseOrder" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`purchaseorder_previousorder_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.SupplierImpl" entity-name="Supplier" abstract="false" lazy="false" table="`supplier`"> + <meta attribute="eclassName">Supplier</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="customers" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`supplier_customers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`supplier_customers_idx`"/> + <one-to-many entity-name="Customer"/> + </list> + <list name="orders" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`supplier_orders_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`supplier_orders_idx`"/> + <one-to-many entity-name="PurchaseOrder"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.CustomerImpl" entity-name="Customer" abstract="false" lazy="false" table="`customer`"> + <meta attribute="eclassName">Customer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="customerID" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`customerid`"/> + </property> + <list name="orders" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`purchaseorder_customer_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`customer_orders_idx`"/> + <one-to-many entity-name="PurchaseOrder"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.GlobalAddressImpl" entity-name="GlobalAddress" abstract="false" lazy="false" extends="Address" table="`globaladdress`"> + <meta attribute="eclassName">GlobalAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <key> + <column name="`address_e_id`"/> + </key> + <property name="countryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`countrycode`"/> + </property> + <list name="location" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`globaladdress_location_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`globaladdress_location_idx`"/> + <element type="java.lang.String"/> + </list> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.GlobalLocationImpl" entity-name="GlobalLocation" abstract="false" lazy="false" table="`globallocation`"> + <meta attribute="eclassName">GlobalLocation</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="countryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`countrycode`"/> + </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.emf.sample/LibrarySessionControllerAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..c2b2b977c --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,88 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:31 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..3bab8964a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:09 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..94210425c --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:44 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAddContentAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAddContentAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..ff6829f11 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAddContentAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,88 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:30 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAddContentAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAddContentAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..3bab8964a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAddContentAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:09 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAddContentAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAddContentAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..94210425c --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibrarySessionControllerAddContentAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:44 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..79e4a989c --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:42 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <cache usage="read-write"/> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..9cea6dea5 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,91 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:25 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <cache usage="read-write"/> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..084ba1cc2 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryTest$1_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,91 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:05 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <cache usage="read-write"/> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryValidateResourceTest$1_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryValidateResourceTest$1_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..26da75261 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryValidateResourceTest$1_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,88 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:45 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryValidateResourceTest$1_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryValidateResourceTest$1_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..7323cabfa --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryValidateResourceTest$1_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:27 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryValidateResourceTest$1_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryValidateResourceTest$1_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..7948803c1 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/LibraryValidateResourceTest$1_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:08 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/SchoolLibraryTest$1_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/SchoolLibraryTest$1_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..e06958c41 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/SchoolLibraryTest$1_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,113 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:31 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="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.emf.sample.schoollibrary.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="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"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.schoollibrary.impl.AssetImpl" entity-name="Asset" abstract="false" lazy="false" discriminator-value="Asset" table="`asset`"> + <meta attribute="eclassName">Asset</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/schoollibrary.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.schoollibrary.impl.SchoolBookImpl" entity-name="SchoolBook" abstract="false" lazy="false" extends="Book" discriminator-value="SchoolBook"> + <meta attribute="eclassName">SchoolBook</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/schoollibrary.ecore</meta> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.schoollibrary.impl.SchoolLibraryImpl" entity-name="SchoolLibrary" abstract="false" lazy="false" extends="Library" discriminator-value="SchoolLibrary"> + <meta attribute="eclassName">SchoolLibrary</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/schoollibrary.ecore</meta> + <property name="location" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`location`"/> + </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.emf.sample/SchoolLibraryTest$1_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/SchoolLibraryTest$1_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..e3ae9aeb0 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/SchoolLibraryTest$1_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,115 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:10 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="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.emf.sample.schoollibrary.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="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"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.schoollibrary.impl.AssetImpl" entity-name="Asset" abstract="false" lazy="false" table="`asset`"> + <meta attribute="eclassName">Asset</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/schoollibrary.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.schoollibrary.impl.SchoolBookImpl" entity-name="SchoolBook" abstract="false" lazy="false" extends="Book" table="`schoolbook`"> + <meta attribute="eclassName">SchoolBook</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/schoollibrary.ecore</meta> + <key> + <column name="`book_e_id`"/> + </key> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.schoollibrary.impl.SchoolLibraryImpl" entity-name="SchoolLibrary" abstract="false" lazy="false" extends="Library" table="`schoollibrary`"> + <meta attribute="eclassName">SchoolLibrary</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/schoollibrary.ecore</meta> + <key> + <column name="`library_e_id`"/> + </key> + <property name="location" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`location`"/> + </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.emf.sample/SchoolLibraryTest$1_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/SchoolLibraryTest$1_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..2d9bf3ade --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/SchoolLibraryTest$1_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,115 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:45 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="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.emf.sample.schoollibrary.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="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"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/library.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.schoollibrary.impl.AssetImpl" entity-name="Asset" abstract="false" lazy="false" table="`asset`"> + <meta attribute="eclassName">Asset</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/schoollibrary.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.schoollibrary.impl.SchoolBookImpl" entity-name="SchoolBook" abstract="false" lazy="false" extends="Book" table="`schoolbook`"> + <meta attribute="eclassName">SchoolBook</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/schoollibrary.ecore</meta> + <key> + <column name="`book_e_id`"/> + </key> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.schoollibrary.schoollibrary.impl.SchoolLibraryImpl" entity-name="SchoolLibrary" abstract="false" lazy="false" extends="Library" table="`schoollibrary`"> + <meta attribute="eclassName">SchoolLibrary</meta> + <meta attribute="epackage">http:///org/elver/store/test/emf/sample/schoollibrary/schoollibrary.ecore</meta> + <key> + <column name="`library_e_id`"/> + </key> + <property name="location" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`location`"/> + </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.emf.schemaconstructs/AttributesTest$1_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.schemaconstructs/AttributesTest$1_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..fc2cf20ae --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.schemaconstructs/AttributesTest$1_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,50 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:46 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.impl.AImpl" entity-name="A" abstract="false" lazy="false" discriminator-value="A" table="`a`"> + <meta attribute="eclassName">A</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/attributes</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`id`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <property name="b" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`b`"/> + </property> + <property name="c" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`c`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="d" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`d`"/> + </property> + <many-to-one name="myR" entity-name="R" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`r_myr_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.impl.RImpl" entity-name="R" abstract="false" lazy="false" discriminator-value="R" table="`r`"> + <meta attribute="eclassName">R</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/attributes</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </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.emf.schemaconstructs/AttributesTest$1_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.schemaconstructs/AttributesTest$1_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..121f3c956 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.schemaconstructs/AttributesTest$1_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,48 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:55 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.impl.AImpl" entity-name="A" abstract="false" lazy="false" table="`a`"> + <meta attribute="eclassName">A</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/attributes</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">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="b" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`b`"/> + </property> + <property name="c" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`c`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="d" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`d`"/> + </property> + <many-to-one name="myR" entity-name="R" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`r_myr_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.impl.RImpl" entity-name="R" abstract="false" lazy="false" table="`r`"> + <meta attribute="eclassName">R</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/attributes</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </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.emf.schemaconstructs/AttributesTest$1_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.schemaconstructs/AttributesTest$1_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..8545417b6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.schemaconstructs/AttributesTest$1_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,48 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:36 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.impl.AImpl" entity-name="A" abstract="false" lazy="false" table="`a`"> + <meta attribute="eclassName">A</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/attributes</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">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="b" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`b`"/> + </property> + <property name="c" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`c`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="d" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`d`"/> + </property> + <many-to-one name="myR" entity-name="R" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`r_myr_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.impl.RImpl" entity-name="R" abstract="false" lazy="false" table="`r`"> + <meta attribute="eclassName">R</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/attributes</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..07bbcc7c8 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,64 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:30 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.associationoverride.impl.AddressImpl" entity-name="Address" abstract="false" lazy="false" discriminator-value="Address" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/associationoverride</meta> + <id type="long" name="myid" column="myid" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="postalCode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`postalcode`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.associationoverride.impl.EmployeeImpl" entity-name="Employee" abstract="false" lazy="false" discriminator-value="Employee" table="`employee`"> + <meta attribute="eclassName">Employee</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/associationoverride</meta> + <id name="id" type="long"> + <column not-null="true" unique="false" name="`id`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="address" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`employee_address_id`"/> + </many-to-one> + <property name="department" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`department`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.associationoverride.impl.StudentImpl" entity-name="Student" abstract="false" lazy="false" discriminator-value="Student" table="`student`"> + <meta attribute="eclassName">Student</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/associationoverride</meta> + <id name="id" type="long"> + <column not-null="true" unique="false" name="`id`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="address" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_address_e_id`"/> + </many-to-one> + <property name="faculty" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`faculty`"/> + </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.test.emf.annotations/AssociationOverrideAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..55d7ff5d6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,61 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:51 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.associationoverride.impl.AddressImpl" entity-name="Address" abstract="false" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/associationoverride</meta> + <id type="long" name="myid" column="myid" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="postalCode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`postalcode`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.associationoverride.impl.EmployeeImpl" entity-name="Employee" abstract="false" lazy="false" table="`employee`"> + <meta attribute="eclassName">Employee</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/associationoverride</meta> + <id name="id" type="long"> + <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">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="address" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`employee_address_id`"/> + </many-to-one> + <property name="department" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`department`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.associationoverride.impl.StudentImpl" entity-name="Student" abstract="false" lazy="false" table="`student`"> + <meta attribute="eclassName">Student</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/associationoverride</meta> + <id name="id" type="long"> + <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">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="address" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_address_e_id`"/> + </many-to-one> + <property name="faculty" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`faculty`"/> + </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.test.emf.annotations/AssociationOverrideAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_s_o_hibernate.hbm.xml index e061fbc83..0449a1c7c 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AssociationOverrideAction_mysql_s_o_hibernate.hbm.xml @@ -1,9 +1,9 @@ <?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"> -<!-- Generated by Teneo on Sun Mar 25 08:19:20 CEST 2007 --> +<!-- Generated by Teneo on Thu Mar 29 16:11:13 CEST 2007 --> <hibernate-mapping> - <class entity-name="Address" abstract="false" lazy="false" table="`address`"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.associationoverride.impl.AddressImpl" entity-name="Address" abstract="false" lazy="false" table="`address`"> <meta attribute="eclassName">Address</meta> <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/associationoverride</meta> <id type="long" name="myid" column="myid" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> @@ -20,7 +20,7 @@ <column not-null="true" unique="false" name="`postalcode`"/> </property> </class> - <class entity-name="Employee" abstract="false" lazy="false" table="`employee`"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.associationoverride.impl.EmployeeImpl" entity-name="Employee" abstract="false" lazy="false" table="`employee`"> <meta attribute="eclassName">Employee</meta> <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/associationoverride</meta> <id name="id" type="long"> @@ -39,7 +39,7 @@ <column not-null="true" unique="false" name="`department`"/> </property> </class> - <class entity-name="Student" abstract="false" lazy="false" table="`student`"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.associationoverride.impl.StudentImpl" entity-name="Student" abstract="false" lazy="false" table="`student`"> <meta attribute="eclassName">Student</meta> <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/associationoverride</meta> <id name="id" type="long"> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AttributeOverridesAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AttributeOverridesAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..7563b122a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AttributeOverridesAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:33 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.attributeoverrides.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http:///org/eclipse/emf/teneo/samples/emf/annotations/attributeoverrides.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <component name="bornIn" class="City"> + <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="`bornnamecolumn`"/> + </property> + <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`bornin_country`"/> + </property> + </component> + <component name="livesIn" class="City"> + <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="`namecolumn`"/> + </property> + <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`countrycolumn`"/> + </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.test.emf.annotations/AttributeOverridesAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AttributeOverridesAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..2a849d596 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AttributeOverridesAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:54 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.attributeoverrides.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http:///org/eclipse/emf/teneo/samples/emf/annotations/attributeoverrides.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <component name="bornIn" class="City"> + <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="`bornnamecolumn`"/> + </property> + <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`bornin_country`"/> + </property> + </component> + <component name="livesIn" class="City"> + <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="`namecolumn`"/> + </property> + <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`countrycolumn`"/> + </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.test.emf.annotations/AttributeOverridesAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AttributeOverridesAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..cfeee1036 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/AttributeOverridesAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:17 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.attributeoverrides.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http:///org/eclipse/emf/teneo/samples/emf/annotations/attributeoverrides.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <component name="bornIn" class="City"> + <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="`bornnamecolumn`"/> + </property> + <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`bornin_country`"/> + </property> + </component> + <component name="livesIn" class="City"> + <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="`namecolumn`"/> + </property> + <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`countrycolumn`"/> + </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.test.emf.annotations/BasicAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/BasicAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..56c4a25b8 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/BasicAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,21 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:42 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.basic.impl.BasicImpl" entity-name="Basic" abstract="false" lazy="false" discriminator-value="Basic" table="`basic`"> + <meta attribute="eclassName">Basic</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/basic</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="myVersion" type="long"> + <column not-null="true" unique="false" name="`myversion`"/> + </version> + <property name="myOptionalBasic" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`myoptionalbasic`"/> + </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.test.emf.annotations/BasicAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/BasicAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..b98b97605 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/BasicAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,20 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:04 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.basic.impl.BasicImpl" entity-name="Basic" abstract="false" lazy="false" table="`basic`"> + <meta attribute="eclassName">Basic</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/basic</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="myVersion" type="long"> + <column not-null="true" unique="false" name="`myversion`"/> + </version> + <property name="myOptionalBasic" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`myoptionalbasic`"/> + </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.test.emf.annotations/BasicAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/BasicAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..ecddeecea --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/BasicAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,20 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:27 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.basic.impl.BasicImpl" entity-name="Basic" abstract="false" lazy="false" table="`basic`"> + <meta attribute="eclassName">Basic</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/basic</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="myVersion" type="long"> + <column not-null="true" unique="false" name="`myversion`"/> + </version> + <property name="myOptionalBasic" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`myoptionalbasic`"/> + </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.test.emf.annotations/BookAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/BookAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..35b3a20e5 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/BookAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:41 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.column.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`mybooktable`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/column</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="true" type="java.lang.String"> + <column not-null="false" unique="true" name="`titel`" length="25"/> + </property> + <property name="pages" lazy="false" insert="false" update="false" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="weight" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="false" unique="false" name="`gewicht`" precision="5" scale="2"/> + </property> + <property name="author" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`author`"/> + </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.test.emf.annotations/BookAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/BookAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..a1541e962 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/BookAction_mysql_e_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:03 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.column.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`mybooktable`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/column</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="true" type="java.lang.String"> + <column not-null="false" unique="true" name="`titel`" length="25"/> + </property> + <property name="pages" lazy="false" insert="false" update="false" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="weight" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="false" unique="false" name="`gewicht`" precision="5" scale="2"/> + </property> + <property name="author" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`author`"/> + </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.test.emf.annotations/BookAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/BookAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..1a410d684 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/BookAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:26 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.column.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`mybooktable`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/column</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="true" type="java.lang.String"> + <column not-null="false" unique="true" name="`titel`" length="25"/> + </property> + <property name="pages" lazy="false" insert="false" update="false" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="weight" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="false" unique="false" name="`gewicht`" precision="5" scale="2"/> + </property> + <property name="author" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`author`"/> + </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.test.emf.annotations/CascadeNotallAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CascadeNotallAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..5634cbb88 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CascadeNotallAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,88 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:32 CEST 2007 --> +<hibernate-mapping> + <typedef name="cascadenotall.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/cascadenotall</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.cascadenotall.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/cascadenotall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.annotations.cascadenotall.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.cascadenotall.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/cascadenotall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" lazy="true" cascade="merge,persist,save-update,lock,refresh,delete"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh,delete"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.cascadenotall.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/cascadenotall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CascadeNotallAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CascadeNotallAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..6b0f73354 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CascadeNotallAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:53 CEST 2007 --> +<hibernate-mapping> + <typedef name="cascadenotall.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/cascadenotall</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.cascadenotall.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/cascadenotall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.annotations.cascadenotall.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.cascadenotall.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/cascadenotall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" lazy="true" cascade="merge,persist,save-update,lock,refresh,delete"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh,delete"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.cascadenotall.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/cascadenotall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CascadeNotallAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CascadeNotallAction_mysql_s_o_hibernate.hbm.xml index 60bc2d25e..9954e617e 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CascadeNotallAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CascadeNotallAction_mysql_s_o_hibernate.hbm.xml @@ -1,13 +1,13 @@ <?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"> -<!-- Generated by Teneo on Sun Mar 25 08:19:22 CEST 2007 --> +<!-- Generated by Teneo on Thu Mar 29 16:11:15 CEST 2007 --> <hibernate-mapping> <typedef name="cascadenotall.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/cascadenotall</param> <param name="edatatype">BookCategoryObject</param> </typedef> - <class entity-name="Book" abstract="false" lazy="false" table="`book`"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.cascadenotall.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> <meta attribute="eclassName">Book</meta> <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/cascadenotall</meta> <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> @@ -33,7 +33,7 @@ <column not-null="false" unique="false" name="`book_author_e_id`"/> </many-to-one> </class> - <class entity-name="Library" abstract="false" lazy="false" table="`library`"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.cascadenotall.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> <meta attribute="eclassName">Library</meta> <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/cascadenotall</meta> <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> @@ -61,7 +61,7 @@ <one-to-many entity-name="Book"/> </list> </class> - <class entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.cascadenotall.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> <meta attribute="eclassName">Writer</meta> <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/cascadenotall</meta> <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CompositeIdAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CompositeIdAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..a25c90877 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CompositeIdAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:43 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http:///org/elver/samples/emf/annotations/compositeid.ecore</meta> + <composite-id class="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.PersonID" mapped="true"> + <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 column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" extends="Person" discriminator-value="Parent"> + <meta attribute="eclassName">Parent</meta> + <meta attribute="epackage">http:///org/elver/samples/emf/annotations/compositeid.ecore</meta> + <list name="children" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`myparentfirstname`" not-null="false" unique="false"/> + <column name="`myparentlastname`" not-null="false" unique="false"/> + </key> + <list-index column="`parent_children_idx`"/> + <one-to-many entity-name="Child"/> + </list> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" extends="Person" discriminator-value="Child"> + <meta attribute="eclassName">Child</meta> + <meta attribute="epackage">http:///org/elver/samples/emf/annotations/compositeid.ecore</meta> + </subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CompositeIdAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CompositeIdAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..497189b72 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CompositeIdAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,45 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:04 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http:///org/elver/samples/emf/annotations/compositeid.ecore</meta> + <composite-id class="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.PersonID" mapped="true"> + <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">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" extends="Person" table="`parent`"> + <meta attribute="eclassName">Parent</meta> + <meta attribute="epackage">http:///org/elver/samples/emf/annotations/compositeid.ecore</meta> + <key> + <column name="`person_firstname`"/> + <column name="`person_lastname`"/> + </key> + <list name="children" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`myparentfirstname`" not-null="false" unique="false"/> + <column name="`myparentlastname`" not-null="false" unique="false"/> + </key> + <list-index column="`parent_children_idx`"/> + <one-to-many entity-name="Child"/> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" extends="Person" table="`child`"> + <meta attribute="eclassName">Child</meta> + <meta attribute="epackage">http:///org/elver/samples/emf/annotations/compositeid.ecore</meta> + <key> + <column name="`person_firstname`"/> + <column name="`person_lastname`"/> + </key> + </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.test.emf.annotations/CompositeIdAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CompositeIdAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..40687db6c --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/CompositeIdAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,45 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:27 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http:///org/elver/samples/emf/annotations/compositeid.ecore</meta> + <composite-id class="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.PersonID" mapped="true"> + <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">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" extends="Person" table="`parent`"> + <meta attribute="eclassName">Parent</meta> + <meta attribute="epackage">http:///org/elver/samples/emf/annotations/compositeid.ecore</meta> + <key> + <column name="`person_firstname`"/> + <column name="`person_lastname`"/> + </key> + <list name="children" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`myparentfirstname`" not-null="false" unique="false"/> + <column name="`myparentlastname`" not-null="false" unique="false"/> + </key> + <list-index column="`parent_children_idx`"/> + <one-to-many entity-name="Child"/> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" extends="Person" table="`child`"> + <meta attribute="eclassName">Child</meta> + <meta attribute="epackage">http:///org/elver/samples/emf/annotations/compositeid.ecore</meta> + <key> + <column name="`person_firstname`"/> + <column name="`person_lastname`"/> + </key> + </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.test.emf.annotations/DuplicatesAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/DuplicatesAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..dfcda47a4 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/DuplicatesAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:40 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.duplicates.impl.ChildItemImpl" entity-name="ChildItem" abstract="false" lazy="false" discriminator-value="ChildItem" table="`childitem`"> + <meta attribute="eclassName">ChildItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/duplicates</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.duplicates.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" discriminator-value="Item" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/duplicates</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="childItem" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`item_childitem_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`item_childitem_idx`"/> + <one-to-many entity-name="ChildItem"/> + </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.test.emf.annotations/DuplicatesAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/DuplicatesAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..9f5023228 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/DuplicatesAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,41 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:02 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.duplicates.impl.ChildItemImpl" entity-name="ChildItem" abstract="false" lazy="false" table="`childitem`"> + <meta attribute="eclassName">ChildItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/duplicates</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.duplicates.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/duplicates</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="childItem" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`item_childitem_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`item_childitem_idx`"/> + <one-to-many entity-name="ChildItem"/> + </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.test.emf.annotations/DuplicatesAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/DuplicatesAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..e09ec33b6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/DuplicatesAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,41 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:25 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.duplicates.impl.ChildItemImpl" entity-name="ChildItem" abstract="false" lazy="false" table="`childitem`"> + <meta attribute="eclassName">ChildItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/duplicates</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.duplicates.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/duplicates</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="childItem" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`item_childitem_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`item_childitem_idx`"/> + <one-to-many entity-name="ChildItem"/> + </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.test.emf.annotations/EDataTypeAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EDataTypeAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..276f55c55 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EDataTypeAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:41 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`mybooktable`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/edatatype_column</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="true" type="java.lang.String"> + <column not-null="false" unique="true" name="`titel`" length="25"/> + </property> + <property name="pages" lazy="false" insert="false" update="false" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="weight" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="false" unique="false" name="`gewicht`" precision="5" scale="2"/> + </property> + <property name="author" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`author`"/> + </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.test.emf.annotations/EDataTypeAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EDataTypeAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..ec5c11f71 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EDataTypeAction_mysql_e_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:03 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`mybooktable`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/edatatype_column</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="true" type="java.lang.String"> + <column not-null="false" unique="true" name="`titel`" length="25"/> + </property> + <property name="pages" lazy="false" insert="false" update="false" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="weight" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="false" unique="false" name="`gewicht`" precision="5" scale="2"/> + </property> + <property name="author" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`author`"/> + </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.test.emf.annotations/EDataTypeAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EDataTypeAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..74f0fc32d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EDataTypeAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:26 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`mybooktable`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/edatatype_column</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="true" type="java.lang.String"> + <column not-null="false" unique="true" name="`titel`" length="25"/> + </property> + <property name="pages" lazy="false" insert="false" update="false" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="weight" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="false" unique="false" name="`gewicht`" precision="5" scale="2"/> + </property> + <property name="author" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`author`"/> + </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.test.emf.annotations/EmbeddedAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..8f113dd46 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,64 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:29 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.embedded.impl.EmbedderImpl" entity-name="Embedder" abstract="false" lazy="false" discriminator-value="Embedder" table="`embedder`"> + <meta attribute="eclassName">Embedder</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/embedded</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <component name="firstEmbedded" class="Embeddable"> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`columnstring3`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`firstembedded_myinteger`"/> + </property> + </component> + <component name="secondEmbedded" class="Embeddable"> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`columnstring1`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`columninteger1`"/> + </property> + </component> + <component name="thirdEmbedded" class="Embeddable"> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`columnstring2`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`columninteger2`"/> + </property> + </component> + <list name="fourthEmbedded" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`embedder_fourthembedded_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`embedder_fourthembedded_idx`"/> + <composite-element class="Embeddable"> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`mystring`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`myinteger`"/> + </property> + </composite-element> + </list> + <component name="fifthEmbedded" class="Embeddable"> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`fifthembedded_mystring`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`fifthembedded_myinteger`"/> + </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.test.emf.annotations/EmbeddedAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..509ace9dc --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,63 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:50 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.embedded.impl.EmbedderImpl" entity-name="Embedder" abstract="false" lazy="false" table="`embedder`"> + <meta attribute="eclassName">Embedder</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/embedded</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <component name="firstEmbedded" class="Embeddable"> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`columnstring3`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`firstembedded_myinteger`"/> + </property> + </component> + <component name="secondEmbedded" class="Embeddable"> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`columnstring1`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`columninteger1`"/> + </property> + </component> + <component name="thirdEmbedded" class="Embeddable"> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`columnstring2`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`columninteger2`"/> + </property> + </component> + <list name="fourthEmbedded" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`embedder_fourthembedded_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`embedder_fourthembedded_idx`"/> + <composite-element class="Embeddable"> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`mystring`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`myinteger`"/> + </property> + </composite-element> + </list> + <component name="fifthEmbedded" class="Embeddable"> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`fifthembedded_mystring`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`fifthembedded_myinteger`"/> + </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.test.emf.annotations/EmbeddedAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedAction_mysql_s_o_hibernate.hbm.xml index fc99ce1cd..e9565421b 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedAction_mysql_s_o_hibernate.hbm.xml @@ -1,9 +1,9 @@ <?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"> -<!-- Generated by Teneo on Sun Mar 25 08:19:21 CEST 2007 --> +<!-- Generated by Teneo on Thu Mar 29 16:11:03 CEST 2007 --> <hibernate-mapping> - <class entity-name="Embedder" abstract="false" lazy="false" table="`embedder`"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.embedded.impl.EmbedderImpl" entity-name="Embedder" abstract="false" lazy="false" table="`embedder`"> <meta attribute="eclassName">Embedder</meta> <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/embedded</meta> <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedIdAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedIdAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..71c86d8f8 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedIdAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:50 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.embeddedid.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/embeddedid</meta> + <composite-id name="name" class="org.eclipse.emf.teneo.samples.emf.annotations.embeddedid.impl.NameImpl"> + <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 column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="text"> + <column not-null="false" unique="false" name="`address`"/> + </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.test.emf.annotations/EmbeddedIdAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedIdAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..f0b5f0bb8 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedIdAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,24 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:06 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.embeddedid.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/embeddedid</meta> + <composite-id name="name" class="org.eclipse.emf.teneo.samples.emf.annotations.embeddedid.impl.NameImpl"> + <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">true</meta> + </version> + <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="text"> + <column not-null="false" unique="false" name="`address`"/> + </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.test.emf.annotations/EmbeddedIdAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedIdAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..c30cdfff0 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedIdAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,24 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:29 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.embeddedid.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/embeddedid</meta> + <composite-id name="name" class="org.eclipse.emf.teneo.samples.emf.annotations.embeddedid.impl.NameImpl"> + <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">true</meta> + </version> + <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="text"> + <column not-null="false" unique="false" name="`address`"/> + </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.test.emf.annotations/ForcedIdBagAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ForcedIdBagAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..55da39827 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ForcedIdBagAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:31 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.forcedidbag.impl.RoleImpl" entity-name="Role" abstract="false" lazy="false" discriminator-value="Role" table="`role`"> + <meta attribute="eclassName">Role</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/Forcedidbag</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.forcedidbag.impl.UserImpl" entity-name="User" abstract="false" lazy="false" discriminator-value="User" table="`user`"> + <meta attribute="eclassName">User</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/Forcedidbag</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <idbag name="roles" table="`user_role`" lazy="true" cascade="all,delete-orphan"> + <collection-id column="idbag_id" type="long"> + <generator class="increment"/> + </collection-id> + <key/> + <many-to-many entity-name="Role" unique="false"/> + </idbag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ForcedIdBagAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ForcedIdBagAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..cae588615 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ForcedIdBagAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,41 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:51 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.forcedidbag.impl.RoleImpl" entity-name="Role" abstract="false" lazy="false" table="`role`"> + <meta attribute="eclassName">Role</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/Forcedidbag</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.forcedidbag.impl.UserImpl" entity-name="User" abstract="false" lazy="false" table="`user`"> + <meta attribute="eclassName">User</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/Forcedidbag</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <idbag name="roles" table="`user_role`" lazy="true" cascade="all,delete-orphan"> + <collection-id column="idbag_id" type="long"> + <generator class="increment"/> + </collection-id> + <key/> + <many-to-many entity-name="Role" unique="false"/> + </idbag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ForcedIdBagAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ForcedIdBagAction_mysql_s_o_hibernate.hbm.xml index 6f7a0a0b1..bef593a73 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ForcedIdBagAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ForcedIdBagAction_mysql_s_o_hibernate.hbm.xml @@ -1,9 +1,9 @@ <?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"> -<!-- Generated by Teneo on Sun Mar 25 08:19:20 CEST 2007 --> +<!-- Generated by Teneo on Thu Mar 29 16:11:13 CEST 2007 --> <hibernate-mapping> - <class entity-name="Role" abstract="false" lazy="false" table="`role`"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.forcedidbag.impl.RoleImpl" entity-name="Role" abstract="false" lazy="false" table="`role`"> <meta attribute="eclassName">Role</meta> <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/Forcedidbag</meta> <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> @@ -17,7 +17,7 @@ <column not-null="true" unique="false" name="`name`"/> </property> </class> - <class entity-name="User" abstract="false" lazy="false" table="`user`"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.forcedidbag.impl.UserImpl" entity-name="User" abstract="false" lazy="false" table="`user`"> <meta attribute="eclassName">User</meta> <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/Forcedidbag</meta> <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..96feba981 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,61 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:37 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.id.impl.IdentityIDImpl" entity-name="IdentityID" abstract="false" lazy="false" discriminator-value="IdentityID" table="`identityid`"> + <meta attribute="eclassName">IdentityID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="identity"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.id.impl.SimpleIDImpl" entity-name="SimpleID" abstract="false" lazy="false" discriminator-value="SimpleID" table="`simpleid`"> + <meta attribute="eclassName">SimpleID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/id</meta> + <id name="autoID" type="long"> + <column not-null="true" unique="false" name="`autod`"/> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.id.impl.TableIDImpl" entity-name="TableID" abstract="false" lazy="false" discriminator-value="TableID" table="`tableid`"> + <meta attribute="eclassName">TableID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="hilo"> + <param name="table">uid_table</param> + <param name="column">next_hi_value_column</param> + </generator> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.id.impl.TableGeneratorIDImpl" entity-name="TableGeneratorID" abstract="false" lazy="false" discriminator-value="TableGeneratorID" table="`tablegeneratorid`"> + <meta attribute="eclassName">TableGeneratorID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="hilo"> + <param name="table">TGEN</param> + <param name="column">VAL_COL</param> + <param name="max_lo">2</param> + </generator> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..70c7e124d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,57 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:59 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.id.impl.IdentityIDImpl" entity-name="IdentityID" abstract="false" lazy="false" table="`identityid`"> + <meta attribute="eclassName">IdentityID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="identity"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.id.impl.SimpleIDImpl" entity-name="SimpleID" abstract="false" lazy="false" table="`simpleid`"> + <meta attribute="eclassName">SimpleID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/id</meta> + <id name="autoID" type="long"> + <column not-null="true" unique="false" name="`autod`"/> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.id.impl.TableIDImpl" entity-name="TableID" abstract="false" lazy="false" table="`tableid`"> + <meta attribute="eclassName">TableID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="hilo"> + <param name="table">uid_table</param> + <param name="column">next_hi_value_column</param> + </generator> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.id.impl.TableGeneratorIDImpl" entity-name="TableGeneratorID" abstract="false" lazy="false" table="`tablegeneratorid`"> + <meta attribute="eclassName">TableGeneratorID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="hilo"> + <param name="table">TGEN</param> + <param name="column">VAL_COL</param> + <param name="max_lo">2</param> + </generator> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">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.test.emf.annotations/IdAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..a2d9931a9 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,57 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:22 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.id.impl.IdentityIDImpl" entity-name="IdentityID" abstract="false" lazy="false" table="`identityid`"> + <meta attribute="eclassName">IdentityID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="identity"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.id.impl.SimpleIDImpl" entity-name="SimpleID" abstract="false" lazy="false" table="`simpleid`"> + <meta attribute="eclassName">SimpleID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/id</meta> + <id name="autoID" type="long"> + <column not-null="true" unique="false" name="`autod`"/> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.id.impl.TableIDImpl" entity-name="TableID" abstract="false" lazy="false" table="`tableid`"> + <meta attribute="eclassName">TableID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="hilo"> + <param name="table">uid_table</param> + <param name="column">next_hi_value_column</param> + </generator> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.id.impl.TableGeneratorIDImpl" entity-name="TableGeneratorID" abstract="false" lazy="false" table="`tablegeneratorid`"> + <meta attribute="eclassName">TableGeneratorID</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/id</meta> + <id name="myid" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + <generator class="hilo"> + <param name="table">TGEN</param> + <param name="column">VAL_COL</param> + <param name="max_lo">2</param> + </generator> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">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.test.emf.annotations/IdBagAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdBagAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..b108fa8d7 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdBagAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:31 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.idbag.impl.UserImpl" entity-name="User" abstract="false" lazy="false" discriminator-value="User" table="`user`"> + <meta attribute="eclassName">User</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/idbag</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <idbag name="roles" lazy="true" cascade="all,delete-orphan"> + <collection-id column="ID" type="long"> + <generator class="increment"/> + </collection-id> + <key update="true"> + <column name="`user_roles_e_id`" not-null="true" unique="false"/> + </key> + <element type="java.lang.String"/> + </idbag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdBagAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdBagAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..5f53f4810 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdBagAction_mysql_e_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:52 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.idbag.impl.UserImpl" entity-name="User" abstract="false" lazy="false" table="`user`"> + <meta attribute="eclassName">User</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/idbag</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <idbag name="roles" lazy="true" cascade="all,delete-orphan"> + <collection-id column="ID" type="long"> + <generator class="increment"/> + </collection-id> + <key update="true"> + <column name="`user_roles_e_id`" not-null="true" unique="false"/> + </key> + <element type="java.lang.String"/> + </idbag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdBagAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdBagAction_mysql_s_o_hibernate.hbm.xml index e3bb8460b..3bd02af4a 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdBagAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdBagAction_mysql_s_o_hibernate.hbm.xml @@ -1,9 +1,9 @@ <?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"> -<!-- Generated by Teneo on Sun Mar 25 08:19:21 CEST 2007 --> +<!-- Generated by Teneo on Thu Mar 29 16:11:14 CEST 2007 --> <hibernate-mapping> - <class entity-name="User" abstract="false" lazy="false" table="`user`"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.idbag.impl.UserImpl" entity-name="User" abstract="false" lazy="false" table="`user`"> <meta attribute="eclassName">User</meta> <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/idbag</meta> <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..dd284cdd7 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,112 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:34 CEST 2007 --> +<hibernate-mapping> + <typedef name="inheritancemapping.USStateObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</param> + <param name="edatatype">USStateObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ContentListImpl" entity-name="ContentList" abstract="false" lazy="false" discriminator-value="ContentList" table="`contentlist`"> + <meta attribute="eclassName">ContentList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contentlist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + <list name="price" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contentlist_price_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_price_idx`"/> + <one-to-many entity-name="Price"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressImpl" entity-name="UKAddress" abstract="false" lazy="false" extends="Address" table="`ukaddress`"> + <meta attribute="eclassName">UKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="postcode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`postcode`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.DistrictUKAddressImpl" entity-name="DistrictUKAddress" abstract="false" lazy="false" extends="UKAddress" table="`districtukaddress`"> + <meta attribute="eclassName">DistrictUKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`ukaddress_name`"/> + </key> + <property name="district" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`district`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.PriceImpl" entity-name="Price" abstract="false" lazy="false" discriminator-value="myPrice" table="`myprice`"> + <meta attribute="eclassName">Price</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`discriminator`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.InternationalPriceImpl" entity-name="InternationalPrice" abstract="false" lazy="false" extends="Price" discriminator-value="myInternationalPrice"> + <meta attribute="eclassName">InternationalPrice</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <property name="currency" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`currency`"/> + </property> + </subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`unitedstatesaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="state" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`state`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.USState</param> + </type> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </joined-subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..6b8218e99 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,111 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:55 CEST 2007 --> +<hibernate-mapping> + <typedef name="inheritancemapping.USStateObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</param> + <param name="edatatype">USStateObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ContentListImpl" entity-name="ContentList" abstract="false" lazy="false" table="`contentlist`"> + <meta attribute="eclassName">ContentList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contentlist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + <list name="price" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contentlist_price_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_price_idx`"/> + <one-to-many entity-name="Price"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressImpl" entity-name="UKAddress" abstract="false" lazy="false" extends="Address" table="`ukaddress`"> + <meta attribute="eclassName">UKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="postcode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`postcode`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.DistrictUKAddressImpl" entity-name="DistrictUKAddress" abstract="false" lazy="false" extends="UKAddress" table="`districtukaddress`"> + <meta attribute="eclassName">DistrictUKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`ukaddress_name`"/> + </key> + <property name="district" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`district`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.PriceImpl" entity-name="Price" abstract="false" lazy="false" discriminator-value="myPrice" table="`myprice`"> + <meta attribute="eclassName">Price</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`discriminator`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.InternationalPriceImpl" entity-name="InternationalPrice" abstract="false" lazy="false" extends="Price" discriminator-value="myInternationalPrice"> + <meta attribute="eclassName">InternationalPrice</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <property name="currency" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`currency`"/> + </property> + </subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`unitedstatesaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="state" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`state`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.USState</param> + </type> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </joined-subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..a5ae66793 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,111 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:18 CEST 2007 --> +<hibernate-mapping> + <typedef name="inheritancemapping.USStateObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</param> + <param name="edatatype">USStateObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ContentListImpl" entity-name="ContentList" abstract="false" lazy="false" table="`contentlist`"> + <meta attribute="eclassName">ContentList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contentlist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + <list name="price" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contentlist_price_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_price_idx`"/> + <one-to-many entity-name="Price"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressImpl" entity-name="UKAddress" abstract="false" lazy="false" extends="Address" table="`ukaddress`"> + <meta attribute="eclassName">UKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="postcode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`postcode`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.DistrictUKAddressImpl" entity-name="DistrictUKAddress" abstract="false" lazy="false" extends="UKAddress" table="`districtukaddress`"> + <meta attribute="eclassName">DistrictUKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`ukaddress_name`"/> + </key> + <property name="district" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`district`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.PriceImpl" entity-name="Price" abstract="false" lazy="false" discriminator-value="myPrice" table="`myprice`"> + <meta attribute="eclassName">Price</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`discriminator`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.InternationalPriceImpl" entity-name="InternationalPrice" abstract="false" lazy="false" extends="Price" discriminator-value="myInternationalPrice"> + <meta attribute="eclassName">InternationalPrice</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <property name="currency" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`currency`"/> + </property> + </subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`unitedstatesaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="state" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`state`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.USState</param> + </type> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </joined-subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..6f4f3097a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,107 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:37 CEST 2007 --> +<hibernate-mapping> + <typedef name="inheritancemapping.USStateObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</param> + <param name="edatatype">USStateObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ContentListImpl" entity-name="ContentList" abstract="false" lazy="false" discriminator-value="ContentList" table="`contentlist`"> + <meta attribute="eclassName">ContentList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contentlist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + <list name="price" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contentlist_price_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_price_idx`"/> + <one-to-many entity-name="Price"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressImpl" entity-name="UKAddress" abstract="false" lazy="false" extends="Address" table="`ukaddress`"> + <meta attribute="eclassName">UKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="postcode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`postcode`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.DistrictUKAddressImpl" entity-name="DistrictUKAddress" abstract="false" lazy="false" extends="UKAddress" table="`districtukaddress`"> + <meta attribute="eclassName">DistrictUKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`ukaddress_name`"/> + </key> + <property name="district" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`district`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.PriceImpl" entity-name="Price" abstract="false" lazy="false" table="`myprice`"> + <meta attribute="eclassName">Price</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <union-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.InternationalPriceImpl" entity-name="InternationalPrice" abstract="false" lazy="false" extends="Price" table="`internationalprice`"> + <meta attribute="eclassName">InternationalPrice</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <property name="currency" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`currency`"/> + </property> + </union-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`usaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="state" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`state`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.USState</param> + </type> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </joined-subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..923edd785 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,106 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:58 CEST 2007 --> +<hibernate-mapping> + <typedef name="inheritancemapping.USStateObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</param> + <param name="edatatype">USStateObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ContentListImpl" entity-name="ContentList" abstract="false" lazy="false" table="`contentlist`"> + <meta attribute="eclassName">ContentList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contentlist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + <list name="price" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contentlist_price_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_price_idx`"/> + <one-to-many entity-name="Price"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressImpl" entity-name="UKAddress" abstract="false" lazy="false" extends="Address" table="`ukaddress`"> + <meta attribute="eclassName">UKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="postcode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`postcode`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.DistrictUKAddressImpl" entity-name="DistrictUKAddress" abstract="false" lazy="false" extends="UKAddress" table="`districtukaddress`"> + <meta attribute="eclassName">DistrictUKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`ukaddress_name`"/> + </key> + <property name="district" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`district`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.PriceImpl" entity-name="Price" abstract="false" lazy="false" table="`myprice`"> + <meta attribute="eclassName">Price</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <union-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.InternationalPriceImpl" entity-name="InternationalPrice" abstract="false" lazy="false" extends="Price" table="`internationalprice`"> + <meta attribute="eclassName">InternationalPrice</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <property name="currency" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`currency`"/> + </property> + </union-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`usaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="state" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`state`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.USState</param> + </type> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </joined-subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..75a94a443 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/InheritanceAnnotationTablePerClassAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,106 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:21 CEST 2007 --> +<hibernate-mapping> + <typedef name="inheritancemapping.USStateObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</param> + <param name="edatatype">USStateObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.ContentListImpl" entity-name="ContentList" abstract="false" lazy="false" table="`contentlist`"> + <meta attribute="eclassName">ContentList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="address" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contentlist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + <list name="price" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contentlist_price_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_price_idx`"/> + <one-to-many entity-name="Price"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.UKAddressImpl" entity-name="UKAddress" abstract="false" lazy="false" extends="Address" table="`ukaddress`"> + <meta attribute="eclassName">UKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="postcode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`postcode`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.DistrictUKAddressImpl" entity-name="DistrictUKAddress" abstract="false" lazy="false" extends="UKAddress" table="`districtukaddress`"> + <meta attribute="eclassName">DistrictUKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`ukaddress_name`"/> + </key> + <property name="district" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`district`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.PriceImpl" entity-name="Price" abstract="false" lazy="false" table="`myprice`"> + <meta attribute="eclassName">Price</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <union-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.InternationalPriceImpl" entity-name="InternationalPrice" abstract="false" lazy="false" extends="Price" table="`internationalprice`"> + <meta attribute="eclassName">InternationalPrice</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <property name="currency" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`currency`"/> + </property> + </union-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`usaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping</meta> + <key> + <column name="`address_name`"/> + </key> + <property name="state" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`state`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.USState</param> + </type> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </joined-subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LazyLibraryAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LazyLibraryAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..42c3738bc --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LazyLibraryAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,88 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:31 CEST 2007 --> +<hibernate-mapping> + <typedef name="lazy.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" lazy="false" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="false" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LazyLibraryAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LazyLibraryAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..1d68120fa --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LazyLibraryAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:52 CEST 2007 --> +<hibernate-mapping> + <typedef name="lazy.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" lazy="false" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="false" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LazyLibraryAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LazyLibraryAction_mysql_s_o_hibernate.hbm.xml index bb4ad9948..e1cb7cb8e 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LazyLibraryAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LazyLibraryAction_mysql_s_o_hibernate.hbm.xml @@ -1,13 +1,13 @@ <?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"> -<!-- Generated by Teneo on Sun Mar 25 08:19:22 CEST 2007 --> +<!-- Generated by Teneo on Thu Mar 29 16:11:14 CEST 2007 --> <hibernate-mapping> <typedef name="lazy.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy</param> <param name="edatatype">BookCategoryObject</param> </typedef> - <class entity-name="Book" abstract="false" lazy="false" table="`book`"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> <meta attribute="eclassName">Book</meta> <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy</meta> <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> @@ -33,7 +33,7 @@ <column not-null="false" unique="false" name="`book_author_e_id`"/> </many-to-one> </class> - <class entity-name="Library" abstract="false" lazy="false" table="`library`"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> <meta attribute="eclassName">Library</meta> <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy</meta> <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> @@ -61,7 +61,7 @@ <one-to-many entity-name="Book"/> </list> </class> - <class entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> <meta attribute="eclassName">Writer</meta> <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy</meta> <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..7c1eb984d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:49 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.lob.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lob</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`id`"/> + </property> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="text"> + <column not-null="false" unique="false" name="`address`"/> + </property> + <property name="photo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="binary"> + <column not-null="false" unique="false" name="`photo`" length="1000000"/> + </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.test.emf.annotations/LobAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..0bccd78a1 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_mysql_e_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:05 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.lob.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lob</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`id`"/> + </property> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="text"> + <column not-null="false" unique="false" name="`address`"/> + </property> + <property name="photo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="binary"> + <column not-null="false" unique="false" name="`photo`" length="1000000"/> + </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.test.emf.annotations/LobAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..a2aecd4e9 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:29 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.lob.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/lob</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`id`"/> + </property> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="text"> + <column not-null="false" unique="false" name="`address`"/> + </property> + <property name="photo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="binary"> + <column not-null="false" unique="false" name="`photo`" length="1000000"/> + </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.test.emf.annotations/ManyToManyAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ManyToManyAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..64ee7b3ee --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ManyToManyAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,76 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:38 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.manytomany.impl.CntrImpl" entity-name="Cntr" abstract="false" lazy="false" discriminator-value="Cntr" table="`cntr`"> + <meta attribute="eclassName">Cntr</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/manytomany</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <bag name="rght" lazy="false" cascade="merge,persist,save-update,lock" table="`rightcenter`"> + <key update="true"> + <column name="`cntr_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="Rght" unique="false"> + <column name="`rght_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + <list name="lft" lazy="false" cascade="merge,persist,save-update,lock" table="`cntr_lft`"> + <key update="true"> + <column name="`cntr_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`cntr_lft_idx`"/> + <many-to-many entity-name="Lft" unique="false"> + <column name="`lft_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.manytomany.impl.LftImpl" entity-name="Lft" abstract="false" lazy="false" discriminator-value="Lft" table="`lft`"> + <meta attribute="eclassName">Lft</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/manytomany</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="cntr" lazy="true" cascade="merge,persist,save-update,lock" table="`lft_cntr`"> + <key update="true"> + <column name="`lft_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`lft_cntr_idx`"/> + <many-to-many entity-name="Cntr" unique="false"> + <column name="`cntr_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.manytomany.impl.RghtImpl" entity-name="Rght" abstract="false" lazy="false" discriminator-value="Rght" table="`rght`"> + <meta attribute="eclassName">Rght</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/manytomany</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <bag name="cntr" lazy="true" cascade="merge,persist,save-update,lock" inverse="true" table="`rightcenter`"> + <key update="true"> + <column name="`rght_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="Cntr" unique="false"> + <column name="`cntr_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ManyToManyAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ManyToManyAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..940ef8a08 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ManyToManyAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,73 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:00 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.manytomany.impl.CntrImpl" entity-name="Cntr" abstract="false" lazy="false" table="`cntr`"> + <meta attribute="eclassName">Cntr</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/manytomany</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <bag name="rght" lazy="false" cascade="merge,persist,save-update,lock" table="`rightcenter`"> + <key update="true"> + <column name="`cntr_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="Rght" unique="false"> + <column name="`rght_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + <list name="lft" lazy="false" cascade="merge,persist,save-update,lock" table="`cntr_lft`"> + <key update="true"> + <column name="`cntr_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`cntr_lft_idx`"/> + <many-to-many entity-name="Lft" unique="false"> + <column name="`lft_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.manytomany.impl.LftImpl" entity-name="Lft" abstract="false" lazy="false" table="`lft`"> + <meta attribute="eclassName">Lft</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/manytomany</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="cntr" lazy="true" cascade="merge,persist,save-update,lock" table="`lft_cntr`"> + <key update="true"> + <column name="`lft_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`lft_cntr_idx`"/> + <many-to-many entity-name="Cntr" unique="false"> + <column name="`cntr_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.manytomany.impl.RghtImpl" entity-name="Rght" abstract="false" lazy="false" table="`rght`"> + <meta attribute="eclassName">Rght</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/manytomany</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <bag name="cntr" lazy="true" cascade="merge,persist,save-update,lock" inverse="true" table="`rightcenter`"> + <key update="true"> + <column name="`rght_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="Cntr" unique="false"> + <column name="`cntr_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ManyToManyAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ManyToManyAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..9a1ecfebe --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ManyToManyAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,73 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:22 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.manytomany.impl.CntrImpl" entity-name="Cntr" abstract="false" lazy="false" table="`cntr`"> + <meta attribute="eclassName">Cntr</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/manytomany</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <bag name="rght" lazy="false" cascade="merge,persist,save-update,lock" table="`rightcenter`"> + <key update="true"> + <column name="`cntr_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="Rght" unique="false"> + <column name="`rght_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + <list name="lft" lazy="false" cascade="merge,persist,save-update,lock" table="`cntr_lft`"> + <key update="true"> + <column name="`cntr_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`cntr_lft_idx`"/> + <many-to-many entity-name="Lft" unique="false"> + <column name="`lft_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.manytomany.impl.LftImpl" entity-name="Lft" abstract="false" lazy="false" table="`lft`"> + <meta attribute="eclassName">Lft</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/manytomany</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="cntr" lazy="true" cascade="merge,persist,save-update,lock" table="`lft_cntr`"> + <key update="true"> + <column name="`lft_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`lft_cntr_idx`"/> + <many-to-many entity-name="Cntr" unique="false"> + <column name="`cntr_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.manytomany.impl.RghtImpl" entity-name="Rght" abstract="false" lazy="false" table="`rght`"> + <meta attribute="eclassName">Rght</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/manytomany</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <bag name="cntr" lazy="true" cascade="merge,persist,save-update,lock" inverse="true" table="`rightcenter`"> + <key update="true"> + <column name="`rght_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="Cntr" unique="false"> + <column name="`cntr_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MapKeyAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MapKeyAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..81d6fce14 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MapKeyAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:35 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.mapkey.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/mapkey</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <map name="writers" where="name='martin'" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`book_writers_e_id`" not-null="false" unique="false"/> + </key> + <map-key column="`name`" type="java.lang.String"/> + <one-to-many entity-name="Writer"/> + </map> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.mapkey.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/mapkey</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MapKeyAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MapKeyAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..0959e5a96 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MapKeyAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,41 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:56 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.mapkey.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/mapkey</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <map name="writers" where="name='martin'" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`book_writers_e_id`" not-null="false" unique="false"/> + </key> + <map-key column="`name`" type="java.lang.String"/> + <one-to-many entity-name="Writer"/> + </map> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.mapkey.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/mapkey</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MapKeyAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MapKeyAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..d312bb42a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MapKeyAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,41 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:19 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.mapkey.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/mapkey</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <map name="writers" where="name='martin'" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`book_writers_e_id`" not-null="false" unique="false"/> + </key> + <map-key column="`name`" type="java.lang.String"/> + <one-to-many entity-name="Writer"/> + </map> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.mapkey.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/mapkey</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MappedSuperClassAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MappedSuperClassAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..490dda642 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MappedSuperClassAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,45 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:38 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.AddIDDocumentImpl" entity-name="AddIDDocument" abstract="false" lazy="false" discriminator-value="AddIDDocument" table="`addiddocument`"> + <meta attribute="eclassName">AddIDDocument</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/mappedsuperclass</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="myGenericInfo" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`mygenericinfo`"/> + </property> + <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> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.SpecificDocumentImpl" entity-name="SpecificDocument" abstract="false" lazy="false" discriminator-value="SpecificDocument" table="`specificdocument`"> + <meta attribute="eclassName">SpecificDocument</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/mappedsuperclass</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="myGenericInfo" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`mygenericinfo`"/> + </property> + <property name="myName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`myname`"/> + </property> + <property name="mySpecificInfo" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`myspecificinfo`"/> + </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.test.emf.annotations/MappedSuperClassAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MappedSuperClassAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..3a5d6d335 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MappedSuperClassAction_mysql_e_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:59 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.AddIDDocumentImpl" entity-name="AddIDDocument" abstract="false" lazy="false" table="`addiddocument`"> + <meta attribute="eclassName">AddIDDocument</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/mappedsuperclass</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="myGenericInfo" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`mygenericinfo`"/> + </property> + <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> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.SpecificDocumentImpl" entity-name="SpecificDocument" abstract="false" lazy="false" table="`specificdocument`"> + <meta attribute="eclassName">SpecificDocument</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/mappedsuperclass</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="myGenericInfo" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`mygenericinfo`"/> + </property> + <property name="myName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`myname`"/> + </property> + <property name="mySpecificInfo" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`myspecificinfo`"/> + </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.test.emf.annotations/MappedSuperClassAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MappedSuperClassAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..1a7341da1 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/MappedSuperClassAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:22 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.AddIDDocumentImpl" entity-name="AddIDDocument" abstract="false" lazy="false" table="`addiddocument`"> + <meta attribute="eclassName">AddIDDocument</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/mappedsuperclass</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="myGenericInfo" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`mygenericinfo`"/> + </property> + <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> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.SpecificDocumentImpl" entity-name="SpecificDocument" abstract="false" lazy="false" table="`specificdocument`"> + <meta attribute="eclassName">SpecificDocument</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/mappedsuperclass</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="myGenericInfo" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`mygenericinfo`"/> + </property> + <property name="myName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`myname`"/> + </property> + <property name="mySpecificInfo" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`myspecificinfo`"/> + </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.test.emf.annotations/PKeyJoinAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/PKeyJoinAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..d41946c5b --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/PKeyJoinAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:43 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.BodyImpl" entity-name="Body" abstract="false" lazy="false" discriminator-value="Body" table="`body`"> + <meta attribute="eclassName">Body</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/primarykeyjoin</meta> + <id name="theID" type="long"> + <column not-null="true" unique="false" name="`theid`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <one-to-one name="head" entity-name="Head" cascade="all" lazy="false" constrained="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.HeadImpl" entity-name="Head" abstract="false" lazy="false" discriminator-value="Head" table="`head`"> + <meta attribute="eclassName">Head</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/primarykeyjoin</meta> + <id name="myID" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/PKeyJoinAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/PKeyJoinAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..92967a050 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/PKeyJoinAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,27 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:04 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.BodyImpl" entity-name="Body" abstract="false" lazy="false" table="`body`"> + <meta attribute="eclassName">Body</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/primarykeyjoin</meta> + <id name="theID" type="long"> + <column not-null="true" unique="false" name="`theid`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <one-to-one name="head" entity-name="Head" cascade="all" lazy="false" constrained="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.HeadImpl" entity-name="Head" abstract="false" lazy="false" table="`head`"> + <meta attribute="eclassName">Head</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/primarykeyjoin</meta> + <id name="myID" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">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.test.emf.annotations/PKeyJoinAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/PKeyJoinAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..a5c11cc15 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/PKeyJoinAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,27 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:28 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.BodyImpl" entity-name="Body" abstract="false" lazy="false" table="`body`"> + <meta attribute="eclassName">Body</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/primarykeyjoin</meta> + <id name="theID" type="long"> + <column not-null="true" unique="false" name="`theid`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <one-to-one name="head" entity-name="Head" cascade="all" lazy="false" constrained="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.HeadImpl" entity-name="Head" abstract="false" lazy="false" table="`head`"> + <meta attribute="eclassName">Head</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/primarykeyjoin</meta> + <id name="myID" type="long"> + <column not-null="true" unique="false" name="`myid`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">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.test.emf.annotations/SecondarytableHibernateAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SecondarytableHibernateAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..85c058f0c --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SecondarytableHibernateAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:42 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.secondarytablehibernate.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`PERSON`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/secondarytablehibernate</meta> + <id name="id" type="long"> + <column not-null="true" unique="false" name="`ID`"/> + </id> + <discriminator column="`DTYPE`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`NAME`"/> + </property> + <join table="`PERSON_ADDRESS`"> + <key column="`ID`"/> + <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="text"> + <column not-null="false" unique="false" name="`ADDRESS`"/> + </property> + </join> + <join table="`PERSON_PHOTO`"> + <key column="`ID`"/> + <property name="photo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="binary"> + <column not-null="false" unique="false" name="`PHOTO`" length="1000000"/> + </property> + </join> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SecondarytableHibernateAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SecondarytableHibernateAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..d19356095 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SecondarytableHibernateAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:03 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.secondarytablehibernate.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`PERSON`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/secondarytablehibernate</meta> + <id name="id" type="long"> + <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">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> + <join table="`PERSON_ADDRESS`"> + <key column="`ID`"/> + <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="text"> + <column not-null="false" unique="false" name="`ADDRESS`"/> + </property> + </join> + <join table="`PERSON_PHOTO`"> + <key column="`ID`"/> + <property name="photo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="binary"> + <column not-null="false" unique="false" name="`PHOTO`" length="1000000"/> + </property> + </join> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SecondarytableHibernateAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SecondarytableHibernateAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..88058248f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SecondarytableHibernateAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:27 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.secondarytablehibernate.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`PERSON`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/secondarytablehibernate</meta> + <id name="id" type="long"> + <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">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> + <join table="`PERSON_ADDRESS`"> + <key column="`ID`"/> + <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="text"> + <column not-null="false" unique="false" name="`ADDRESS`"/> + </property> + </join> + <join table="`PERSON_PHOTO`"> + <key column="`ID`"/> + <property name="photo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="binary"> + <column not-null="false" unique="false" name="`PHOTO`" length="1000000"/> + </property> + </join> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..e006e2687 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:33 CEST 2007 --> +<hibernate-mapping auto-import="false"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ContainedItemImpl" entity-name="testSet.ContainedItem" abstract="false" lazy="false" discriminator-value="testSet.ContainedItem" table="`testset_containeditem`"> + <meta attribute="eclassName">ContainedItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl" entity-name="testSet.Item" abstract="false" lazy="false" discriminator-value="testSet.Item" table="`testset_item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="itemList" entity-name="testSet.ItemList" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`item_itemlist_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl" entity-name="testSet.ItemList" abstract="false" lazy="false" discriminator-value="testSet.ItemList" table="`testset_itemlist`"> + <meta attribute="eclassName">ItemList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="containedItem" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`itemlist_containeditem_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="testSet.ContainedItem"/> + </bag> + <bag name="item" order-by="name desc" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`item_itemlist_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="testSet.Item"/> + </bag> + <list name="joinedItem" table="`testset_itemlist_testset_item`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key/> + <list-index column="`itemlist_joineditem_idx`"/> + <many-to-many entity-name="testSet.Item" unique="false"/> + </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.test.emf.annotations/SetAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..f2e132e89 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:54 CEST 2007 --> +<hibernate-mapping auto-import="false"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ContainedItemImpl" entity-name="testSet.ContainedItem" abstract="false" lazy="false" table="`testset_containeditem`"> + <meta attribute="eclassName">ContainedItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl" entity-name="testSet.Item" abstract="false" lazy="false" table="`testset_item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="itemList" entity-name="testSet.ItemList" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`item_itemlist_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl" entity-name="testSet.ItemList" abstract="false" lazy="false" table="`testset_itemlist`"> + <meta attribute="eclassName">ItemList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="containedItem" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`itemlist_containeditem_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="testSet.ContainedItem"/> + </bag> + <bag name="item" order-by="name desc" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`item_itemlist_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="testSet.Item"/> + </bag> + <list name="joinedItem" table="`testset_itemlist_testset_item`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key/> + <list-index column="`itemlist_joineditem_idx`"/> + <many-to-many entity-name="testSet.Item" unique="false"/> + </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.test.emf.annotations/SetAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..767738015 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:16 CEST 2007 --> +<hibernate-mapping auto-import="false"> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ContainedItemImpl" entity-name="testSet.ContainedItem" abstract="false" lazy="false" table="`testset_containeditem`"> + <meta attribute="eclassName">ContainedItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl" entity-name="testSet.Item" abstract="false" lazy="false" table="`testset_item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="itemList" entity-name="testSet.ItemList" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`item_itemlist_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl" entity-name="testSet.ItemList" abstract="false" lazy="false" table="`testset_itemlist`"> + <meta attribute="eclassName">ItemList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="containedItem" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`itemlist_containeditem_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="testSet.ContainedItem"/> + </bag> + <bag name="item" order-by="name desc" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`item_itemlist_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="testSet.Item"/> + </bag> + <list name="joinedItem" table="`testset_itemlist_testset_item`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key/> + <list-index column="`itemlist_joineditem_idx`"/> + <many-to-many entity-name="testSet.Item" unique="false"/> + </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.test.emf.annotations/SetNMAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetNMAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..c2faa8878 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetNMAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:36 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.MyItemImpl" entity-name="MyItem" abstract="false" lazy="false" discriminator-value="MyItem" table="`myitem`"> + <meta attribute="eclassName">MyItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/nmset</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="yourItem" lazy="true" cascade="merge,persist,save-update,lock,refresh" inverse="true" table="`youritem_myitem`"> + <key update="true"> + <column name="`myitem_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="YourItem" unique="false"> + <column name="`youritem_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.YourItemImpl" entity-name="YourItem" abstract="false" lazy="false" discriminator-value="YourItem" table="`youritem`"> + <meta attribute="eclassName">YourItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/nmset</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="myItem" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`youritem_myitem`"> + <key update="true"> + <column name="`youritem_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="MyItem" unique="false"> + <column name="`myitem_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetNMAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetNMAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..b36d54f8b --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetNMAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,50 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:57 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.MyItemImpl" entity-name="MyItem" abstract="false" lazy="false" table="`myitem`"> + <meta attribute="eclassName">MyItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/nmset</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="yourItem" lazy="true" cascade="merge,persist,save-update,lock,refresh" inverse="true" table="`youritem_myitem`"> + <key update="true"> + <column name="`myitem_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="YourItem" unique="false"> + <column name="`youritem_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.YourItemImpl" entity-name="YourItem" abstract="false" lazy="false" table="`youritem`"> + <meta attribute="eclassName">YourItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/nmset</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="myItem" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`youritem_myitem`"> + <key update="true"> + <column name="`youritem_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="MyItem" unique="false"> + <column name="`myitem_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetNMAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetNMAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..b82b63a2a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetNMAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,50 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:20 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.MyItemImpl" entity-name="MyItem" abstract="false" lazy="false" table="`myitem`"> + <meta attribute="eclassName">MyItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/nmset</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="yourItem" lazy="true" cascade="merge,persist,save-update,lock,refresh" inverse="true" table="`youritem_myitem`"> + <key update="true"> + <column name="`myitem_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="YourItem" unique="false"> + <column name="`youritem_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.YourItemImpl" entity-name="YourItem" abstract="false" lazy="false" table="`youritem`"> + <meta attribute="eclassName">YourItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/nmset</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="myItem" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`youritem_myitem`"> + <key update="true"> + <column name="`youritem_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="MyItem" unique="false"> + <column name="`myitem_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetResourceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetResourceAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..5c5abd1fa --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetResourceAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:43 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ContainedItemImpl" entity-name="ContainedItem" abstract="false" lazy="false" discriminator-value="ContainedItem" table="`containeditem`"> + <meta attribute="eclassName">ContainedItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" discriminator-value="Item" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="itemList" entity-name="ItemList" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`item_itemlist_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl" entity-name="ItemList" abstract="false" lazy="false" discriminator-value="ItemList" table="`itemlist`"> + <meta attribute="eclassName">ItemList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="containedItem" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`itemlist_containeditem_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="ContainedItem"/> + </bag> + <bag name="item" order-by="name desc" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`item_itemlist_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Item"/> + </bag> + <list name="joinedItem" table="`itemlist_item`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key/> + <list-index column="`itemlist_joineditem_idx`"/> + <many-to-many entity-name="Item" unique="false"/> + </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.test.emf.annotations/SetResourceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetResourceAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..93f458697 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetResourceAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:05 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ContainedItemImpl" entity-name="ContainedItem" abstract="false" lazy="false" table="`containeditem`"> + <meta attribute="eclassName">ContainedItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="itemList" entity-name="ItemList" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`item_itemlist_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl" entity-name="ItemList" abstract="false" lazy="false" table="`itemlist`"> + <meta attribute="eclassName">ItemList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="containedItem" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`itemlist_containeditem_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="ContainedItem"/> + </bag> + <bag name="item" order-by="name desc" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`item_itemlist_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Item"/> + </bag> + <list name="joinedItem" table="`itemlist_item`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key/> + <list-index column="`itemlist_joineditem_idx`"/> + <many-to-many entity-name="Item" unique="false"/> + </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.test.emf.annotations/SetResourceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetResourceAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..7088c2e28 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetResourceAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:28 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ContainedItemImpl" entity-name="ContainedItem" abstract="false" lazy="false" table="`containeditem`"> + <meta attribute="eclassName">ContainedItem</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="itemList" entity-name="ItemList" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`item_itemlist_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl" entity-name="ItemList" abstract="false" lazy="false" table="`itemlist`"> + <meta attribute="eclassName">ItemList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/set</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="containedItem" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`itemlist_containeditem_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="ContainedItem"/> + </bag> + <bag name="item" order-by="name desc" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`item_itemlist_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Item"/> + </bag> + <list name="joinedItem" table="`itemlist_item`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key/> + <list-index column="`itemlist_joineditem_idx`"/> + <many-to-many entity-name="Item" unique="false"/> + </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.test.emf.annotations/ToOneAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..42f3f590d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:39 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.toone.impl.AddressImpl" entity-name="Address" abstract="false" lazy="false" discriminator-value="Address" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/toone</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.toone.impl.ArmImpl" entity-name="Arm" abstract="false" lazy="false" discriminator-value="Arm" table="`arm`"> + <meta attribute="eclassName">Arm</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/toone</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="length" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`length`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.toone.impl.HeadImpl" entity-name="Head" abstract="false" lazy="false" discriminator-value="Head" table="`head`"> + <meta attribute="eclassName">Head</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/toone</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="hairColor" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`haircolor`"/> + </property> + <many-to-one name="person" entity-name="Person" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.toone.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/toone</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="address" entity-name="Address" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_address_e_id`"/> + </many-to-one> + <one-to-one name="head" entity-name="Head" cascade="all" property-ref="person" lazy="false"/> + <many-to-one name="leftArm" entity-name="Arm" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`arm_leftarm_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.test.emf.annotations/ToOneAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..a66420ec4 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_e_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:01 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.toone.impl.AddressImpl" entity-name="Address" abstract="false" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/toone</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.toone.impl.ArmImpl" entity-name="Arm" abstract="false" lazy="false" table="`arm`"> + <meta attribute="eclassName">Arm</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/toone</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="length" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`length`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.toone.impl.HeadImpl" entity-name="Head" abstract="false" lazy="false" table="`head`"> + <meta attribute="eclassName">Head</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/toone</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="hairColor" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`haircolor`"/> + </property> + <many-to-one name="person" entity-name="Person" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.toone.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/toone</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="address" entity-name="Address" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_address_e_id`"/> + </many-to-one> + <one-to-one name="head" entity-name="Head" cascade="all" property-ref="person" lazy="false"/> + <many-to-one name="leftArm" entity-name="Arm" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`arm_leftarm_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.test.emf.annotations/ToOneAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..b3b0870b2 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/ToOneAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:24 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.toone.impl.AddressImpl" entity-name="Address" abstract="false" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/toone</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.toone.impl.ArmImpl" entity-name="Arm" abstract="false" lazy="false" table="`arm`"> + <meta attribute="eclassName">Arm</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/toone</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="length" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`length`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.toone.impl.HeadImpl" entity-name="Head" abstract="false" lazy="false" table="`head`"> + <meta attribute="eclassName">Head</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/toone</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="hairColor" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`haircolor`"/> + </property> + <many-to-one name="person" entity-name="Person" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.toone.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/toone</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="address" entity-name="Address" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_address_e_id`"/> + </many-to-one> + <one-to-one name="head" entity-name="Head" cascade="all" property-ref="person" lazy="false"/> + <many-to-one name="leftArm" entity-name="Arm" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`arm_leftarm_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.test.emf.annotations/TransientAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/TransientAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..ee4a2814a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/TransientAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,17 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:42 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.transent.impl.BodyImpl" entity-name="Body" abstract="false" lazy="false" discriminator-value="Body" table="`body`"> + <meta attribute="eclassName">Body</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/transent</meta> + <id name="theID" type="long"> + <column not-null="true" unique="false" name="`theid`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/TransientAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/TransientAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..8934a33d6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/TransientAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,16 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:04 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.transent.impl.BodyImpl" entity-name="Body" abstract="false" lazy="false" table="`body`"> + <meta attribute="eclassName">Body</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/transent</meta> + <id name="theID" type="long"> + <column not-null="true" unique="false" name="`theid`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">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.test.emf.annotations/TransientAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/TransientAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..6eb683828 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/TransientAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,16 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:27 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.transent.impl.BodyImpl" entity-name="Body" abstract="false" lazy="false" table="`body`"> + <meta attribute="eclassName">Body</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/transent</meta> + <id name="theID" type="long"> + <column not-null="true" unique="false" name="`theid`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">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.test.emf.annotations/UniqueConstraintsAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/UniqueConstraintsAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..2bfdbfca1 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/UniqueConstraintsAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:41 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.uniqueconstraints.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" discriminator-value="Item" table="`myitemtable`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/uniqueconstraints</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`mystr`" unique-key="c0"/> + </property> + <many-to-one name="project" entity-name="Project" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`myproject`" unique-key="c0"/> + </many-to-one> + <property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`myint`" unique-key="c0"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.uniqueconstraints.impl.ProjectImpl" entity-name="Project" abstract="false" lazy="false" discriminator-value="Project" table="`project`"> + <meta attribute="eclassName">Project</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/uniqueconstraints</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/UniqueConstraintsAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/UniqueConstraintsAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..ed1f59b8b --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/UniqueConstraintsAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,40 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:02 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.uniqueconstraints.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`myitemtable`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/uniqueconstraints</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`mystr`" unique-key="c0"/> + </property> + <many-to-one name="project" entity-name="Project" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`myproject`" unique-key="c0"/> + </many-to-one> + <property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`myint`" unique-key="c0"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.uniqueconstraints.impl.ProjectImpl" entity-name="Project" abstract="false" lazy="false" table="`project`"> + <meta attribute="eclassName">Project</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/uniqueconstraints</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/UniqueConstraintsAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/UniqueConstraintsAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..93d20e610 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/UniqueConstraintsAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,40 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:11:25 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.uniqueconstraints.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`myitemtable`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/uniqueconstraints</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`mystr`" unique-key="c0"/> + </property> + <many-to-one name="project" entity-name="Project" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`myproject`" unique-key="c0"/> + </many-to-one> + <property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`myint`" unique-key="c0"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.annotations.uniqueconstraints.impl.ProjectImpl" entity-name="Project" abstract="false" lazy="false" table="`project`"> + <meta attribute="eclassName">Project</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/uniqueconstraints</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.detach/DetachEListAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.detach/DetachEListAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..5a142cafb --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.detach/DetachEListAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,54 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:08 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachelist.impl.ContactsImpl" entity-name="Contacts" abstract="false" lazy="false" discriminator-value="Contacts" table="`contacts`"> + <meta attribute="eclassName">Contacts</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachelist</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="persons" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contacts_persons_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`contacts_persons_idx`"/> + <one-to-many entity-name="Person"/> + </list> + <list name="containedPersons" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`contacts_containedpersons_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`contacts_containedpersons_idx`"/> + <one-to-many entity-name="Person"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachelist.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachelist</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="children" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_children_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`person_children_idx`"/> + <one-to-many entity-name="Person"/> + </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.test.emf.detach/DetachEListAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.detach/DetachEListAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..ddce1b337 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.detach/DetachEListAction_mysql_e_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:09 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachelist.impl.ContactsImpl" entity-name="Contacts" abstract="false" lazy="false" table="`contacts`"> + <meta attribute="eclassName">Contacts</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachelist</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="persons" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contacts_persons_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`contacts_persons_idx`"/> + <one-to-many entity-name="Person"/> + </list> + <list name="containedPersons" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`contacts_containedpersons_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`contacts_containedpersons_idx`"/> + <one-to-many entity-name="Person"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachelist.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachelist</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="children" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_children_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`person_children_idx`"/> + <one-to-many entity-name="Person"/> + </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.test.emf.detach/DetachEListAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.detach/DetachEListAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..7bb3470b7 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.detach/DetachEListAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:06 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachelist.impl.ContactsImpl" entity-name="Contacts" abstract="false" lazy="false" table="`contacts`"> + <meta attribute="eclassName">Contacts</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachelist</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="persons" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contacts_persons_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`contacts_persons_idx`"/> + <one-to-many entity-name="Person"/> + </list> + <list name="containedPersons" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`contacts_containedpersons_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`contacts_containedpersons_idx`"/> + <one-to-many entity-name="Person"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.detach.detachelist.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/detach/detachelist</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="children" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_children_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`person_children_idx`"/> + <one-to-many entity-name="Person"/> + </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.test.emf.elist/FeatureMapAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.elist/FeatureMapAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..387b0064a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.elist/FeatureMapAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,130 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:11 CEST 2007 --> +<hibernate-mapping> + <typedef name="featuremap.ProductClassificationObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</param> + <param name="edatatype">ProductClassificationObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.elist.featuremap.impl.PriceByQuantityTypeImpl" entity-name="PriceByQuantityType" abstract="false" lazy="false" discriminator-value="PriceByQuantityType" table="`pricebyquantitytype`"> + <meta attribute="eclassName">PriceByQuantityType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="quantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`quantity`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.elist.featuremap.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" discriminator-value="ProductType" table="`producttype`"> + <meta attribute="eclassName">ProductType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`producttype_group_name`" not-null="false" unique="false"/> + </key> + <list-index column="`producttype_group_idx`"/> + <one-to-many entity-name="ProductType_group"/> + </list> + <property name="productClassification" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`productclassification`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.elist.featuremap.ProductClassification</param> + </type> + </property> + <list name="group1" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`producttype_group1_name`" not-null="false" unique="false"/> + </key> + <list-index column="`producttype_group1_idx`"/> + <one-to-many entity-name="ProductType_group1"/> + </list> + </class> + <class entity-name="ProductType_group" lazy="false" table="`producttype_group`"> + <meta attribute="featureMap">ProductType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="translatedDescription" entity-name="TranslatedDescriptionType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`translateddescriptiontype_translateddescription_e_id`"/> + </many-to-one> + </class> + <class entity-name="ProductType_group1" lazy="false" table="`producttype_group1`"> + <meta attribute="featureMap">ProductType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="priceByQuantity" entity-name="PriceByQuantityType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`pricebyquantitytype_pricebyquantity_e_id`"/> + </many-to-one> + <many-to-one name="priceFromSupplier" entity-name="SupplierPriceType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`supplierpricetype_pricefromsupplier_e_id`"/> + </many-to-one> + <property name="simplePrice" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`simpleprice`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.elist.featuremap.impl.SupplierPriceTypeImpl" entity-name="SupplierPriceType" abstract="false" lazy="false" discriminator-value="SupplierPriceType" table="`supplierpricetype`"> + <meta attribute="eclassName">SupplierPriceType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <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> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.elist.featuremap.impl.TranslatedDescriptionTypeImpl" entity-name="TranslatedDescriptionType" abstract="false" lazy="false" discriminator-value="TranslatedDescriptionType" table="`translateddescriptiontype`"> + <meta attribute="eclassName">TranslatedDescriptionType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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> + <property name="language" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`language`"/> + </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.test.emf.elist/FeatureMapAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.elist/FeatureMapAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..181280ccb --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.elist/FeatureMapAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,126 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:12 CEST 2007 --> +<hibernate-mapping> + <typedef name="featuremap.ProductClassificationObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</param> + <param name="edatatype">ProductClassificationObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.elist.featuremap.impl.PriceByQuantityTypeImpl" entity-name="PriceByQuantityType" abstract="false" lazy="false" table="`pricebyquantitytype`"> + <meta attribute="eclassName">PriceByQuantityType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="quantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`quantity`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.elist.featuremap.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" table="`producttype`"> + <meta attribute="eclassName">ProductType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`producttype_group_name`" not-null="false" unique="false"/> + </key> + <list-index column="`producttype_group_idx`"/> + <one-to-many entity-name="ProductType_group"/> + </list> + <property name="productClassification" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`productclassification`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.elist.featuremap.ProductClassification</param> + </type> + </property> + <list name="group1" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`producttype_group1_name`" not-null="false" unique="false"/> + </key> + <list-index column="`producttype_group1_idx`"/> + <one-to-many entity-name="ProductType_group1"/> + </list> + </class> + <class entity-name="ProductType_group" lazy="false" table="`producttype_group`"> + <meta attribute="featureMap">ProductType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="translatedDescription" entity-name="TranslatedDescriptionType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`translateddescriptiontype_translateddescription_e_id`"/> + </many-to-one> + </class> + <class entity-name="ProductType_group1" lazy="false" table="`producttype_group1`"> + <meta attribute="featureMap">ProductType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="priceByQuantity" entity-name="PriceByQuantityType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`pricebyquantitytype_pricebyquantity_e_id`"/> + </many-to-one> + <many-to-one name="priceFromSupplier" entity-name="SupplierPriceType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`supplierpricetype_pricefromsupplier_e_id`"/> + </many-to-one> + <property name="simplePrice" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`simpleprice`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.elist.featuremap.impl.SupplierPriceTypeImpl" entity-name="SupplierPriceType" abstract="false" lazy="false" table="`supplierpricetype`"> + <meta attribute="eclassName">SupplierPriceType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <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> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.elist.featuremap.impl.TranslatedDescriptionTypeImpl" entity-name="TranslatedDescriptionType" abstract="false" lazy="false" table="`translateddescriptiontype`"> + <meta attribute="eclassName">TranslatedDescriptionType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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> + <property name="language" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`language`"/> + </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.test.emf.elist/FeatureMapAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.elist/FeatureMapAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..de14b9371 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.elist/FeatureMapAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,126 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:10 CEST 2007 --> +<hibernate-mapping> + <typedef name="featuremap.ProductClassificationObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</param> + <param name="edatatype">ProductClassificationObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.elist.featuremap.impl.PriceByQuantityTypeImpl" entity-name="PriceByQuantityType" abstract="false" lazy="false" table="`pricebyquantitytype`"> + <meta attribute="eclassName">PriceByQuantityType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="quantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`quantity`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.elist.featuremap.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" table="`producttype`"> + <meta attribute="eclassName">ProductType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`producttype_group_name`" not-null="false" unique="false"/> + </key> + <list-index column="`producttype_group_idx`"/> + <one-to-many entity-name="ProductType_group"/> + </list> + <property name="productClassification" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`productclassification`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.elist.featuremap.ProductClassification</param> + </type> + </property> + <list name="group1" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`producttype_group1_name`" not-null="false" unique="false"/> + </key> + <list-index column="`producttype_group1_idx`"/> + <one-to-many entity-name="ProductType_group1"/> + </list> + </class> + <class entity-name="ProductType_group" lazy="false" table="`producttype_group`"> + <meta attribute="featureMap">ProductType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="translatedDescription" entity-name="TranslatedDescriptionType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`translateddescriptiontype_translateddescription_e_id`"/> + </many-to-one> + </class> + <class entity-name="ProductType_group1" lazy="false" table="`producttype_group1`"> + <meta attribute="featureMap">ProductType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="priceByQuantity" entity-name="PriceByQuantityType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`pricebyquantitytype_pricebyquantity_e_id`"/> + </many-to-one> + <many-to-one name="priceFromSupplier" entity-name="SupplierPriceType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`supplierpricetype_pricefromsupplier_e_id`"/> + </many-to-one> + <property name="simplePrice" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`simpleprice`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.elist.featuremap.impl.SupplierPriceTypeImpl" entity-name="SupplierPriceType" abstract="false" lazy="false" table="`supplierpricetype`"> + <meta attribute="eclassName">SupplierPriceType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <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> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.elist.featuremap.impl.TranslatedDescriptionTypeImpl" entity-name="TranslatedDescriptionType" abstract="false" lazy="false" table="`translateddescriptiontype`"> + <meta attribute="eclassName">TranslatedDescriptionType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/elist/featuremap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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> + <property name="language" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`language`"/> + </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.test.emf.relation/Relation1to1Action_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..5d069b652 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,144 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:18 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.ContainedChildNRImpl" entity-name="ContainedChildNR" abstract="false" lazy="false" discriminator-value="ContainedChildNR" table="`containedchildnr`"> + <meta attribute="eclassName">ContainedChildNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.ContainedChildRImpl" entity-name="ContainedChildR" abstract="false" lazy="false" discriminator-value="ContainedChildR" table="`containedchildr`"> + <meta attribute="eclassName">ContainedChildR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.MainImpl" entity-name="Main" abstract="false" lazy="false" discriminator-value="Main" table="`main`"> + <meta attribute="eclassName">Main</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <many-to-one name="containedonewayrequired" entity-name="ContainedChildR" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`containedchildr_containedonewayrequired_e_id`"/> + </many-to-one> + <many-to-one name="containedoneWaynotrequired" entity-name="ContainedChildNR" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`containedchildnr_containedonewaynotrequired_e_id`"/> + </many-to-one> + <many-to-one name="notcontainedonewayrequired" entity-name="NotContainedChildR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`notcontainedchildr_notcontainedonewayrequired_e_id`"/> + </many-to-one> + <many-to-one name="notcontainedonewaynotrequired" entity-name="NotContainedChildNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`notcontainedchildnr_notcontainedonewaynotrequired_e_id`"/> + </many-to-one> + <many-to-one name="notcontainedtwowaynotrequired" entity-name="NotContainedChildNRT" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="notcontainedtwowayrequirednr" entity-name="NotContainedChildRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="notcontainedtwowaynotrequirednr" entity-name="NotContainedChildNRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildNRImpl" entity-name="NotContainedChildNR" abstract="false" lazy="false" discriminator-value="NotContainedChildNR" table="`notcontainedchildnr`"> + <meta attribute="eclassName">NotContainedChildNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildNRTImpl" entity-name="NotContainedChildNRT" abstract="false" lazy="false" discriminator-value="NotContainedChildNRT" table="`notcontainedchildnrt`"> + <meta attribute="eclassName">NotContainedChildNRT</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <one-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" property-ref="notcontainedtwowaynotrequired" lazy="false"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildNRTNRImpl" entity-name="NotContainedChildNRTNR" abstract="false" lazy="false" discriminator-value="NotContainedChildNRTNR" table="`notcontainedchildnrtnr`"> + <meta attribute="eclassName">NotContainedChildNRTNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <one-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" property-ref="notcontainedtwowaynotrequirednr" lazy="false"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildRImpl" entity-name="NotContainedChildR" abstract="false" lazy="false" discriminator-value="NotContainedChildR" table="`notcontainedchildr`"> + <meta attribute="eclassName">NotContainedChildR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildRTNRImpl" entity-name="NotContainedChildRTNR" abstract="false" lazy="false" discriminator-value="NotContainedChildRTNR" table="`notcontainedchildrtnr`"> + <meta attribute="eclassName">NotContainedChildRTNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <one-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" property-ref="notcontainedtwowayrequirednr" 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.test.emf.relation/Relation1to1Action_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..329edc5bd --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,136 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:22 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.ContainedChildNRImpl" entity-name="ContainedChildNR" abstract="false" lazy="false" table="`containedchildnr`"> + <meta attribute="eclassName">ContainedChildNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.ContainedChildRImpl" entity-name="ContainedChildR" abstract="false" lazy="false" table="`containedchildr`"> + <meta attribute="eclassName">ContainedChildR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.MainImpl" entity-name="Main" abstract="false" lazy="false" table="`main`"> + <meta attribute="eclassName">Main</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <many-to-one name="containedonewayrequired" entity-name="ContainedChildR" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`containedchildr_containedonewayrequired_e_id`"/> + </many-to-one> + <many-to-one name="containedoneWaynotrequired" entity-name="ContainedChildNR" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`containedchildnr_containedonewaynotrequired_e_id`"/> + </many-to-one> + <many-to-one name="notcontainedonewayrequired" entity-name="NotContainedChildR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`notcontainedchildr_notcontainedonewayrequired_e_id`"/> + </many-to-one> + <many-to-one name="notcontainedonewaynotrequired" entity-name="NotContainedChildNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`notcontainedchildnr_notcontainedonewaynotrequired_e_id`"/> + </many-to-one> + <many-to-one name="notcontainedtwowaynotrequired" entity-name="NotContainedChildNRT" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="notcontainedtwowayrequirednr" entity-name="NotContainedChildRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="notcontainedtwowaynotrequirednr" entity-name="NotContainedChildNRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildNRImpl" entity-name="NotContainedChildNR" abstract="false" lazy="false" table="`notcontainedchildnr`"> + <meta attribute="eclassName">NotContainedChildNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildNRTImpl" entity-name="NotContainedChildNRT" abstract="false" lazy="false" table="`notcontainedchildnrt`"> + <meta attribute="eclassName">NotContainedChildNRT</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <one-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" property-ref="notcontainedtwowaynotrequired" lazy="false"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildNRTNRImpl" entity-name="NotContainedChildNRTNR" abstract="false" lazy="false" table="`notcontainedchildnrtnr`"> + <meta attribute="eclassName">NotContainedChildNRTNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <one-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" property-ref="notcontainedtwowaynotrequirednr" lazy="false"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildRImpl" entity-name="NotContainedChildR" abstract="false" lazy="false" table="`notcontainedchildr`"> + <meta attribute="eclassName">NotContainedChildR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildRTNRImpl" entity-name="NotContainedChildRTNR" abstract="false" lazy="false" table="`notcontainedchildrtnr`"> + <meta attribute="eclassName">NotContainedChildRTNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <one-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" property-ref="notcontainedtwowayrequirednr" 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.test.emf.relation/Relation1to1Action_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..047fa8224 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/Relation1to1Action_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,136 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:13 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.ContainedChildNRImpl" entity-name="ContainedChildNR" abstract="false" lazy="false" table="`containedchildnr`"> + <meta attribute="eclassName">ContainedChildNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.ContainedChildRImpl" entity-name="ContainedChildR" abstract="false" lazy="false" table="`containedchildr`"> + <meta attribute="eclassName">ContainedChildR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.MainImpl" entity-name="Main" abstract="false" lazy="false" table="`main`"> + <meta attribute="eclassName">Main</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <many-to-one name="containedonewayrequired" entity-name="ContainedChildR" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`containedchildr_containedonewayrequired_e_id`"/> + </many-to-one> + <many-to-one name="containedoneWaynotrequired" entity-name="ContainedChildNR" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`containedchildnr_containedonewaynotrequired_e_id`"/> + </many-to-one> + <many-to-one name="notcontainedonewayrequired" entity-name="NotContainedChildR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`notcontainedchildr_notcontainedonewayrequired_e_id`"/> + </many-to-one> + <many-to-one name="notcontainedonewaynotrequired" entity-name="NotContainedChildNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`notcontainedchildnr_notcontainedonewaynotrequired_e_id`"/> + </many-to-one> + <many-to-one name="notcontainedtwowaynotrequired" entity-name="NotContainedChildNRT" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="notcontainedtwowayrequirednr" entity-name="NotContainedChildRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + <many-to-one name="notcontainedtwowaynotrequirednr" entity-name="NotContainedChildNRTNR" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" unique="true"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildNRImpl" entity-name="NotContainedChildNR" abstract="false" lazy="false" table="`notcontainedchildnr`"> + <meta attribute="eclassName">NotContainedChildNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildNRTImpl" entity-name="NotContainedChildNRT" abstract="false" lazy="false" table="`notcontainedchildnrt`"> + <meta attribute="eclassName">NotContainedChildNRT</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <one-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" property-ref="notcontainedtwowaynotrequired" lazy="false"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildNRTNRImpl" entity-name="NotContainedChildNRTNR" abstract="false" lazy="false" table="`notcontainedchildnrtnr`"> + <meta attribute="eclassName">NotContainedChildNRTNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <one-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" property-ref="notcontainedtwowaynotrequirednr" lazy="false"/> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildRImpl" entity-name="NotContainedChildR" abstract="false" lazy="false" table="`notcontainedchildr`"> + <meta attribute="eclassName">NotContainedChildR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1to1.impl.NotContainedChildRTNRImpl" entity-name="NotContainedChildRTNR" abstract="false" lazy="false" table="`notcontainedchildrtnr`"> + <meta attribute="eclassName">NotContainedChildRTNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1to1</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <one-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" property-ref="notcontainedtwowayrequirednr" 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.test.emf.relation/Relation1tonAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/Relation1tonAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..de8176e2b --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/Relation1tonAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,209 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:19 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.MainImpl" entity-name="Main" abstract="false" lazy="false" discriminator-value="Main" table="`main`"> + <meta attribute="eclassName">Main</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="onecr" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`main_onecr_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_onecr_idx`"/> + <one-to-many entity-name="OneCR"/> + </list> + <list name="onecn" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`main_onecn_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_onecn_idx`"/> + <one-to-many entity-name="OneCN"/> + </list> + <list name="onenr" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`main_onenr_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_onenr_idx`"/> + <one-to-many entity-name="OneNR"/> + </list> + <list name="onenn" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`main_onenn_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_onenn_idx`"/> + <one-to-many entity-name="OneNN"/> + </list> + <list name="twocr" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`twocr_main_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_twocr_idx`"/> + <one-to-many entity-name="TwoCR"/> + </list> + <list name="twocn" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`twocn_main_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_twocn_idx`"/> + <one-to-many entity-name="TwoCN"/> + </list> + <list name="twonr" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`twonr_main_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_twonr_idx`"/> + <one-to-many entity-name="TwoNR"/> + </list> + <list name="twonn" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`twonn_main_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_twonn_idx`"/> + <one-to-many entity-name="TwoNN"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.OneCNImpl" entity-name="OneCN" abstract="false" lazy="false" discriminator-value="OneCN" table="`onecn`"> + <meta attribute="eclassName">OneCN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.OneCRImpl" entity-name="OneCR" abstract="false" lazy="false" discriminator-value="OneCR" table="`onecr`"> + <meta attribute="eclassName">OneCR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.OneNNImpl" entity-name="OneNN" abstract="false" lazy="false" discriminator-value="OneNN" table="`onenn`"> + <meta attribute="eclassName">OneNN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.OneNRImpl" entity-name="OneNR" abstract="false" lazy="false" discriminator-value="OneNR" table="`onenr`"> + <meta attribute="eclassName">OneNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.TwoCNImpl" entity-name="TwoCN" abstract="false" lazy="false" discriminator-value="TwoCN" table="`twocn`"> + <meta attribute="eclassName">TwoCN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`twocn_main_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.TwoCRImpl" entity-name="TwoCR" abstract="false" lazy="false" discriminator-value="TwoCR" table="`twocr`"> + <meta attribute="eclassName">TwoCR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`twocr_main_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.TwoNNImpl" entity-name="TwoNN" abstract="false" lazy="false" discriminator-value="TwoNN" table="`twonn`"> + <meta attribute="eclassName">TwoNN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`twonn_main_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.TwoNRImpl" entity-name="TwoNR" abstract="false" lazy="false" discriminator-value="TwoNR" table="`twonr`"> + <meta attribute="eclassName">TwoNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`twonr_main_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.test.emf.relation/Relation1tonAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/Relation1tonAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..c2a0b4fee --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/Relation1tonAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,200 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:23 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.MainImpl" entity-name="Main" abstract="false" lazy="false" table="`main`"> + <meta attribute="eclassName">Main</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="onecr" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`main_onecr_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_onecr_idx`"/> + <one-to-many entity-name="OneCR"/> + </list> + <list name="onecn" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`main_onecn_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_onecn_idx`"/> + <one-to-many entity-name="OneCN"/> + </list> + <list name="onenr" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`main_onenr_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_onenr_idx`"/> + <one-to-many entity-name="OneNR"/> + </list> + <list name="onenn" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`main_onenn_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_onenn_idx`"/> + <one-to-many entity-name="OneNN"/> + </list> + <list name="twocr" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`twocr_main_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_twocr_idx`"/> + <one-to-many entity-name="TwoCR"/> + </list> + <list name="twocn" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`twocn_main_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_twocn_idx`"/> + <one-to-many entity-name="TwoCN"/> + </list> + <list name="twonr" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`twonr_main_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_twonr_idx`"/> + <one-to-many entity-name="TwoNR"/> + </list> + <list name="twonn" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`twonn_main_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_twonn_idx`"/> + <one-to-many entity-name="TwoNN"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.OneCNImpl" entity-name="OneCN" abstract="false" lazy="false" table="`onecn`"> + <meta attribute="eclassName">OneCN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.OneCRImpl" entity-name="OneCR" abstract="false" lazy="false" table="`onecr`"> + <meta attribute="eclassName">OneCR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.OneNNImpl" entity-name="OneNN" abstract="false" lazy="false" table="`onenn`"> + <meta attribute="eclassName">OneNN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.OneNRImpl" entity-name="OneNR" abstract="false" lazy="false" table="`onenr`"> + <meta attribute="eclassName">OneNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.TwoCNImpl" entity-name="TwoCN" abstract="false" lazy="false" table="`twocn`"> + <meta attribute="eclassName">TwoCN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`twocn_main_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.TwoCRImpl" entity-name="TwoCR" abstract="false" lazy="false" table="`twocr`"> + <meta attribute="eclassName">TwoCR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`twocr_main_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.TwoNNImpl" entity-name="TwoNN" abstract="false" lazy="false" table="`twonn`"> + <meta attribute="eclassName">TwoNN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`twonn_main_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.TwoNRImpl" entity-name="TwoNR" abstract="false" lazy="false" table="`twonr`"> + <meta attribute="eclassName">TwoNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`twonr_main_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.test.emf.relation/Relation1tonAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/Relation1tonAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..0be5f7202 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/Relation1tonAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,200 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:15 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.MainImpl" entity-name="Main" abstract="false" lazy="false" table="`main`"> + <meta attribute="eclassName">Main</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="onecr" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`main_onecr_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_onecr_idx`"/> + <one-to-many entity-name="OneCR"/> + </list> + <list name="onecn" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`main_onecn_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_onecn_idx`"/> + <one-to-many entity-name="OneCN"/> + </list> + <list name="onenr" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`main_onenr_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_onenr_idx`"/> + <one-to-many entity-name="OneNR"/> + </list> + <list name="onenn" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`main_onenn_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_onenn_idx`"/> + <one-to-many entity-name="OneNN"/> + </list> + <list name="twocr" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`twocr_main_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_twocr_idx`"/> + <one-to-many entity-name="TwoCR"/> + </list> + <list name="twocn" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`twocn_main_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_twocn_idx`"/> + <one-to-many entity-name="TwoCN"/> + </list> + <list name="twonr" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`twonr_main_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_twonr_idx`"/> + <one-to-many entity-name="TwoNR"/> + </list> + <list name="twonn" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`twonn_main_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`main_twonn_idx`"/> + <one-to-many entity-name="TwoNN"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.OneCNImpl" entity-name="OneCN" abstract="false" lazy="false" table="`onecn`"> + <meta attribute="eclassName">OneCN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.OneCRImpl" entity-name="OneCR" abstract="false" lazy="false" table="`onecr`"> + <meta attribute="eclassName">OneCR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.OneNNImpl" entity-name="OneNN" abstract="false" lazy="false" table="`onenn`"> + <meta attribute="eclassName">OneNN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.OneNRImpl" entity-name="OneNR" abstract="false" lazy="false" table="`onenr`"> + <meta attribute="eclassName">OneNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.TwoCNImpl" entity-name="TwoCN" abstract="false" lazy="false" table="`twocn`"> + <meta attribute="eclassName">TwoCN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`twocn_main_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.TwoCRImpl" entity-name="TwoCR" abstract="false" lazy="false" table="`twocr`"> + <meta attribute="eclassName">TwoCR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`twocr_main_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.TwoNNImpl" entity-name="TwoNN" abstract="false" lazy="false" table="`twonn`"> + <meta attribute="eclassName">TwoNN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`twonn_main_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relation1ton.impl.TwoNRImpl" entity-name="TwoNR" abstract="false" lazy="false" table="`twonr`"> + <meta attribute="eclassName">TwoNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relation1ton</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="main" entity-name="Main" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`twonr_main_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.test.emf.relation/RelationntomAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/RelationntomAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..a9f95a446 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/RelationntomAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,120 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:21 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relationntom.impl.MainImpl" entity-name="Main" abstract="false" lazy="false" discriminator-value="Main" table="`main`"> + <meta attribute="eclassName">Main</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relationntom</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="multinr" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`main_multinr`"> + <key update="true"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`main_multinr_idx`"/> + <many-to-many entity-name="MultiNR" unique="false"> + <column name="`multinr_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + <list name="multirn" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`main_multirn`"> + <key update="true"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`main_multirn_idx`"/> + <many-to-many entity-name="MultiRN" unique="false"> + <column name="`multirn_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + <list name="multinn" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`main_multinn`"> + <key update="true"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`main_multinn_idx`"/> + <many-to-many entity-name="MultiNN" unique="false"> + <column name="`multinn_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relationntom.impl.MultiNNImpl" entity-name="MultiNN" abstract="false" lazy="false" discriminator-value="MultiNN" table="`multinn`"> + <meta attribute="eclassName">MultiNN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relationntom</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="main" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`multinn_main`"> + <key update="true"> + <column name="`multinn_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`multinn_main_idx`"/> + <many-to-many entity-name="Main" unique="false"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relationntom.impl.MultiNRImpl" entity-name="MultiNR" abstract="false" lazy="false" discriminator-value="MultiNR" table="`multinr`"> + <meta attribute="eclassName">MultiNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relationntom</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="main" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`multinr_main`"> + <key update="true"> + <column name="`multinr_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`multinr_main_idx`"/> + <many-to-many entity-name="Main" unique="false"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relationntom.impl.MultiRNImpl" entity-name="MultiRN" abstract="false" lazy="false" discriminator-value="MultiRN" table="`multirn`"> + <meta attribute="eclassName">MultiRN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relationntom</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="main" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`multirn_main`"> + <key update="true"> + <column name="`multirn_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`multirn_main_idx`"/> + <many-to-many entity-name="Main" unique="false"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </many-to-many> + </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.test.emf.relation/RelationntomAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/RelationntomAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..06c22a5fc --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/RelationntomAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,116 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:25 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relationntom.impl.MainImpl" entity-name="Main" abstract="false" lazy="false" table="`main`"> + <meta attribute="eclassName">Main</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relationntom</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="multinr" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`main_multinr`"> + <key update="true"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`main_multinr_idx`"/> + <many-to-many entity-name="MultiNR" unique="false"> + <column name="`multinr_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + <list name="multirn" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`main_multirn`"> + <key update="true"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`main_multirn_idx`"/> + <many-to-many entity-name="MultiRN" unique="false"> + <column name="`multirn_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + <list name="multinn" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`main_multinn`"> + <key update="true"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`main_multinn_idx`"/> + <many-to-many entity-name="MultiNN" unique="false"> + <column name="`multinn_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relationntom.impl.MultiNNImpl" entity-name="MultiNN" abstract="false" lazy="false" table="`multinn`"> + <meta attribute="eclassName">MultiNN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relationntom</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="main" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`multinn_main`"> + <key update="true"> + <column name="`multinn_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`multinn_main_idx`"/> + <many-to-many entity-name="Main" unique="false"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relationntom.impl.MultiNRImpl" entity-name="MultiNR" abstract="false" lazy="false" table="`multinr`"> + <meta attribute="eclassName">MultiNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relationntom</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="main" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`multinr_main`"> + <key update="true"> + <column name="`multinr_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`multinr_main_idx`"/> + <many-to-many entity-name="Main" unique="false"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relationntom.impl.MultiRNImpl" entity-name="MultiRN" abstract="false" lazy="false" table="`multirn`"> + <meta attribute="eclassName">MultiRN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relationntom</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="main" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`multirn_main`"> + <key update="true"> + <column name="`multirn_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`multirn_main_idx`"/> + <many-to-many entity-name="Main" unique="false"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </many-to-many> + </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.test.emf.relation/RelationntomAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/RelationntomAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..31b1fbdf6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.relation/RelationntomAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,116 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:16 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relationntom.impl.MainImpl" entity-name="Main" abstract="false" lazy="false" table="`main`"> + <meta attribute="eclassName">Main</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relationntom</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <list name="multinr" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`main_multinr`"> + <key update="true"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`main_multinr_idx`"/> + <many-to-many entity-name="MultiNR" unique="false"> + <column name="`multinr_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + <list name="multirn" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`main_multirn`"> + <key update="true"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`main_multirn_idx`"/> + <many-to-many entity-name="MultiRN" unique="false"> + <column name="`multirn_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + <list name="multinn" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`main_multinn`"> + <key update="true"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`main_multinn_idx`"/> + <many-to-many entity-name="MultiNN" unique="false"> + <column name="`multinn_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relationntom.impl.MultiNNImpl" entity-name="MultiNN" abstract="false" lazy="false" table="`multinn`"> + <meta attribute="eclassName">MultiNN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relationntom</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="main" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`multinn_main`"> + <key update="true"> + <column name="`multinn_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`multinn_main_idx`"/> + <many-to-many entity-name="Main" unique="false"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relationntom.impl.MultiNRImpl" entity-name="MultiNR" abstract="false" lazy="false" table="`multinr`"> + <meta attribute="eclassName">MultiNR</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relationntom</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="main" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`multinr_main`"> + <key update="true"> + <column name="`multinr_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`multinr_main_idx`"/> + <many-to-many entity-name="Main" unique="false"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.relation.relationntom.impl.MultiRNImpl" entity-name="MultiRN" abstract="false" lazy="false" table="`multirn`"> + <meta attribute="eclassName">MultiRN</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/relation/relationntom</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="main" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`multirn_main`"> + <key update="true"> + <column name="`multirn_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`multirn_main_idx`"/> + <many-to-many entity-name="Main" unique="false"> + <column name="`main_e_id`" not-null="true" unique="false"/> + </many-to-many> + </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.test.emf.sample/CatalogResourceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CatalogResourceAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..fba999fac --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CatalogResourceAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,112 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:45 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.CatalogTypeImpl" entity-name="CatalogType" abstract="false" lazy="false" discriminator-value="CatalogType" table="`catalogtype`"> + <meta attribute="eclassName">CatalogType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="subCatalog" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`catalogtype_subcatalog_name`" not-null="false" unique="false"/> + </key> + <list-index column="`catalogtype_subcatalog_idx`"/> + <one-to-many entity-name="CatalogType"/> + </list> + <list name="product" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`catalogtype_product_name`" not-null="false" unique="false"/> + </key> + <list-index column="`catalogtype_product_idx`"/> + <one-to-many entity-name="ProductType"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.PriceTypeImpl" entity-name="PriceType" abstract="false" lazy="false" discriminator-value="PriceType" table="`pricetype`"> + <meta attribute="eclassName">PriceType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="quantityTo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`quantityto`"/> + </property> + <many-to-one name="supplier" entity-name="SupplierType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" discriminator-value="ProductType" table="`producttype`"> + <meta attribute="eclassName">ProductType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id name="code" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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> + <list name="remark" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`producttype_remark_code`" not-null="false" unique="false"/> + </key> + <list-index column="`producttype_remark_idx`"/> + <one-to-many entity-name="StringType"/> + </list> + <many-to-one name="price" entity-name="PriceType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`pricetype_price_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.StringTypeImpl" entity-name="StringType" abstract="false" lazy="false" discriminator-value="StringType" table="`stringtype`"> + <meta attribute="eclassName">StringType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" discriminator-value="SupplierType" table="`suppliertype`"> + <meta attribute="eclassName">SupplierType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`noofemployees`"/> + </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.test.emf.sample/CatalogResourceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CatalogResourceAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..956849209 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CatalogResourceAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,107 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:28 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.CatalogTypeImpl" entity-name="CatalogType" abstract="false" lazy="false" table="`catalogtype`"> + <meta attribute="eclassName">CatalogType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="subCatalog" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`catalogtype_subcatalog_name`" not-null="false" unique="false"/> + </key> + <list-index column="`catalogtype_subcatalog_idx`"/> + <one-to-many entity-name="CatalogType"/> + </list> + <list name="product" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`catalogtype_product_name`" not-null="false" unique="false"/> + </key> + <list-index column="`catalogtype_product_idx`"/> + <one-to-many entity-name="ProductType"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.PriceTypeImpl" entity-name="PriceType" abstract="false" lazy="false" table="`pricetype`"> + <meta attribute="eclassName">PriceType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="quantityTo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`quantityto`"/> + </property> + <many-to-one name="supplier" entity-name="SupplierType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" table="`producttype`"> + <meta attribute="eclassName">ProductType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id name="code" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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> + <list name="remark" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`producttype_remark_code`" not-null="false" unique="false"/> + </key> + <list-index column="`producttype_remark_idx`"/> + <one-to-many entity-name="StringType"/> + </list> + <many-to-one name="price" entity-name="PriceType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`pricetype_price_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.StringTypeImpl" entity-name="StringType" abstract="false" lazy="false" table="`stringtype`"> + <meta attribute="eclassName">StringType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" table="`suppliertype`"> + <meta attribute="eclassName">SupplierType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`noofemployees`"/> + </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.test.emf.sample/CatalogResourceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CatalogResourceAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..27af988f5 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CatalogResourceAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,107 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:08 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.CatalogTypeImpl" entity-name="CatalogType" abstract="false" lazy="false" table="`catalogtype`"> + <meta attribute="eclassName">CatalogType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="subCatalog" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`catalogtype_subcatalog_name`" not-null="false" unique="false"/> + </key> + <list-index column="`catalogtype_subcatalog_idx`"/> + <one-to-many entity-name="CatalogType"/> + </list> + <list name="product" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`catalogtype_product_name`" not-null="false" unique="false"/> + </key> + <list-index column="`catalogtype_product_idx`"/> + <one-to-many entity-name="ProductType"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.PriceTypeImpl" entity-name="PriceType" abstract="false" lazy="false" table="`pricetype`"> + <meta attribute="eclassName">PriceType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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="quantityTo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`quantityto`"/> + </property> + <many-to-one name="supplier" entity-name="SupplierType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" table="`producttype`"> + <meta attribute="eclassName">ProductType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id name="code" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="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> + <list name="remark" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`producttype_remark_code`" not-null="false" unique="false"/> + </key> + <list-index column="`producttype_remark_idx`"/> + <one-to-many entity-name="StringType"/> + </list> + <many-to-one name="price" entity-name="PriceType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`pricetype_price_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.StringTypeImpl" entity-name="StringType" abstract="false" lazy="false" table="`stringtype`"> + <meta attribute="eclassName">StringType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`value`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" table="`suppliertype`"> + <meta attribute="eclassName">SupplierType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`noofemployees`"/> + </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.test.emf.sample/DynamicAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/DynamicAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..671a06e80 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/DynamicAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:26 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.dynamic.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/dynamic</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`person_group_idx`"/> + <one-to-many entity-name="Person_group"/> + </list> + </class> + <class entity-name="Person_group" lazy="false" table="`person_group`"> + <meta attribute="featureMap">Person</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`age`"/> + </property> + <property name="length" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`length`"/> + </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.test.emf.sample/DynamicAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/DynamicAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..9c5b588eb --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/DynamicAction_mysql_e_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:05 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.dynamic.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/dynamic</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`person_group_idx`"/> + <one-to-many entity-name="Person_group"/> + </list> + </class> + <class entity-name="Person_group" lazy="false" table="`person_group`"> + <meta attribute="featureMap">Person</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`age`"/> + </property> + <property name="length" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`length`"/> + </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.test.emf.sample/DynamicAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/DynamicAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..07053fda5 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/DynamicAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:40 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.dynamic.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/dynamic</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`person_group_idx`"/> + <one-to-many entity-name="Person_group"/> + </list> + </class> + <class entity-name="Person_group" lazy="false" table="`person_group`"> + <meta attribute="featureMap">Person</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`age`"/> + </property> + <property name="length" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`length`"/> + </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.test.emf.sample/EcoreAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..b0981b2b7 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,560 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:21 CEST 2007 --> +<hibernate-mapping> + <typedef name="ecore.EDiagnosticChain" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EDiagnosticChain</param> + </typedef> + <typedef name="ecore.EEList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EEList</param> + </typedef> + <typedef name="ecore.EEnumerator" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EEnumerator</param> + </typedef> + <typedef name="ecore.EFeatureMap" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EFeatureMap</param> + </typedef> + <typedef name="ecore.EFeatureMapEntry" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EFeatureMapEntry</param> + </typedef> + <typedef name="ecore.EMap" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EMap</param> + </typedef> + <typedef name="ecore.EResource" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EResource</param> + </typedef> + <typedef name="ecore.EResourceSet" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EResourceSet</param> + </typedef> + <typedef name="ecore.ETreeIterator" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">ETreeIterator</param> + </typedef> + <typedef name="type.ENTITIES" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">ENTITIES</param> + </typedef> + <typedef name="type.ENTITIESBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">ENTITIESBase</param> + </typedef> + <typedef name="type.IDREFS" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">IDREFS</param> + </typedef> + <typedef name="type.IDREFSBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">IDREFSBase</param> + </typedef> + <typedef name="type.NMTOKENS" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">NMTOKENS</param> + </typedef> + <typedef name="type.NMTOKENSBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">NMTOKENSBase</param> + </typedef> + <class entity-name="ecore_EObject" abstract="false" lazy="false" discriminator-value="ecore_EObject" table="`ecore_eobject`"> + <meta attribute="eclassName">EObject</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <subclass entity-name="EModelElement" abstract="true" lazy="false" extends="ecore_EObject" discriminator-value="EModelElement"> + <meta attribute="eclassName">EModelElement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <list name="eAnnotations" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eannotation_emodelelement_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`emodelelement_eannotations_idx`"/> + <one-to-many entity-name="EAnnotation"/> + </list> + </subclass> + <subclass entity-name="ENamedElement" abstract="true" lazy="false" extends="EModelElement" discriminator-value="ENamedElement"> + <meta attribute="eclassName">ENamedElement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <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> + </subclass> + <subclass entity-name="ETypedElement" abstract="true" lazy="false" extends="ENamedElement" discriminator-value="ETypedElement"> + <meta attribute="eclassName">ETypedElement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <property name="ordered" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`ordered`"/> + </property> + <property name="unique" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`unique`"/> + </property> + <property name="lowerBound" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`lowerbound`"/> + </property> + <property name="upperBound" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`upperbound`"/> + </property> + </subclass> + <subclass entity-name="EStructuralFeature" abstract="true" lazy="false" extends="ETypedElement" discriminator-value="EStructuralFeature"> + <meta attribute="eclassName">EStructuralFeature</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <property name="changeable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`changeable`"/> + </property> + <property name="volatile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`volatile`"/> + </property> + <property name="transient" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`transient`"/> + </property> + <property name="defaultValueLiteral" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`defaultvalueliteral`"/> + </property> + <property name="unsettable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`unsettable`"/> + </property> + <property name="derived" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`derived`"/> + </property> + <many-to-one name="eContainingClass" entity-name="EClass" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`estructuralfeature_econtainingclass_e_id`"/> + </many-to-one> + </subclass> + <subclass entity-name="EAttribute" abstract="false" lazy="false" extends="EStructuralFeature" discriminator-value="EAttribute"> + <meta attribute="eclassName">EAttribute</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <property name="iD" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`id`"/> + </property> + </subclass> + <subclass entity-name="EAnnotation" abstract="false" lazy="false" extends="EModelElement" discriminator-value="EAnnotation"> + <meta attribute="eclassName">EAnnotation</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <property name="source" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`source`"/> + </property> + <map name="details" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eannotation_details_e_id`" not-null="false" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <element type="java.lang.String"/> + </map> + <many-to-one name="eModelElement" entity-name="EModelElement" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eannotation_emodelelement_e_id`"/> + </many-to-one> + <list name="contents" table="`eannotation_contents`" lazy="true" cascade="all,delete-orphan"> + <key/> + <list-index column="`eannotation_contents_idx`"/> + <many-to-any id-type="long"> + <column not-null="true" unique="false" name="`contents_type`"/> + <column not-null="true" unique="false" name="`contents_id`"/> + </many-to-any> + </list> + <list name="references" table="`eannotation_references`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key/> + <list-index column="`eannotation_references_idx`"/> + <many-to-any id-type="long"> + <column not-null="true" unique="false" name="`references_type`"/> + <column not-null="true" unique="false" name="`references_id`"/> + </many-to-any> + </list> + </subclass> + <subclass entity-name="EClassifier" abstract="true" lazy="false" extends="ENamedElement" discriminator-value="EClassifier"> + <meta attribute="eclassName">EClassifier</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <many-to-one name="ePackage" entity-name="EPackage" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eclassifier_epackage_e_id`"/> + </many-to-one> + <list name="eTypeParameters" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eclassifier_etypeparameters_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclassifier_etypeparameters_idx`"/> + <one-to-many entity-name="ETypeParameter"/> + </list> + </subclass> + <subclass entity-name="EClass" abstract="false" lazy="false" extends="EClassifier" discriminator-value="EClass"> + <meta attribute="eclassName">EClass</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <property name="abstract" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`abstract`"/> + </property> + <property name="interface" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`interface`"/> + </property> + <list name="eSuperTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`eclass_esupertypes_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclass_esupertypes_idx`"/> + <one-to-many entity-name="EClass"/> + </list> + <list name="eOperations" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eoperation_econtainingclass_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclass_eoperations_idx`"/> + <one-to-many entity-name="EOperation"/> + </list> + <list name="eStructuralFeatures" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`estructuralfeature_econtainingclass_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclass_estructuralfeatures_idx`"/> + <one-to-many entity-name="EStructuralFeature"/> + </list> + <list name="eGenericSuperTypes" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eclass_egenericsupertypes_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclass_egenericsupertypes_idx`"/> + <one-to-many entity-name="EGenericType"/> + </list> + </subclass> + <subclass entity-name="EDataType" abstract="false" lazy="false" extends="EClassifier" discriminator-value="EDataType"> + <meta attribute="eclassName">EDataType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <property name="serializable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`serializable`"/> + </property> + </subclass> + <subclass entity-name="EEnum" abstract="false" lazy="false" extends="EDataType" discriminator-value="EEnum"> + <meta attribute="eclassName">EEnum</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <list name="eLiterals" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eenumliteral_eenum_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eenum_eliterals_idx`"/> + <one-to-many entity-name="EEnumLiteral"/> + </list> + </subclass> + <subclass entity-name="EEnumLiteral" abstract="false" lazy="false" extends="ENamedElement" discriminator-value="EEnumLiteral"> + <meta attribute="eclassName">EEnumLiteral</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`value`"/> + </property> + <property name="literal" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`literal`"/> + </property> + <many-to-one name="eEnum" entity-name="EEnum" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eenumliteral_eenum_e_id`"/> + </many-to-one> + </subclass> + <subclass entity-name="EFactory" abstract="false" lazy="false" extends="EModelElement" discriminator-value="EFactory"> + <meta attribute="eclassName">EFactory</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + </subclass> + <subclass entity-name="EOperation" abstract="false" lazy="false" extends="ETypedElement" discriminator-value="EOperation"> + <meta attribute="eclassName">EOperation</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <many-to-one name="eContainingClass" entity-name="EClass" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eoperation_econtainingclass_e_id`"/> + </many-to-one> + <list name="eTypeParameters" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eoperation_etypeparameters_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eoperation_etypeparameters_idx`"/> + <one-to-many entity-name="ETypeParameter"/> + </list> + <list name="eParameters" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eparameter_eoperation_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eoperation_eparameters_idx`"/> + <one-to-many entity-name="EParameter"/> + </list> + <list name="eExceptions" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`eoperation_eexceptions_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eoperation_eexceptions_idx`"/> + <one-to-many entity-name="EClassifier"/> + </list> + <list name="eGenericExceptions" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eoperation_egenericexceptions_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eoperation_egenericexceptions_idx`"/> + <one-to-many entity-name="EGenericType"/> + </list> + </subclass> + <subclass entity-name="EPackage" abstract="false" lazy="false" extends="ENamedElement" discriminator-value="EPackage"> + <meta attribute="eclassName">EPackage</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <property name="nsURI" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`nsuri`"/> + </property> + <property name="nsPrefix" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`nsprefix`"/> + </property> + <list name="eClassifiers" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eclassifier_epackage_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`epackage_eclassifiers_idx`"/> + <one-to-many entity-name="EClassifier"/> + </list> + <list name="eSubpackages" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`epackage_esuperpackage_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`epackage_esubpackages_idx`"/> + <one-to-many entity-name="EPackage"/> + </list> + <many-to-one name="eSuperPackage" entity-name="EPackage" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`epackage_esuperpackage_e_id`"/> + </many-to-one> + </subclass> + <subclass entity-name="EParameter" abstract="false" lazy="false" extends="ETypedElement" discriminator-value="EParameter"> + <meta attribute="eclassName">EParameter</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <many-to-one name="eOperation" entity-name="EOperation" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eparameter_eoperation_e_id`"/> + </many-to-one> + </subclass> + <subclass entity-name="EReference" abstract="false" lazy="false" extends="EStructuralFeature" discriminator-value="EReference"> + <meta attribute="eclassName">EReference</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <property name="containment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`containment`"/> + </property> + <property name="resolveProxies" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`resolveproxies`"/> + </property> + <many-to-one name="eOpposite" entity-name="EReference" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`ereference_eopposite_e_id`"/> + </many-to-one> + <list name="eKeys" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`ereference_ekeys_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`ereference_ekeys_idx`"/> + <one-to-many entity-name="EAttribute"/> + </list> + </subclass> + <subclass entity-name="EGenericType" abstract="false" lazy="false" extends="ecore_EObject" discriminator-value="EGenericType"> + <meta attribute="eclassName">EGenericType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <many-to-one name="eUpperBound" entity-name="EGenericType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`egenerictype_eupperbound_e_id`"/> + </many-to-one> + <list name="eTypeArguments" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`egenerictype_etypearguments_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`egenerictype_etypearguments_idx`"/> + <one-to-many entity-name="EGenericType"/> + </list> + <many-to-one name="eLowerBound" entity-name="EGenericType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`egenerictype_elowerbound_e_id`"/> + </many-to-one> + <many-to-one name="eTypeParameter" entity-name="ETypeParameter" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`etypeparameter_etypeparameter_e_id`"/> + </many-to-one> + <many-to-one name="eClassifier" entity-name="EClassifier" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`eclassifier_eclassifier_e_id`"/> + </many-to-one> + </subclass> + <subclass entity-name="ETypeParameter" abstract="false" lazy="false" extends="ENamedElement" discriminator-value="ETypeParameter"> + <meta attribute="eclassName">ETypeParameter</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <list name="eBounds" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`etypeparameter_ebounds_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`etypeparameter_ebounds_idx`"/> + <one-to-many entity-name="EGenericType"/> + </list> + </subclass> + <class entity-name="AnyType" abstract="false" lazy="false" discriminator-value="AnyType" table="`anytype`"> + <meta attribute="eclassName">AnyType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_mixed_idx`"/> + <one-to-many entity-name="AnyType_mixed"/> + </list> + <list name="anyAttribute" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_anyattribute_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_anyattribute_idx`"/> + <one-to-many entity-name="AnyType_anyAttribute"/> + </list> + </class> + <class entity-name="AnyType_mixed" lazy="false" table="`anytype_mixed`"> + <meta attribute="featureMap">AnyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="any" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_any_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_any_idx`"/> + <one-to-many entity-name="AnyType_any"/> + </list> + <list name="anyAttribute" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_anyattribute_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_anyattribute_idx`"/> + <one-to-many entity-name="AnyType_anyAttribute"/> + </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="AnyType_anyAttribute" lazy="false" table="`anytype_anyattribute`"> + <meta attribute="featureMap">AnyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + </class> + <class entity-name="AnyType_any" lazy="false" table="`anytype_any`"> + <meta attribute="featureMap">AnyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_mixed_idx`"/> + <one-to-many entity-name="AnyType_mixed"/> + </list> + <list name="anyAttribute" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_anyattribute_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_anyattribute_idx`"/> + <one-to-many entity-name="AnyType_anyAttribute"/> + </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="ProcessingInstruction" abstract="false" lazy="false" discriminator-value="ProcessingInstruction" table="`processinginstruction`"> + <meta attribute="eclassName">ProcessingInstruction</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="data" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`data`"/> + </property> + <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> + <subclass entity-name="SimpleAnyType" abstract="false" lazy="false" extends="AnyType" discriminator-value="SimpleAnyType"> + <meta attribute="eclassName">SimpleAnyType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> + <many-to-one name="instanceType" entity-name="EDataType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`edatatype_instancetype_e_id`"/> + </many-to-one> + </subclass> + <class entity-name="XMLTypeDocumentRoot" abstract="false" lazy="false" discriminator-value="XMLTypeDocumentRoot" table="`xmltypedocumentroot`"> + <meta attribute="eclassName">XMLTypeDocumentRoot</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`xmltypedocumentroot_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`xmltypedocumentroot_mixed_idx`"/> + <one-to-many entity-name="XMLTypeDocumentRoot_mixed"/> + </list> + </class> + <class entity-name="XMLTypeDocumentRoot_mixed" lazy="false" table="`xmltypedocumentroot_mixed`"> + <meta attribute="featureMap">XMLTypeDocumentRoot</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">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="`xmltypedocumentroot_xmlnsprefixmap_e_id`" not-null="false" 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="`xmltypedocumentroot_xsischemalocation_e_id`" not-null="false" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <element type="java.lang.String"/> + </map> + <property name="cDATA" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`cdata`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <many-to-one name="processingInstruction" entity-name="ProcessingInstruction" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`processinginstruction_processinginstruction_e_id`"/> + </many-to-one> + <property name="text" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`text`"/> + </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> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..5f3b9accf --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,613 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:58 CEST 2007 --> +<hibernate-mapping> + <typedef name="ecore.EDiagnosticChain" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EDiagnosticChain</param> + </typedef> + <typedef name="ecore.EEList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EEList</param> + </typedef> + <typedef name="ecore.EEnumerator" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EEnumerator</param> + </typedef> + <typedef name="ecore.EFeatureMap" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EFeatureMap</param> + </typedef> + <typedef name="ecore.EFeatureMapEntry" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EFeatureMapEntry</param> + </typedef> + <typedef name="ecore.EMap" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EMap</param> + </typedef> + <typedef name="ecore.EResource" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EResource</param> + </typedef> + <typedef name="ecore.EResourceSet" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EResourceSet</param> + </typedef> + <typedef name="ecore.ETreeIterator" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">ETreeIterator</param> + </typedef> + <typedef name="type.ENTITIES" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">ENTITIES</param> + </typedef> + <typedef name="type.ENTITIESBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">ENTITIESBase</param> + </typedef> + <typedef name="type.IDREFS" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">IDREFS</param> + </typedef> + <typedef name="type.IDREFSBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">IDREFSBase</param> + </typedef> + <typedef name="type.NMTOKENS" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">NMTOKENS</param> + </typedef> + <typedef name="type.NMTOKENSBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">NMTOKENSBase</param> + </typedef> + <class entity-name="ecore_EObject" abstract="false" lazy="false" table="`ecore_eobject`"> + <meta attribute="eclassName">EObject</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass entity-name="EModelElement" abstract="true" lazy="false" extends="ecore_EObject" table="`emodelelement`"> + <meta attribute="eclassName">EModelElement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`eobject_e_id`"/> + </key> + <list name="eAnnotations" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eannotation_emodelelement_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`emodelelement_eannotations_idx`"/> + <one-to-many entity-name="EAnnotation"/> + </list> + </joined-subclass> + <joined-subclass entity-name="ENamedElement" abstract="true" lazy="false" extends="EModelElement" table="`enamedelement`"> + <meta attribute="eclassName">ENamedElement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`emodelelement_e_id`"/> + </key> + <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> + </joined-subclass> + <joined-subclass entity-name="ETypedElement" abstract="true" lazy="false" extends="ENamedElement" table="`etypedelement`"> + <meta attribute="eclassName">ETypedElement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`enamedelement_e_id`"/> + </key> + <property name="ordered" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`ordered`"/> + </property> + <property name="unique" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`unique`"/> + </property> + <property name="lowerBound" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`lowerbound`"/> + </property> + <property name="upperBound" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`upperbound`"/> + </property> + </joined-subclass> + <joined-subclass entity-name="EStructuralFeature" abstract="true" lazy="false" extends="ETypedElement" table="`estructuralfeature`"> + <meta attribute="eclassName">EStructuralFeature</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`etypedelement_e_id`"/> + </key> + <property name="changeable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`changeable`"/> + </property> + <property name="volatile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`volatile`"/> + </property> + <property name="transient" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`transient`"/> + </property> + <property name="defaultValueLiteral" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`defaultvalueliteral`"/> + </property> + <property name="unsettable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`unsettable`"/> + </property> + <property name="derived" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`derived`"/> + </property> + <many-to-one name="eContainingClass" entity-name="EClass" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`estructuralfeature_econtainingclass_e_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass entity-name="EAttribute" abstract="false" lazy="false" extends="EStructuralFeature" table="`eattribute`"> + <meta attribute="eclassName">EAttribute</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`estructuralfeature_e_id`"/> + </key> + <property name="iD" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`id`"/> + </property> + </joined-subclass> + <joined-subclass entity-name="EAnnotation" abstract="false" lazy="false" extends="EModelElement" table="`eannotation`"> + <meta attribute="eclassName">EAnnotation</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`emodelelement_e_id`"/> + </key> + <property name="source" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`source`"/> + </property> + <map name="details" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eannotation_details_e_id`" not-null="false" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <element type="java.lang.String"/> + </map> + <many-to-one name="eModelElement" entity-name="EModelElement" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eannotation_emodelelement_e_id`"/> + </many-to-one> + <list name="contents" table="`eannotation_contents`" lazy="true" cascade="all,delete-orphan"> + <key/> + <list-index column="`eannotation_contents_idx`"/> + <many-to-any id-type="long"> + <column not-null="true" unique="false" name="`contents_type`"/> + <column not-null="true" unique="false" name="`contents_id`"/> + </many-to-any> + </list> + <list name="references" table="`eannotation_references`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key/> + <list-index column="`eannotation_references_idx`"/> + <many-to-any id-type="long"> + <column not-null="true" unique="false" name="`references_type`"/> + <column not-null="true" unique="false" name="`references_id`"/> + </many-to-any> + </list> + </joined-subclass> + <joined-subclass entity-name="EClassifier" abstract="true" lazy="false" extends="ENamedElement" table="`eclassifier`"> + <meta attribute="eclassName">EClassifier</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`enamedelement_e_id`"/> + </key> + <many-to-one name="ePackage" entity-name="EPackage" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eclassifier_epackage_e_id`"/> + </many-to-one> + <list name="eTypeParameters" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eclassifier_etypeparameters_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclassifier_etypeparameters_idx`"/> + <one-to-many entity-name="ETypeParameter"/> + </list> + </joined-subclass> + <joined-subclass entity-name="EClass" abstract="false" lazy="false" extends="EClassifier" table="`eclass`"> + <meta attribute="eclassName">EClass</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`eclassifier_e_id`"/> + </key> + <property name="abstract" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`abstract`"/> + </property> + <property name="interface" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`interface`"/> + </property> + <list name="eSuperTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`eclass_esupertypes_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclass_esupertypes_idx`"/> + <one-to-many entity-name="EClass"/> + </list> + <list name="eOperations" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eoperation_econtainingclass_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclass_eoperations_idx`"/> + <one-to-many entity-name="EOperation"/> + </list> + <list name="eStructuralFeatures" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`estructuralfeature_econtainingclass_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclass_estructuralfeatures_idx`"/> + <one-to-many entity-name="EStructuralFeature"/> + </list> + <list name="eGenericSuperTypes" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eclass_egenericsupertypes_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclass_egenericsupertypes_idx`"/> + <one-to-many entity-name="EGenericType"/> + </list> + </joined-subclass> + <joined-subclass entity-name="EDataType" abstract="false" lazy="false" extends="EClassifier" table="`edatatype`"> + <meta attribute="eclassName">EDataType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`eclassifier_e_id`"/> + </key> + <property name="serializable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`serializable`"/> + </property> + </joined-subclass> + <joined-subclass entity-name="EEnum" abstract="false" lazy="false" extends="EDataType" table="`eenum`"> + <meta attribute="eclassName">EEnum</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`edatatype_e_id`"/> + </key> + <list name="eLiterals" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eenumliteral_eenum_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eenum_eliterals_idx`"/> + <one-to-many entity-name="EEnumLiteral"/> + </list> + </joined-subclass> + <joined-subclass entity-name="EEnumLiteral" abstract="false" lazy="false" extends="ENamedElement" table="`eenumliteral`"> + <meta attribute="eclassName">EEnumLiteral</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`enamedelement_e_id`"/> + </key> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`value`"/> + </property> + <property name="literal" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`literal`"/> + </property> + <many-to-one name="eEnum" entity-name="EEnum" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eenumliteral_eenum_e_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass entity-name="EFactory" abstract="false" lazy="false" extends="EModelElement" table="`efactory`"> + <meta attribute="eclassName">EFactory</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`emodelelement_e_id`"/> + </key> + </joined-subclass> + <joined-subclass entity-name="EOperation" abstract="false" lazy="false" extends="ETypedElement" table="`eoperation`"> + <meta attribute="eclassName">EOperation</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`etypedelement_e_id`"/> + </key> + <many-to-one name="eContainingClass" entity-name="EClass" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eoperation_econtainingclass_e_id`"/> + </many-to-one> + <list name="eTypeParameters" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eoperation_etypeparameters_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eoperation_etypeparameters_idx`"/> + <one-to-many entity-name="ETypeParameter"/> + </list> + <list name="eParameters" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eparameter_eoperation_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eoperation_eparameters_idx`"/> + <one-to-many entity-name="EParameter"/> + </list> + <list name="eExceptions" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`eoperation_eexceptions_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eoperation_eexceptions_idx`"/> + <one-to-many entity-name="EClassifier"/> + </list> + <list name="eGenericExceptions" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eoperation_egenericexceptions_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eoperation_egenericexceptions_idx`"/> + <one-to-many entity-name="EGenericType"/> + </list> + </joined-subclass> + <joined-subclass entity-name="EPackage" abstract="false" lazy="false" extends="ENamedElement" table="`epackage`"> + <meta attribute="eclassName">EPackage</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`enamedelement_e_id`"/> + </key> + <property name="nsURI" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`nsuri`"/> + </property> + <property name="nsPrefix" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`nsprefix`"/> + </property> + <list name="eClassifiers" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eclassifier_epackage_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`epackage_eclassifiers_idx`"/> + <one-to-many entity-name="EClassifier"/> + </list> + <list name="eSubpackages" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`epackage_esuperpackage_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`epackage_esubpackages_idx`"/> + <one-to-many entity-name="EPackage"/> + </list> + <many-to-one name="eSuperPackage" entity-name="EPackage" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`epackage_esuperpackage_e_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass entity-name="EParameter" abstract="false" lazy="false" extends="ETypedElement" table="`eparameter`"> + <meta attribute="eclassName">EParameter</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`etypedelement_e_id`"/> + </key> + <many-to-one name="eOperation" entity-name="EOperation" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eparameter_eoperation_e_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass entity-name="EReference" abstract="false" lazy="false" extends="EStructuralFeature" table="`ereference`"> + <meta attribute="eclassName">EReference</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`estructuralfeature_e_id`"/> + </key> + <property name="containment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`containment`"/> + </property> + <property name="resolveProxies" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`resolveproxies`"/> + </property> + <many-to-one name="eOpposite" entity-name="EReference" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`ereference_eopposite_e_id`"/> + </many-to-one> + <list name="eKeys" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`ereference_ekeys_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`ereference_ekeys_idx`"/> + <one-to-many entity-name="EAttribute"/> + </list> + </joined-subclass> + <joined-subclass entity-name="EGenericType" abstract="false" lazy="false" extends="ecore_EObject" table="`egenerictype`"> + <meta attribute="eclassName">EGenericType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`eobject_e_id`"/> + </key> + <many-to-one name="eUpperBound" entity-name="EGenericType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`egenerictype_eupperbound_e_id`"/> + </many-to-one> + <list name="eTypeArguments" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`egenerictype_etypearguments_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`egenerictype_etypearguments_idx`"/> + <one-to-many entity-name="EGenericType"/> + </list> + <many-to-one name="eLowerBound" entity-name="EGenericType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`egenerictype_elowerbound_e_id`"/> + </many-to-one> + <many-to-one name="eTypeParameter" entity-name="ETypeParameter" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`etypeparameter_etypeparameter_e_id`"/> + </many-to-one> + <many-to-one name="eClassifier" entity-name="EClassifier" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`eclassifier_eclassifier_e_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass entity-name="ETypeParameter" abstract="false" lazy="false" extends="ENamedElement" table="`etypeparameter`"> + <meta attribute="eclassName">ETypeParameter</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`enamedelement_e_id`"/> + </key> + <list name="eBounds" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`etypeparameter_ebounds_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`etypeparameter_ebounds_idx`"/> + <one-to-many entity-name="EGenericType"/> + </list> + </joined-subclass> + <class entity-name="AnyType" abstract="false" lazy="false" table="`anytype`"> + <meta attribute="eclassName">AnyType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_mixed_idx`"/> + <one-to-many entity-name="AnyType_mixed"/> + </list> + <list name="anyAttribute" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_anyattribute_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_anyattribute_idx`"/> + <one-to-many entity-name="AnyType_anyAttribute"/> + </list> + </class> + <class entity-name="AnyType_mixed" lazy="false" table="`anytype_mixed`"> + <meta attribute="featureMap">AnyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="any" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_any_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_any_idx`"/> + <one-to-many entity-name="AnyType_any"/> + </list> + <list name="anyAttribute" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_anyattribute_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_anyattribute_idx`"/> + <one-to-many entity-name="AnyType_anyAttribute"/> + </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="AnyType_anyAttribute" lazy="false" table="`anytype_anyattribute`"> + <meta attribute="featureMap">AnyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + </class> + <class entity-name="AnyType_any" lazy="false" table="`anytype_any`"> + <meta attribute="featureMap">AnyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_mixed_idx`"/> + <one-to-many entity-name="AnyType_mixed"/> + </list> + <list name="anyAttribute" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_anyattribute_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_anyattribute_idx`"/> + <one-to-many entity-name="AnyType_anyAttribute"/> + </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="ProcessingInstruction" abstract="false" lazy="false" table="`processinginstruction`"> + <meta attribute="eclassName">ProcessingInstruction</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="data" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`data`"/> + </property> + <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> + <joined-subclass entity-name="SimpleAnyType" abstract="false" lazy="false" extends="AnyType" table="`simpleanytype`"> + <meta attribute="eclassName">SimpleAnyType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> + <key> + <column name="`anytype_e_id`"/> + </key> + <many-to-one name="instanceType" entity-name="EDataType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`edatatype_instancetype_e_id`"/> + </many-to-one> + </joined-subclass> + <class entity-name="XMLTypeDocumentRoot" abstract="false" lazy="false" table="`xmltypedocumentroot`"> + <meta attribute="eclassName">XMLTypeDocumentRoot</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`xmltypedocumentroot_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`xmltypedocumentroot_mixed_idx`"/> + <one-to-many entity-name="XMLTypeDocumentRoot_mixed"/> + </list> + </class> + <class entity-name="XMLTypeDocumentRoot_mixed" lazy="false" table="`xmltypedocumentroot_mixed`"> + <meta attribute="featureMap">XMLTypeDocumentRoot</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">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="`xmltypedocumentroot_xmlnsprefixmap_e_id`" not-null="false" 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="`xmltypedocumentroot_xsischemalocation_e_id`" not-null="false" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <element type="java.lang.String"/> + </map> + <property name="cDATA" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`cdata`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <many-to-one name="processingInstruction" entity-name="ProcessingInstruction" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`processinginstruction_processinginstruction_e_id`"/> + </many-to-one> + <property name="text" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`text`"/> + </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> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..a938b7daa --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,613 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:33 CEST 2007 --> +<hibernate-mapping> + <typedef name="ecore.EDiagnosticChain" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EDiagnosticChain</param> + </typedef> + <typedef name="ecore.EEList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EEList</param> + </typedef> + <typedef name="ecore.EEnumerator" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EEnumerator</param> + </typedef> + <typedef name="ecore.EFeatureMap" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EFeatureMap</param> + </typedef> + <typedef name="ecore.EFeatureMapEntry" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EFeatureMapEntry</param> + </typedef> + <typedef name="ecore.EMap" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EMap</param> + </typedef> + <typedef name="ecore.EResource" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EResource</param> + </typedef> + <typedef name="ecore.EResourceSet" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">EResourceSet</param> + </typedef> + <typedef name="ecore.ETreeIterator" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> + <param name="edatatype">ETreeIterator</param> + </typedef> + <typedef name="type.ENTITIES" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">ENTITIES</param> + </typedef> + <typedef name="type.ENTITIESBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">ENTITIESBase</param> + </typedef> + <typedef name="type.IDREFS" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">IDREFS</param> + </typedef> + <typedef name="type.IDREFSBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">IDREFSBase</param> + </typedef> + <typedef name="type.NMTOKENS" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">NMTOKENS</param> + </typedef> + <typedef name="type.NMTOKENSBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> + <param name="edatatype">NMTOKENSBase</param> + </typedef> + <class entity-name="ecore_EObject" abstract="false" lazy="false" table="`ecore_eobject`"> + <meta attribute="eclassName">EObject</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass entity-name="EModelElement" abstract="true" lazy="false" extends="ecore_EObject" table="`emodelelement`"> + <meta attribute="eclassName">EModelElement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`eobject_e_id`"/> + </key> + <list name="eAnnotations" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eannotation_emodelelement_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`emodelelement_eannotations_idx`"/> + <one-to-many entity-name="EAnnotation"/> + </list> + </joined-subclass> + <joined-subclass entity-name="ENamedElement" abstract="true" lazy="false" extends="EModelElement" table="`enamedelement`"> + <meta attribute="eclassName">ENamedElement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`emodelelement_e_id`"/> + </key> + <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> + </joined-subclass> + <joined-subclass entity-name="ETypedElement" abstract="true" lazy="false" extends="ENamedElement" table="`etypedelement`"> + <meta attribute="eclassName">ETypedElement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`enamedelement_e_id`"/> + </key> + <property name="ordered" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`ordered`"/> + </property> + <property name="unique" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`unique`"/> + </property> + <property name="lowerBound" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`lowerbound`"/> + </property> + <property name="upperBound" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`upperbound`"/> + </property> + </joined-subclass> + <joined-subclass entity-name="EStructuralFeature" abstract="true" lazy="false" extends="ETypedElement" table="`estructuralfeature`"> + <meta attribute="eclassName">EStructuralFeature</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`etypedelement_e_id`"/> + </key> + <property name="changeable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`changeable`"/> + </property> + <property name="volatile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`volatile`"/> + </property> + <property name="transient" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`transient`"/> + </property> + <property name="defaultValueLiteral" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`defaultvalueliteral`"/> + </property> + <property name="unsettable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`unsettable`"/> + </property> + <property name="derived" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`derived`"/> + </property> + <many-to-one name="eContainingClass" entity-name="EClass" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`estructuralfeature_econtainingclass_e_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass entity-name="EAttribute" abstract="false" lazy="false" extends="EStructuralFeature" table="`eattribute`"> + <meta attribute="eclassName">EAttribute</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`estructuralfeature_e_id`"/> + </key> + <property name="iD" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`id`"/> + </property> + </joined-subclass> + <joined-subclass entity-name="EAnnotation" abstract="false" lazy="false" extends="EModelElement" table="`eannotation`"> + <meta attribute="eclassName">EAnnotation</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`emodelelement_e_id`"/> + </key> + <property name="source" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`source`"/> + </property> + <map name="details" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eannotation_details_e_id`" not-null="false" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <element type="java.lang.String"/> + </map> + <many-to-one name="eModelElement" entity-name="EModelElement" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eannotation_emodelelement_e_id`"/> + </many-to-one> + <list name="contents" table="`eannotation_contents`" lazy="true" cascade="all,delete-orphan"> + <key/> + <list-index column="`eannotation_contents_idx`"/> + <many-to-any id-type="long"> + <column not-null="true" unique="false" name="`contents_type`"/> + <column not-null="true" unique="false" name="`contents_id`"/> + </many-to-any> + </list> + <list name="references" table="`eannotation_references`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key/> + <list-index column="`eannotation_references_idx`"/> + <many-to-any id-type="long"> + <column not-null="true" unique="false" name="`references_type`"/> + <column not-null="true" unique="false" name="`references_id`"/> + </many-to-any> + </list> + </joined-subclass> + <joined-subclass entity-name="EClassifier" abstract="true" lazy="false" extends="ENamedElement" table="`eclassifier`"> + <meta attribute="eclassName">EClassifier</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`enamedelement_e_id`"/> + </key> + <many-to-one name="ePackage" entity-name="EPackage" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eclassifier_epackage_e_id`"/> + </many-to-one> + <list name="eTypeParameters" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eclassifier_etypeparameters_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclassifier_etypeparameters_idx`"/> + <one-to-many entity-name="ETypeParameter"/> + </list> + </joined-subclass> + <joined-subclass entity-name="EClass" abstract="false" lazy="false" extends="EClassifier" table="`eclass`"> + <meta attribute="eclassName">EClass</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`eclassifier_e_id`"/> + </key> + <property name="abstract" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`abstract`"/> + </property> + <property name="interface" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`interface`"/> + </property> + <list name="eSuperTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`eclass_esupertypes_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclass_esupertypes_idx`"/> + <one-to-many entity-name="EClass"/> + </list> + <list name="eOperations" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eoperation_econtainingclass_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclass_eoperations_idx`"/> + <one-to-many entity-name="EOperation"/> + </list> + <list name="eStructuralFeatures" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`estructuralfeature_econtainingclass_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclass_estructuralfeatures_idx`"/> + <one-to-many entity-name="EStructuralFeature"/> + </list> + <list name="eGenericSuperTypes" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eclass_egenericsupertypes_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eclass_egenericsupertypes_idx`"/> + <one-to-many entity-name="EGenericType"/> + </list> + </joined-subclass> + <joined-subclass entity-name="EDataType" abstract="false" lazy="false" extends="EClassifier" table="`edatatype`"> + <meta attribute="eclassName">EDataType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`eclassifier_e_id`"/> + </key> + <property name="serializable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`serializable`"/> + </property> + </joined-subclass> + <joined-subclass entity-name="EEnum" abstract="false" lazy="false" extends="EDataType" table="`eenum`"> + <meta attribute="eclassName">EEnum</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`edatatype_e_id`"/> + </key> + <list name="eLiterals" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eenumliteral_eenum_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eenum_eliterals_idx`"/> + <one-to-many entity-name="EEnumLiteral"/> + </list> + </joined-subclass> + <joined-subclass entity-name="EEnumLiteral" abstract="false" lazy="false" extends="ENamedElement" table="`eenumliteral`"> + <meta attribute="eclassName">EEnumLiteral</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`enamedelement_e_id`"/> + </key> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`value`"/> + </property> + <property name="literal" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`literal`"/> + </property> + <many-to-one name="eEnum" entity-name="EEnum" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eenumliteral_eenum_e_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass entity-name="EFactory" abstract="false" lazy="false" extends="EModelElement" table="`efactory`"> + <meta attribute="eclassName">EFactory</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`emodelelement_e_id`"/> + </key> + </joined-subclass> + <joined-subclass entity-name="EOperation" abstract="false" lazy="false" extends="ETypedElement" table="`eoperation`"> + <meta attribute="eclassName">EOperation</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`etypedelement_e_id`"/> + </key> + <many-to-one name="eContainingClass" entity-name="EClass" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eoperation_econtainingclass_e_id`"/> + </many-to-one> + <list name="eTypeParameters" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eoperation_etypeparameters_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eoperation_etypeparameters_idx`"/> + <one-to-many entity-name="ETypeParameter"/> + </list> + <list name="eParameters" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eparameter_eoperation_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eoperation_eparameters_idx`"/> + <one-to-many entity-name="EParameter"/> + </list> + <list name="eExceptions" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`eoperation_eexceptions_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eoperation_eexceptions_idx`"/> + <one-to-many entity-name="EClassifier"/> + </list> + <list name="eGenericExceptions" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eoperation_egenericexceptions_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`eoperation_egenericexceptions_idx`"/> + <one-to-many entity-name="EGenericType"/> + </list> + </joined-subclass> + <joined-subclass entity-name="EPackage" abstract="false" lazy="false" extends="ENamedElement" table="`epackage`"> + <meta attribute="eclassName">EPackage</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`enamedelement_e_id`"/> + </key> + <property name="nsURI" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`nsuri`"/> + </property> + <property name="nsPrefix" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`nsprefix`"/> + </property> + <list name="eClassifiers" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`eclassifier_epackage_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`epackage_eclassifiers_idx`"/> + <one-to-many entity-name="EClassifier"/> + </list> + <list name="eSubpackages" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`epackage_esuperpackage_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`epackage_esubpackages_idx`"/> + <one-to-many entity-name="EPackage"/> + </list> + <many-to-one name="eSuperPackage" entity-name="EPackage" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`epackage_esuperpackage_e_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass entity-name="EParameter" abstract="false" lazy="false" extends="ETypedElement" table="`eparameter`"> + <meta attribute="eclassName">EParameter</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`etypedelement_e_id`"/> + </key> + <many-to-one name="eOperation" entity-name="EOperation" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`eparameter_eoperation_e_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass entity-name="EReference" abstract="false" lazy="false" extends="EStructuralFeature" table="`ereference`"> + <meta attribute="eclassName">EReference</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`estructuralfeature_e_id`"/> + </key> + <property name="containment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`containment`"/> + </property> + <property name="resolveProxies" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`resolveproxies`"/> + </property> + <many-to-one name="eOpposite" entity-name="EReference" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`ereference_eopposite_e_id`"/> + </many-to-one> + <list name="eKeys" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`ereference_ekeys_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`ereference_ekeys_idx`"/> + <one-to-many entity-name="EAttribute"/> + </list> + </joined-subclass> + <joined-subclass entity-name="EGenericType" abstract="false" lazy="false" extends="ecore_EObject" table="`egenerictype`"> + <meta attribute="eclassName">EGenericType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`eobject_e_id`"/> + </key> + <many-to-one name="eUpperBound" entity-name="EGenericType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`egenerictype_eupperbound_e_id`"/> + </many-to-one> + <list name="eTypeArguments" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`egenerictype_etypearguments_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`egenerictype_etypearguments_idx`"/> + <one-to-many entity-name="EGenericType"/> + </list> + <many-to-one name="eLowerBound" entity-name="EGenericType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`egenerictype_elowerbound_e_id`"/> + </many-to-one> + <many-to-one name="eTypeParameter" entity-name="ETypeParameter" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`etypeparameter_etypeparameter_e_id`"/> + </many-to-one> + <many-to-one name="eClassifier" entity-name="EClassifier" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`eclassifier_eclassifier_e_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass entity-name="ETypeParameter" abstract="false" lazy="false" extends="ENamedElement" table="`etypeparameter`"> + <meta attribute="eclassName">ETypeParameter</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> + <key> + <column name="`enamedelement_e_id`"/> + </key> + <list name="eBounds" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`etypeparameter_ebounds_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`etypeparameter_ebounds_idx`"/> + <one-to-many entity-name="EGenericType"/> + </list> + </joined-subclass> + <class entity-name="AnyType" abstract="false" lazy="false" table="`anytype`"> + <meta attribute="eclassName">AnyType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_mixed_idx`"/> + <one-to-many entity-name="AnyType_mixed"/> + </list> + <list name="anyAttribute" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_anyattribute_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_anyattribute_idx`"/> + <one-to-many entity-name="AnyType_anyAttribute"/> + </list> + </class> + <class entity-name="AnyType_mixed" lazy="false" table="`anytype_mixed`"> + <meta attribute="featureMap">AnyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="any" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_any_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_any_idx`"/> + <one-to-many entity-name="AnyType_any"/> + </list> + <list name="anyAttribute" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_anyattribute_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_anyattribute_idx`"/> + <one-to-many entity-name="AnyType_anyAttribute"/> + </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="AnyType_anyAttribute" lazy="false" table="`anytype_anyattribute`"> + <meta attribute="featureMap">AnyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + </class> + <class entity-name="AnyType_any" lazy="false" table="`anytype_any`"> + <meta attribute="featureMap">AnyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_mixed_idx`"/> + <one-to-many entity-name="AnyType_mixed"/> + </list> + <list name="anyAttribute" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`anytype_anyattribute_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`anytype_anyattribute_idx`"/> + <one-to-many entity-name="AnyType_anyAttribute"/> + </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="ProcessingInstruction" abstract="false" lazy="false" table="`processinginstruction`"> + <meta attribute="eclassName">ProcessingInstruction</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="data" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`data`"/> + </property> + <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> + <joined-subclass entity-name="SimpleAnyType" abstract="false" lazy="false" extends="AnyType" table="`simpleanytype`"> + <meta attribute="eclassName">SimpleAnyType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> + <key> + <column name="`anytype_e_id`"/> + </key> + <many-to-one name="instanceType" entity-name="EDataType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`edatatype_instancetype_e_id`"/> + </many-to-one> + </joined-subclass> + <class entity-name="XMLTypeDocumentRoot" abstract="false" lazy="false" table="`xmltypedocumentroot`"> + <meta attribute="eclassName">XMLTypeDocumentRoot</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`xmltypedocumentroot_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`xmltypedocumentroot_mixed_idx`"/> + <one-to-many entity-name="XMLTypeDocumentRoot_mixed"/> + </list> + </class> + <class entity-name="XMLTypeDocumentRoot_mixed" lazy="false" table="`xmltypedocumentroot_mixed`"> + <meta attribute="featureMap">XMLTypeDocumentRoot</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">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="`xmltypedocumentroot_xmlnsprefixmap_e_id`" not-null="false" 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="`xmltypedocumentroot_xsischemalocation_e_id`" not-null="false" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <element type="java.lang.String"/> + </map> + <property name="cDATA" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`cdata`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <many-to-one name="processingInstruction" entity-name="ProcessingInstruction" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`processinginstruction_processinginstruction_e_id`"/> + </many-to-one> + <property name="text" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`text`"/> + </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> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..069cc9207 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,120 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:50 CEST 2007 --> +<hibernate-mapping> + <typedef name="forum.TopicCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</param> + <param name="edatatype">TopicCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.ForumImpl" entity-name="Forum" abstract="false" lazy="false" discriminator-value="Forum" table="`forum`"> + <meta attribute="eclassName">Forum</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <list name="members" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`forum_members_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`forum_members_idx`"/> + <one-to-many entity-name="Member"/> + </list> + <list name="topics" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`forum_topics_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`forum_topics_idx`"/> + <one-to-many entity-name="Topic"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.MemberImpl" entity-name="Member" abstract="false" lazy="false" discriminator-value="Member" table="`member`"> + <meta attribute="eclassName">Member</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="nickname" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`nickname`"/> + </property> + <list name="posts" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`post_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`member_posts_idx`"/> + <one-to-many entity-name="Post"/> + </list> + <list name="created" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`topic_creator_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`member_created_idx`"/> + <one-to-many entity-name="Topic"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.PostImpl" entity-name="Post" abstract="false" lazy="false" discriminator-value="Post" table="`post`"> + <meta attribute="eclassName">Post</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="comment" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`comment`"/> + </property> + <many-to-one name="author" entity-name="Member" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`post_author_e_id`"/> + </many-to-one> + <many-to-one name="topic" entity-name="Topic" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`post_topic_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.TopicImpl" entity-name="Topic" abstract="false" lazy="false" discriminator-value="Topic" table="`topic`"> + <meta attribute="eclassName">Topic</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="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.emf.sample.forum.TopicCategory</param> + </type> + </property> + <many-to-one name="creator" entity-name="Member" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`topic_creator_e_id`"/> + </many-to-one> + <list name="posts" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`post_topic_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`topic_posts_idx`"/> + <one-to-many entity-name="Post"/> + </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.test.emf.sample/ForumAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..3a387a36e --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,116 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:34 CEST 2007 --> +<hibernate-mapping> + <typedef name="forum.TopicCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</param> + <param name="edatatype">TopicCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.ForumImpl" entity-name="Forum" abstract="false" lazy="false" table="`forum`"> + <meta attribute="eclassName">Forum</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <list name="members" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`forum_members_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`forum_members_idx`"/> + <one-to-many entity-name="Member"/> + </list> + <list name="topics" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`forum_topics_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`forum_topics_idx`"/> + <one-to-many entity-name="Topic"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.MemberImpl" entity-name="Member" abstract="false" lazy="false" table="`member`"> + <meta attribute="eclassName">Member</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="nickname" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`nickname`"/> + </property> + <list name="posts" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`post_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`member_posts_idx`"/> + <one-to-many entity-name="Post"/> + </list> + <list name="created" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`topic_creator_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`member_created_idx`"/> + <one-to-many entity-name="Topic"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.PostImpl" entity-name="Post" abstract="false" lazy="false" table="`post`"> + <meta attribute="eclassName">Post</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="comment" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`comment`"/> + </property> + <many-to-one name="author" entity-name="Member" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`post_author_e_id`"/> + </many-to-one> + <many-to-one name="topic" entity-name="Topic" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`post_topic_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.TopicImpl" entity-name="Topic" abstract="false" lazy="false" table="`topic`"> + <meta attribute="eclassName">Topic</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="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.emf.sample.forum.TopicCategory</param> + </type> + </property> + <many-to-one name="creator" entity-name="Member" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`topic_creator_e_id`"/> + </many-to-one> + <list name="posts" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`post_topic_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`topic_posts_idx`"/> + <one-to-many entity-name="Post"/> + </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.test.emf.sample/ForumAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..a648d2eed --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,116 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:16 CEST 2007 --> +<hibernate-mapping> + <typedef name="forum.TopicCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</param> + <param name="edatatype">TopicCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.ForumImpl" entity-name="Forum" abstract="false" lazy="false" table="`forum`"> + <meta attribute="eclassName">Forum</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <list name="members" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`forum_members_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`forum_members_idx`"/> + <one-to-many entity-name="Member"/> + </list> + <list name="topics" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`forum_topics_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`forum_topics_idx`"/> + <one-to-many entity-name="Topic"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.MemberImpl" entity-name="Member" abstract="false" lazy="false" table="`member`"> + <meta attribute="eclassName">Member</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="nickname" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`nickname`"/> + </property> + <list name="posts" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`post_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`member_posts_idx`"/> + <one-to-many entity-name="Post"/> + </list> + <list name="created" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`topic_creator_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`member_created_idx`"/> + <one-to-many entity-name="Topic"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.PostImpl" entity-name="Post" abstract="false" lazy="false" table="`post`"> + <meta attribute="eclassName">Post</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="comment" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`comment`"/> + </property> + <many-to-one name="author" entity-name="Member" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`post_author_e_id`"/> + </many-to-one> + <many-to-one name="topic" entity-name="Topic" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`post_topic_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.TopicImpl" entity-name="Topic" abstract="false" lazy="false" table="`topic`"> + <meta attribute="eclassName">Topic</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="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.emf.sample.forum.TopicCategory</param> + </type> + </property> + <many-to-one name="creator" entity-name="Member" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`topic_creator_e_id`"/> + </many-to-one> + <list name="posts" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`post_topic_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`topic_posts_idx`"/> + <one-to-many entity-name="Post"/> + </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.test.emf.sample/InventoryAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/InventoryAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..a162618c3 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/InventoryAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,57 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:43 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.inv.impl.PTypeImpl" entity-name="PType" abstract="false" lazy="false" discriminator-value="PType" table="`ptype`"> + <meta attribute="eclassName">PType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/inv</meta> + <id name="id" type="long"> + <column not-null="true" unique="false" name="`id`"/> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <many-to-one name="base" entity-name="PType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`ptype_base_id`"/> + </many-to-one> + <bag name="subTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`ptype_base_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="PType"/> + </bag> + <bag name="subNOTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`ptype_subnotypes_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="PType"/> + </bag> + <bag name="infoReferences" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`ptype_inforeferences_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="PDeclaration"/> + </bag> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.inv.impl.PDeclarationImpl" entity-name="PDeclaration" abstract="false" lazy="false" discriminator-value="PDeclaration" table="`pdeclaration`"> + <meta attribute="eclassName">PDeclaration</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/inv</meta> + <id name="id" type="long"> + <column not-null="true" unique="false" name="`id`"/> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="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.test.emf.sample/InventoryAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/InventoryAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..93fd78b4b --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/InventoryAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:26 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.inv.impl.PTypeImpl" entity-name="PType" abstract="false" lazy="false" table="`ptype`"> + <meta attribute="eclassName">PType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/inv</meta> + <id name="id" type="long"> + <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">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> + <many-to-one name="base" entity-name="PType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`ptype_base_id`"/> + </many-to-one> + <bag name="subTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`ptype_base_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="PType"/> + </bag> + <bag name="subNOTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`ptype_subnotypes_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="PType"/> + </bag> + <bag name="infoReferences" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`ptype_inforeferences_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="PDeclaration"/> + </bag> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.inv.impl.PDeclarationImpl" entity-name="PDeclaration" abstract="false" lazy="false" table="`pdeclaration`"> + <meta attribute="eclassName">PDeclaration</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/inv</meta> + <id name="id" type="long"> + <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">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.test.emf.sample/InventoryAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/InventoryAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..b98ae0f4f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/InventoryAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:06 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.inv.impl.PTypeImpl" entity-name="PType" abstract="false" lazy="false" table="`ptype`"> + <meta attribute="eclassName">PType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/inv</meta> + <id name="id" type="long"> + <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">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> + <many-to-one name="base" entity-name="PType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`ptype_base_id`"/> + </many-to-one> + <bag name="subTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`ptype_base_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="PType"/> + </bag> + <bag name="subNOTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`ptype_subnotypes_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="PType"/> + </bag> + <bag name="infoReferences" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`ptype_inforeferences_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="PDeclaration"/> + </bag> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.inv.impl.PDeclarationImpl" entity-name="PDeclaration" abstract="false" lazy="false" table="`pdeclaration`"> + <meta attribute="eclassName">PDeclaration</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/inv</meta> + <id name="id" type="long"> + <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">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.test.emf.sample/LibraryAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..4d11491f3 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:18 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <cache usage="read-write"/> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..03dc98971 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,91 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:52 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <cache usage="read-write"/> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..f898df801 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,91 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:31 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <cache usage="read-write"/> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryColLengthAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryColLengthAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..3431a6dc3 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryColLengthAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,88 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:44 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="myID" column="myID" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`titl"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`page"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`cate"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`bo_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`libra`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="myID" column="myID" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`li_id`" not-null="false" unique="false"/> + </key> + <list-index column="`l_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`li_id`" not-null="false" unique="false"/> + </key> + <list-index column="`l_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="`write`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="myID" column="myID" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`bo_id`" not-null="false" unique="false"/> + </key> + <list-index column="`w_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.test.emf.sample/LibraryColLengthAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryColLengthAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..f1ae590e6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryColLengthAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:26 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="myID" column="myID" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`titl"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`page"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`cate"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`bo_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`libra`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="myID" column="myID" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`li_id`" not-null="false" unique="false"/> + </key> + <list-index column="`l_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`li_id`" not-null="false" unique="false"/> + </key> + <list-index column="`l_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="`write`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="myID" column="myID" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`bo_id`" not-null="false" unique="false"/> + </key> + <list-index column="`w_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.test.emf.sample/LibraryColLengthAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryColLengthAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..73c7417bd --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryColLengthAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:07 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="myID" column="myID" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`titl"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`page"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`cate"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`bo_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`libra`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="myID" column="myID" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`li_id`" not-null="false" unique="false"/> + </key> + <list-index column="`l_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`li_id`" not-null="false" unique="false"/> + </key> + <list-index column="`l_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="`write`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="myID" column="myID" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`bo_id`" not-null="false" unique="false"/> + </key> + <list-index column="`w_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.test.emf.sample/LibraryGlobalEagerAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryGlobalEagerAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..b948233c9 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryGlobalEagerAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,88 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:47 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="false" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="false" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryGlobalEagerAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryGlobalEagerAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..20107d45f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryGlobalEagerAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:29 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="false" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="false" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryGlobalEagerAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryGlobalEagerAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..774070cd6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryGlobalEagerAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:10 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="false" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="false" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..589068f6f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,92 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:40 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`BOOK`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`DTYPE`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`TITLE`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`PAGES`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`CATEGORY`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`BOOK_AUTHOR_E_ID`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`LIBRARY`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`DTYPE`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`NAME`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`LIBRARY_WRITERS_E_ID`" not-null="false" unique="false"/> + </key> + <list-index column="`LIBRARY_WRITERS_IDX`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`LIBRARY_BOOKS_E_ID`" not-null="false" unique="false"/> + </key> + <list-index column="`LIBRARY_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`WRITER`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`DTYPE`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`NAME`"/> + </property> + <list name="books" table="`WRITER_BOOKS`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <cache usage="read-write"/> + <key/> + <list-index column="`WRITER_BOOKS_IDX`"/> + <many-to-many entity-name="Book" unique="true"/> + </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.test.emf.sample/LibraryJoinTableNamingAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..209233528 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,89 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:23 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`BOOK`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`TITLE`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`PAGES`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`CATEGORY`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`BOOK_AUTHOR_E_ID`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`LIBRARY`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`NAME`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`LIBRARY_WRITERS_E_ID`" not-null="false" unique="false"/> + </key> + <list-index column="`LIBRARY_WRITERS_IDX`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`LIBRARY_BOOKS_E_ID`" not-null="false" unique="false"/> + </key> + <list-index column="`LIBRARY_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`WRITER`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`NAME`"/> + </property> + <list name="books" table="`WRITER_BOOKS`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <cache usage="read-write"/> + <key/> + <list-index column="`WRITER_BOOKS_IDX`"/> + <many-to-many entity-name="Book" unique="true"/> + </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.test.emf.sample/LibraryJoinTableNamingAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..25800e2a5 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,89 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:02 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`BOOK`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`TITLE`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`PAGES`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`CATEGORY`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`BOOK_AUTHOR_E_ID`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`LIBRARY`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`NAME`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`LIBRARY_WRITERS_E_ID`" not-null="false" unique="false"/> + </key> + <list-index column="`LIBRARY_WRITERS_IDX`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <cache usage="read-write"/> + <key update="true"> + <column name="`LIBRARY_BOOKS_E_ID`" not-null="false" unique="false"/> + </key> + <list-index column="`LIBRARY_BOOKS_IDX`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`WRITER`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <cache usage="read-write"/> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`NAME`"/> + </property> + <list name="books" table="`WRITER_BOOKS`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <cache usage="read-write"/> + <key/> + <list-index column="`WRITER_BOOKS_IDX`"/> + <many-to-many entity-name="Book" unique="true"/> + </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.test.emf.sample/LibraryListAsBagAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsBagAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..921fd0449 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsBagAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:19 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Writer"/> + </bag> + <bag name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Book"/> + </bag> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Book"/> + </bag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsBagAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsBagAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..60db98ed7 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsBagAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,82 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:53 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Writer"/> + </bag> + <bag name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Book"/> + </bag> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Book"/> + </bag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsBagAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsBagAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..6297c1dec --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsBagAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,82 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:32 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Writer"/> + </bag> + <bag name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Book"/> + </bag> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <one-to-many entity-name="Book"/> + </bag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..88a065d7c --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,88 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:20 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..c7410e361 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:56 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..e7fd4d36e --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:33 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryQualifyActionHB_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryQualifyActionHB_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..820904e37 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryQualifyActionHB_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,88 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:46 CEST 2007 --> +<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="library.Book" abstract="false" lazy="false" discriminator-value="library.Book" table="`library_book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="library.Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="library.Library" abstract="false" lazy="false" discriminator-value="library.Library" table="`library_library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="library.Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="library.Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="library.Writer" abstract="false" lazy="false" discriminator-value="library.Writer" table="`library_writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="library.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.test.emf.sample/LibraryQualifyActionHB_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryQualifyActionHB_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..d92fcccc4 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryQualifyActionHB_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:29 CEST 2007 --> +<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="library.Book" abstract="false" lazy="false" table="`library_book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="library.Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="library.Library" abstract="false" lazy="false" table="`library_library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="library.Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="library.Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="library.Writer" abstract="false" lazy="false" table="`library_writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="library.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.test.emf.sample/LibraryQualifyActionHB_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryQualifyActionHB_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..44ffdc9b2 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryQualifyActionHB_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:09 CEST 2007 --> +<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="library.Book" abstract="false" lazy="false" table="`library_book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="library.Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="library.Library" abstract="false" lazy="false" table="`library_library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="library.Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="library.Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="library.Writer" abstract="false" lazy="false" table="`library_writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="library.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.test.emf.sample/LibraryResourceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..fbe7c16ef --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,88 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:38 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..76d62fd1f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:20 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..c357d2f1a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:51 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..5c970f413 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,88 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:44 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="delete,merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="delete,merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..55d4c7974 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:27 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="delete,merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="delete,merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..706a261f2 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:07 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="delete,merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="delete,merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_a_o_hibernate.hbm.xml index c5b088484..8ef35f329 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_a_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_a_o_hibernate.hbm.xml @@ -1,7 +1,7 @@ <?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"> -<!-- Generated by Teneo on Tue Mar 27 18:32:24 CEST 2007 --> +<!-- Generated by Teneo on Wed Mar 28 18:21:01 CEST 2007 --> <hibernate-mapping> <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> @@ -85,7 +85,7 @@ <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> </key> <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> + <one-to-many class="RentalUnit"/> </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.test.emf.sample/LibraryResourceReferenceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_e_o_hibernate.hbm.xml index 23978659d..e2957d606 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_e_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_e_o_hibernate.hbm.xml @@ -1,7 +1,7 @@ <?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"> -<!-- Generated by Teneo on Tue Mar 27 18:32:24 CEST 2007 --> +<!-- Generated by Teneo on Wed Mar 28 18:21:54 CEST 2007 --> <hibernate-mapping> <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> @@ -88,7 +88,7 @@ <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> </key> <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> + <one-to-many class="RentalUnit"/> </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.test.emf.sample/LibraryResourceReferenceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_s_o_hibernate.hbm.xml index 51df3761f..1f3bd847b 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_s_o_hibernate.hbm.xml @@ -1,7 +1,7 @@ <?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"> -<!-- Generated by Teneo on Tue Mar 27 18:32:19 CEST 2007 --> +<!-- Generated by Teneo on Wed Mar 28 18:19:49 CEST 2007 --> <hibernate-mapping> <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> @@ -88,7 +88,7 @@ <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> </key> <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> + <one-to-many class="RentalUnit"/> </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.test.emf.sample/LibrarySerializationAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibrarySerializationAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..ff9b0f0d2 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibrarySerializationAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,88 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:40 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibrarySerializationAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibrarySerializationAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..4cc9b4f97 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibrarySerializationAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:22 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibrarySerializationAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibrarySerializationAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..d1fe5efb8 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibrarySerializationAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:01 CEST 2007 --> +<hibernate-mapping> + <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> + <param name="edatatype">BookCategoryObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`pages`"/> + </property> + <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`category`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> + </type> + </property> + <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`book_author_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> + <meta attribute="eclassName">Library</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_writers_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_writers_idx`"/> + <one-to-many entity-name="Writer"/> + </list> + <list name="books" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`library_books_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`library_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`book_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`writer_books_idx`"/> + <one-to-many entity-name="Book"/> + </list> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..fa5e57225 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,216 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:32 CEST 2007 --> +<hibernate-mapping> + <typedef name="mindmap.PriorityObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.example.org/mindmap</param> + <param name="edatatype">PriorityObject</param> + </typedef> + <typedef name="mindmap.RelationshipTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.example.org/mindmap</param> + <param name="edatatype">RelationshipTypeObject</param> + </typedef> + <class name="org.example.mindmap.impl.MapImpl" entity-name="Map" abstract="false" lazy="false" discriminator-value="Map" table="`map`"> + <meta attribute="eclassName">Map</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="rootTopics" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`map_roottopics_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`map_roottopics_idx`"/> + <one-to-many entity-name="Topic"/> + </list> + <list name="relations" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`map_relations_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`map_relations_idx`"/> + <one-to-many entity-name="Relationship"/> + </list> + <list name="resources" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`map_resources_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`map_resources_idx`"/> + <one-to-many entity-name="Resource"/> + </list> + <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> + <class name="org.example.mindmap.impl.RelationshipImpl" entity-name="Relationship" abstract="false" lazy="false" discriminator-value="Relationship" table="`relationship`"> + <meta attribute="eclassName">Relationship</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="label" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`label`"/> + </property> + <many-to-one name="source" entity-name="Topic" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`topic_source_e_id`"/> + </many-to-one> + <many-to-one name="target" entity-name="Topic" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`topic_target_e_id`"/> + </many-to-one> + <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.example.mindmap.RelationshipType</param> + </type> + </property> + </class> + <class name="org.example.mindmap.impl.ResourceImpl" entity-name="Resource" abstract="false" lazy="false" discriminator-value="Resource" table="`resource`"> + <meta attribute="eclassName">Resource</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="comments" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`thread_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`resource_comments_idx`"/> + <one-to-many entity-name="Thread"/> + </list> + <property name="email" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`email`"/> + </property> + <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="topics" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`resource_topic`"> + <key update="true"> + <column name="`resource_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`resource_topics_idx`"/> + <many-to-many entity-name="Topic" unique="false"> + <column name="`topic_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.example.mindmap.impl.ThreadImpl" entity-name="Thread" abstract="false" lazy="false" discriminator-value="Thread" table="`thread`"> + <meta attribute="eclassName">Thread</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="items" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`thread_items_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`thread_items_idx`"/> + <one-to-many entity-name="ThreadItem"/> + </list> + <many-to-one name="author" entity-name="Resource" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`thread_author_e_id`"/> + </many-to-one> + <property name="postDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`postdate`"/> + </property> + <property name="subject" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`subject`"/> + </property> + </class> + <class name="org.example.mindmap.impl.ThreadItemImpl" entity-name="ThreadItem" abstract="false" lazy="false" discriminator-value="ThreadItem" table="`threaditem`"> + <meta attribute="eclassName">ThreadItem</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="author" entity-name="Resource" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`resource_author_e_id`"/> + </many-to-one> + <property name="body" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`body`"/> + </property> + <property name="itemPostDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`itempostdate`"/> + </property> + </class> + <class name="org.example.mindmap.impl.TopicImpl" entity-name="Topic" abstract="false" lazy="false" discriminator-value="Topic" table="`topic`"> + <meta attribute="eclassName">Topic</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="comments" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`topic_comments_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`topic_comments_idx`"/> + <one-to-many entity-name="Thread"/> + </list> + <property name="duration" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`duration`"/> + </property> + <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`enddate`"/> + </property> + <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="percentComplete" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`percentcomplete`"/> + </property> + <property name="priority" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`priority`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.example.mindmap.Priority</param> + </type> + </property> + <list name="resources" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`topic_resource`"> + <key update="true"> + <column name="`topic_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`topic_resources_idx`"/> + <many-to-many entity-name="Resource" unique="false"> + <column name="`resource_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + <property name="startDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`startdate`"/> + </property> + <list name="subtopics" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`topic_subtopics_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`topic_subtopics_idx`"/> + <one-to-many entity-name="Topic"/> + </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.test.emf.sample/MindMapAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..8d815977a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,210 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:11 CEST 2007 --> +<hibernate-mapping> + <typedef name="mindmap.PriorityObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.example.org/mindmap</param> + <param name="edatatype">PriorityObject</param> + </typedef> + <typedef name="mindmap.RelationshipTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.example.org/mindmap</param> + <param name="edatatype">RelationshipTypeObject</param> + </typedef> + <class name="org.example.mindmap.impl.MapImpl" entity-name="Map" abstract="false" lazy="false" table="`map`"> + <meta attribute="eclassName">Map</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="rootTopics" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`map_roottopics_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`map_roottopics_idx`"/> + <one-to-many entity-name="Topic"/> + </list> + <list name="relations" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`map_relations_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`map_relations_idx`"/> + <one-to-many entity-name="Relationship"/> + </list> + <list name="resources" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`map_resources_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`map_resources_idx`"/> + <one-to-many entity-name="Resource"/> + </list> + <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> + <class name="org.example.mindmap.impl.RelationshipImpl" entity-name="Relationship" abstract="false" lazy="false" table="`relationship`"> + <meta attribute="eclassName">Relationship</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="label" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`label`"/> + </property> + <many-to-one name="source" entity-name="Topic" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`topic_source_e_id`"/> + </many-to-one> + <many-to-one name="target" entity-name="Topic" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`topic_target_e_id`"/> + </many-to-one> + <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.example.mindmap.RelationshipType</param> + </type> + </property> + </class> + <class name="org.example.mindmap.impl.ResourceImpl" entity-name="Resource" abstract="false" lazy="false" table="`resource`"> + <meta attribute="eclassName">Resource</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="comments" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`thread_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`resource_comments_idx`"/> + <one-to-many entity-name="Thread"/> + </list> + <property name="email" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`email`"/> + </property> + <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="topics" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`resource_topic`"> + <key update="true"> + <column name="`resource_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`resource_topics_idx`"/> + <many-to-many entity-name="Topic" unique="false"> + <column name="`topic_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.example.mindmap.impl.ThreadImpl" entity-name="Thread" abstract="false" lazy="false" table="`thread`"> + <meta attribute="eclassName">Thread</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="items" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`thread_items_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`thread_items_idx`"/> + <one-to-many entity-name="ThreadItem"/> + </list> + <many-to-one name="author" entity-name="Resource" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`thread_author_e_id`"/> + </many-to-one> + <property name="postDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`postdate`"/> + </property> + <property name="subject" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`subject`"/> + </property> + </class> + <class name="org.example.mindmap.impl.ThreadItemImpl" entity-name="ThreadItem" abstract="false" lazy="false" table="`threaditem`"> + <meta attribute="eclassName">ThreadItem</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="author" entity-name="Resource" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`resource_author_e_id`"/> + </many-to-one> + <property name="body" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`body`"/> + </property> + <property name="itemPostDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`itempostdate`"/> + </property> + </class> + <class name="org.example.mindmap.impl.TopicImpl" entity-name="Topic" abstract="false" lazy="false" table="`topic`"> + <meta attribute="eclassName">Topic</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="comments" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`topic_comments_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`topic_comments_idx`"/> + <one-to-many entity-name="Thread"/> + </list> + <property name="duration" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`duration`"/> + </property> + <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`enddate`"/> + </property> + <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="percentComplete" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`percentcomplete`"/> + </property> + <property name="priority" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`priority`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.example.mindmap.Priority</param> + </type> + </property> + <list name="resources" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`topic_resource`"> + <key update="true"> + <column name="`topic_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`topic_resources_idx`"/> + <many-to-many entity-name="Resource" unique="false"> + <column name="`resource_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + <property name="startDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`startdate`"/> + </property> + <list name="subtopics" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`topic_subtopics_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`topic_subtopics_idx`"/> + <one-to-many entity-name="Topic"/> + </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.test.emf.sample/MindMapAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..7db5fa12c --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,210 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:46 CEST 2007 --> +<hibernate-mapping> + <typedef name="mindmap.PriorityObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.example.org/mindmap</param> + <param name="edatatype">PriorityObject</param> + </typedef> + <typedef name="mindmap.RelationshipTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.example.org/mindmap</param> + <param name="edatatype">RelationshipTypeObject</param> + </typedef> + <class name="org.example.mindmap.impl.MapImpl" entity-name="Map" abstract="false" lazy="false" table="`map`"> + <meta attribute="eclassName">Map</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="rootTopics" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`map_roottopics_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`map_roottopics_idx`"/> + <one-to-many entity-name="Topic"/> + </list> + <list name="relations" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`map_relations_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`map_relations_idx`"/> + <one-to-many entity-name="Relationship"/> + </list> + <list name="resources" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`map_resources_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`map_resources_idx`"/> + <one-to-many entity-name="Resource"/> + </list> + <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> + <class name="org.example.mindmap.impl.RelationshipImpl" entity-name="Relationship" abstract="false" lazy="false" table="`relationship`"> + <meta attribute="eclassName">Relationship</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="label" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`label`"/> + </property> + <many-to-one name="source" entity-name="Topic" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`topic_source_e_id`"/> + </many-to-one> + <many-to-one name="target" entity-name="Topic" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`topic_target_e_id`"/> + </many-to-one> + <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.example.mindmap.RelationshipType</param> + </type> + </property> + </class> + <class name="org.example.mindmap.impl.ResourceImpl" entity-name="Resource" abstract="false" lazy="false" table="`resource`"> + <meta attribute="eclassName">Resource</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="comments" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`thread_author_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`resource_comments_idx`"/> + <one-to-many entity-name="Thread"/> + </list> + <property name="email" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`email`"/> + </property> + <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="topics" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`resource_topic`"> + <key update="true"> + <column name="`resource_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`resource_topics_idx`"/> + <many-to-many entity-name="Topic" unique="false"> + <column name="`topic_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.example.mindmap.impl.ThreadImpl" entity-name="Thread" abstract="false" lazy="false" table="`thread`"> + <meta attribute="eclassName">Thread</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="items" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`thread_items_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`thread_items_idx`"/> + <one-to-many entity-name="ThreadItem"/> + </list> + <many-to-one name="author" entity-name="Resource" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`thread_author_e_id`"/> + </many-to-one> + <property name="postDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`postdate`"/> + </property> + <property name="subject" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`subject`"/> + </property> + </class> + <class name="org.example.mindmap.impl.ThreadItemImpl" entity-name="ThreadItem" abstract="false" lazy="false" table="`threaditem`"> + <meta attribute="eclassName">ThreadItem</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="author" entity-name="Resource" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`resource_author_e_id`"/> + </many-to-one> + <property name="body" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`body`"/> + </property> + <property name="itemPostDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`itempostdate`"/> + </property> + </class> + <class name="org.example.mindmap.impl.TopicImpl" entity-name="Topic" abstract="false" lazy="false" table="`topic`"> + <meta attribute="eclassName">Topic</meta> + <meta attribute="epackage">http://www.example.org/mindmap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="comments" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`topic_comments_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`topic_comments_idx`"/> + <one-to-many entity-name="Thread"/> + </list> + <property name="duration" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`duration`"/> + </property> + <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`enddate`"/> + </property> + <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="percentComplete" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`percentcomplete`"/> + </property> + <property name="priority" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`priority`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.example.mindmap.Priority</param> + </type> + </property> + <list name="resources" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`topic_resource`"> + <key update="true"> + <column name="`topic_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`topic_resources_idx`"/> + <many-to-many entity-name="Resource" unique="false"> + <column name="`resource_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + <property name="startDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`startdate`"/> + </property> + <list name="subtopics" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`topic_subtopics_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`topic_subtopics_idx`"/> + <one-to-many entity-name="Topic"/> + </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.test.emf.sample/PlayAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PlayAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..7799b6142 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PlayAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,223 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:47 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.ActTypeImpl" entity-name="ActType" abstract="false" lazy="false" discriminator-value="ActType" table="`acttype`"> + <meta attribute="eclassName">ActType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="scene" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`acttype_scene_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`acttype_scene_idx`"/> + <one-to-many entity-name="SceneType"/> + </list> + <property name="pindex" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> + <column not-null="false" unique="false" name="`pindex`"/> + </property> + <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.sample.play.impl.FmTypeImpl" entity-name="FmType" abstract="false" lazy="false" discriminator-value="FmType" table="`fmtype`"> + <meta attribute="eclassName">FmType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="p" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`fmtype_p_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`fmtype_p_idx`"/> + <element type="java.lang.String"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PersonaeTypeImpl" entity-name="PersonaeType" abstract="false" lazy="false" discriminator-value="PersonaeType" table="`personaetype`"> + <meta attribute="eclassName">PersonaeType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`personaetype_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`personaetype_group_idx`"/> + <one-to-many entity-name="PersonaeType_group"/> + </list> + </class> + <class entity-name="PersonaeType_group" lazy="false" table="`personaetype_group`"> + <meta attribute="featureMap">PersonaeType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="persona" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`persona`"/> + </property> + <many-to-one name="personaGroup" entity-name="PersonaGroupType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`personagrouptype_personagroup_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PersonaGroupTypeImpl" entity-name="PersonaGroupType" abstract="false" lazy="false" discriminator-value="PersonaGroupType" table="`personagrouptype`"> + <meta attribute="eclassName">PersonaGroupType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="persona" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`personagrouptype_persona_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`personagrouptype_persona_idx`"/> + <element type="java.lang.String"/> + </list> + <property name="groupDescription" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`groupdescription`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PlayTypeImpl" entity-name="PlayType" abstract="false" lazy="false" discriminator-value="PlayType" table="`playtype`"> + <meta attribute="eclassName">PlayType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <many-to-one name="fm" entity-name="FmType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`fmtype_fm_e_id`"/> + </many-to-one> + <many-to-one name="personae" entity-name="PersonaeType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`personaetype_personae_e_id`"/> + </many-to-one> + <property name="sceneDescription" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`scenedescription`"/> + </property> + <property name="playSubTitle" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`playsubtitle`"/> + </property> + <list name="act" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`playtype_act_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`playtype_act_idx`"/> + <one-to-many entity-name="ActType"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.SceneTypeImpl" entity-name="SceneType" abstract="false" lazy="false" discriminator-value="SceneType" table="`scenetype`"> + <meta attribute="eclassName">SceneType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`scenetype_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`scenetype_group_idx`"/> + <one-to-many entity-name="SceneType_group"/> + </list> + <property name="pindex" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`pindex`"/> + </property> + <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 entity-name="SceneType_group" lazy="false" table="`scenetype_group`"> + <meta attribute="featureMap">SceneType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="stageDirections" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`stagedirections`"/> + </property> + <many-to-one name="speech" entity-name="SpeechType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`speechtype_speech_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.SpeechTypeImpl" entity-name="SpeechType" abstract="false" lazy="false" discriminator-value="SpeechType" table="`speechtype`"> + <meta attribute="eclassName">SpeechType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`speechtype_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`speechtype_group_idx`"/> + <one-to-many entity-name="SpeechType_group"/> + </list> + </class> + <class entity-name="SpeechType_group" lazy="false" table="`speechtype_group`"> + <meta attribute="featureMap">SpeechType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="speaker" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`speaker`"/> + </property> + <property name="line" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`line`"/> + </property> + <property name="stageDirections" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`stagedirections`"/> + </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.test.emf.sample/PlayAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PlayAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..c785bb36f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PlayAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,216 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:29 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.ActTypeImpl" entity-name="ActType" abstract="false" lazy="false" table="`acttype`"> + <meta attribute="eclassName">ActType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="scene" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`acttype_scene_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`acttype_scene_idx`"/> + <one-to-many entity-name="SceneType"/> + </list> + <property name="pindex" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> + <column not-null="false" unique="false" name="`pindex`"/> + </property> + <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.sample.play.impl.FmTypeImpl" entity-name="FmType" abstract="false" lazy="false" table="`fmtype`"> + <meta attribute="eclassName">FmType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="p" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`fmtype_p_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`fmtype_p_idx`"/> + <element type="java.lang.String"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PersonaeTypeImpl" entity-name="PersonaeType" abstract="false" lazy="false" table="`personaetype`"> + <meta attribute="eclassName">PersonaeType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`personaetype_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`personaetype_group_idx`"/> + <one-to-many entity-name="PersonaeType_group"/> + </list> + </class> + <class entity-name="PersonaeType_group" lazy="false" table="`personaetype_group`"> + <meta attribute="featureMap">PersonaeType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="persona" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`persona`"/> + </property> + <many-to-one name="personaGroup" entity-name="PersonaGroupType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`personagrouptype_personagroup_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PersonaGroupTypeImpl" entity-name="PersonaGroupType" abstract="false" lazy="false" table="`personagrouptype`"> + <meta attribute="eclassName">PersonaGroupType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="persona" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`personagrouptype_persona_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`personagrouptype_persona_idx`"/> + <element type="java.lang.String"/> + </list> + <property name="groupDescription" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`groupdescription`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PlayTypeImpl" entity-name="PlayType" abstract="false" lazy="false" table="`playtype`"> + <meta attribute="eclassName">PlayType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <many-to-one name="fm" entity-name="FmType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`fmtype_fm_e_id`"/> + </many-to-one> + <many-to-one name="personae" entity-name="PersonaeType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`personaetype_personae_e_id`"/> + </many-to-one> + <property name="sceneDescription" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`scenedescription`"/> + </property> + <property name="playSubTitle" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`playsubtitle`"/> + </property> + <list name="act" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`playtype_act_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`playtype_act_idx`"/> + <one-to-many entity-name="ActType"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.SceneTypeImpl" entity-name="SceneType" abstract="false" lazy="false" table="`scenetype`"> + <meta attribute="eclassName">SceneType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`scenetype_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`scenetype_group_idx`"/> + <one-to-many entity-name="SceneType_group"/> + </list> + <property name="pindex" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`pindex`"/> + </property> + <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 entity-name="SceneType_group" lazy="false" table="`scenetype_group`"> + <meta attribute="featureMap">SceneType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="stageDirections" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`stagedirections`"/> + </property> + <many-to-one name="speech" entity-name="SpeechType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`speechtype_speech_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.SpeechTypeImpl" entity-name="SpeechType" abstract="false" lazy="false" table="`speechtype`"> + <meta attribute="eclassName">SpeechType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`speechtype_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`speechtype_group_idx`"/> + <one-to-many entity-name="SpeechType_group"/> + </list> + </class> + <class entity-name="SpeechType_group" lazy="false" table="`speechtype_group`"> + <meta attribute="featureMap">SpeechType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="speaker" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`speaker`"/> + </property> + <property name="line" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`line`"/> + </property> + <property name="stageDirections" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`stagedirections`"/> + </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.test.emf.sample/PlayAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PlayAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..102c9e558 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PlayAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,216 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:10 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.ActTypeImpl" entity-name="ActType" abstract="false" lazy="false" table="`acttype`"> + <meta attribute="eclassName">ActType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="scene" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`acttype_scene_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`acttype_scene_idx`"/> + <one-to-many entity-name="SceneType"/> + </list> + <property name="pindex" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> + <column not-null="false" unique="false" name="`pindex`"/> + </property> + <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.sample.play.impl.FmTypeImpl" entity-name="FmType" abstract="false" lazy="false" table="`fmtype`"> + <meta attribute="eclassName">FmType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="p" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`fmtype_p_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`fmtype_p_idx`"/> + <element type="java.lang.String"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PersonaeTypeImpl" entity-name="PersonaeType" abstract="false" lazy="false" table="`personaetype`"> + <meta attribute="eclassName">PersonaeType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`personaetype_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`personaetype_group_idx`"/> + <one-to-many entity-name="PersonaeType_group"/> + </list> + </class> + <class entity-name="PersonaeType_group" lazy="false" table="`personaetype_group`"> + <meta attribute="featureMap">PersonaeType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="persona" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`persona`"/> + </property> + <many-to-one name="personaGroup" entity-name="PersonaGroupType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`personagrouptype_personagroup_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PersonaGroupTypeImpl" entity-name="PersonaGroupType" abstract="false" lazy="false" table="`personagrouptype`"> + <meta attribute="eclassName">PersonaGroupType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="persona" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`personagrouptype_persona_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`personagrouptype_persona_idx`"/> + <element type="java.lang.String"/> + </list> + <property name="groupDescription" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`groupdescription`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PlayTypeImpl" entity-name="PlayType" abstract="false" lazy="false" table="`playtype`"> + <meta attribute="eclassName">PlayType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <many-to-one name="fm" entity-name="FmType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`fmtype_fm_e_id`"/> + </many-to-one> + <many-to-one name="personae" entity-name="PersonaeType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`personaetype_personae_e_id`"/> + </many-to-one> + <property name="sceneDescription" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`scenedescription`"/> + </property> + <property name="playSubTitle" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`playsubtitle`"/> + </property> + <list name="act" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`playtype_act_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`playtype_act_idx`"/> + <one-to-many entity-name="ActType"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.SceneTypeImpl" entity-name="SceneType" abstract="false" lazy="false" table="`scenetype`"> + <meta attribute="eclassName">SceneType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`scenetype_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`scenetype_group_idx`"/> + <one-to-many entity-name="SceneType_group"/> + </list> + <property name="pindex" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`pindex`"/> + </property> + <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 entity-name="SceneType_group" lazy="false" table="`scenetype_group`"> + <meta attribute="featureMap">SceneType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="stageDirections" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`stagedirections`"/> + </property> + <many-to-one name="speech" entity-name="SpeechType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`speechtype_speech_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.SpeechTypeImpl" entity-name="SpeechType" abstract="false" lazy="false" table="`speechtype`"> + <meta attribute="eclassName">SpeechType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`speechtype_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`speechtype_group_idx`"/> + <one-to-many entity-name="SpeechType_group"/> + </list> + </class> + <class entity-name="SpeechType_group" lazy="false" table="`speechtype_group`"> + <meta attribute="featureMap">SpeechType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="speaker" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`speaker`"/> + </property> + <property name="line" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`line`"/> + </property> + <property name="stageDirections" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`stagedirections`"/> + </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.test.emf.sample/PrimerPOAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PrimerPOAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..d68ae7ebb --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PrimerPOAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,97 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:49 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" discriminator-value="Item" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/primerpo</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="productName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`productname`"/> + </property> + <property name="quantity" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger"> + <column not-null="true" unique="false" name="`quantity`"/> + </property> + <property name="uSPrice" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`usprice`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="shipDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`shipdate`"/> + </property> + <property name="partNum" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`partnum`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.PurchaseOrderImpl" entity-name="PurchaseOrder" abstract="false" lazy="false" discriminator-value="PurchaseOrder" table="`purchaseorder`"> + <meta attribute="eclassName">PurchaseOrder</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/primerpo</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="shipTo" entity-name="USAddress" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`usaddress_shipto_e_id`"/> + </many-to-one> + <many-to-one name="billTo" entity-name="USAddress" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`usaddress_billto_e_id`"/> + </many-to-one> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <list name="items" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`purchaseorder_items_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`purchaseorder_items_idx`"/> + <one-to-many entity-name="Item"/> + </list> + <property name="orderDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`orderdate`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" discriminator-value="USAddress" table="`usaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/primerpo</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + <property name="state" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`state`"/> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`zip`"/> + </property> + <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`country`"/> + </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.test.emf.sample/PrimerPOAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PrimerPOAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..8fe429e72 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PrimerPOAction_mysql_e_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:31 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/primerpo</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="productName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`productname`"/> + </property> + <property name="quantity" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger"> + <column not-null="true" unique="false" name="`quantity`"/> + </property> + <property name="uSPrice" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`usprice`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="shipDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`shipdate`"/> + </property> + <property name="partNum" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`partnum`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.PurchaseOrderImpl" entity-name="PurchaseOrder" abstract="false" lazy="false" table="`purchaseorder`"> + <meta attribute="eclassName">PurchaseOrder</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/primerpo</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="shipTo" entity-name="USAddress" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`usaddress_shipto_e_id`"/> + </many-to-one> + <many-to-one name="billTo" entity-name="USAddress" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`usaddress_billto_e_id`"/> + </many-to-one> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <list name="items" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`purchaseorder_items_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`purchaseorder_items_idx`"/> + <one-to-many entity-name="Item"/> + </list> + <property name="orderDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`orderdate`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" table="`usaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/primerpo</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + <property name="state" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`state`"/> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`zip`"/> + </property> + <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`country`"/> + </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.test.emf.sample/PrimerPOAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PrimerPOAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..66a941d6d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PrimerPOAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:12 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/primerpo</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="productName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`productname`"/> + </property> + <property name="quantity" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger"> + <column not-null="true" unique="false" name="`quantity`"/> + </property> + <property name="uSPrice" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`usprice`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="shipDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`shipdate`"/> + </property> + <property name="partNum" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`partnum`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.PurchaseOrderImpl" entity-name="PurchaseOrder" abstract="false" lazy="false" table="`purchaseorder`"> + <meta attribute="eclassName">PurchaseOrder</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/primerpo</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="shipTo" entity-name="USAddress" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`usaddress_shipto_e_id`"/> + </many-to-one> + <many-to-one name="billTo" entity-name="USAddress" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`usaddress_billto_e_id`"/> + </many-to-one> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <list name="items" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`purchaseorder_items_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`purchaseorder_items_idx`"/> + <one-to-many entity-name="Item"/> + </list> + <property name="orderDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`orderdate`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" table="`usaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/primerpo</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + <property name="state" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`state`"/> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> + <column not-null="true" unique="false" name="`zip`"/> + </property> + <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`country`"/> + </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.test.emf.sample/ProductAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ProductAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..87affeff4 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ProductAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:18 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" discriminator-value="ProductType" table="`producttype`"> + <meta attribute="eclassName">ProductType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</meta> + <id name="id" type="java.lang.String"> + <column not-null="true" unique="false" name="`id`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`code`"/> + </property> + <many-to-one name="supplier" entity-name="SupplierType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> + </many-to-one> + <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="createdOn" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="true" unique="false" name="`createdon`"/> + </property> + <any name="AnyOne" id-type="long" cascade="merge,persist,save-update,lock,refresh"> + <column not-null="false" unique="false" name="`anyone_type`"/> + <column not-null="false" unique="false" name="`anyone_id`"/> + </any> + <list name="AnyList" table="`producttype_anylist`" lazy="true" cascade="all,delete-orphan"> + <key/> + <list-index column="`producttype_anylist_idx`"/> + <many-to-any id-type="long"> + <column not-null="true" unique="false" name="`anylist_type`"/> + <column not-null="true" unique="false" name="`anylist_id`"/> + </many-to-any> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" discriminator-value="SupplierType" table="`suppliertype`"> + <meta attribute="eclassName">SupplierType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`noofemployees`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.ClassificationTypeImpl" entity-name="ClassificationType" abstract="false" lazy="false" discriminator-value="ClassificationType" table="`classificationtype`"> + <meta attribute="eclassName">ClassificationType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="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.test.emf.sample/ProductAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ProductAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..f868bc075 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ProductAction_mysql_e_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:52 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" table="`producttype`"> + <meta attribute="eclassName">ProductType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</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">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`code`"/> + </property> + <many-to-one name="supplier" entity-name="SupplierType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> + </many-to-one> + <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="createdOn" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="true" unique="false" name="`createdon`"/> + </property> + <any name="AnyOne" id-type="long" cascade="merge,persist,save-update,lock,refresh"> + <column not-null="false" unique="false" name="`anyone_type`"/> + <column not-null="false" unique="false" name="`anyone_id`"/> + </any> + <list name="AnyList" table="`producttype_anylist`" lazy="true" cascade="all,delete-orphan"> + <key/> + <list-index column="`producttype_anylist_idx`"/> + <many-to-any id-type="long"> + <column not-null="true" unique="false" name="`anylist_type`"/> + <column not-null="true" unique="false" name="`anylist_id`"/> + </many-to-any> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" table="`suppliertype`"> + <meta attribute="eclassName">SupplierType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`noofemployees`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.ClassificationTypeImpl" entity-name="ClassificationType" abstract="false" lazy="false" table="`classificationtype`"> + <meta attribute="eclassName">ClassificationType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="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.test.emf.sample/ProductAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ProductAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..423d2815d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ProductAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:30 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" table="`producttype`"> + <meta attribute="eclassName">ProductType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</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">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`code`"/> + </property> + <many-to-one name="supplier" entity-name="SupplierType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> + </many-to-one> + <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="createdOn" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="true" unique="false" name="`createdon`"/> + </property> + <any name="AnyOne" id-type="long" cascade="merge,persist,save-update,lock,refresh"> + <column not-null="false" unique="false" name="`anyone_type`"/> + <column not-null="false" unique="false" name="`anyone_id`"/> + </any> + <list name="AnyList" table="`producttype_anylist`" lazy="true" cascade="all,delete-orphan"> + <key/> + <list-index column="`producttype_anylist_idx`"/> + <many-to-any id-type="long"> + <column not-null="true" unique="false" name="`anylist_type`"/> + <column not-null="true" unique="false" name="`anylist_id`"/> + </many-to-any> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" table="`suppliertype`"> + <meta attribute="eclassName">SupplierType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`noofemployees`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.ClassificationTypeImpl" entity-name="ClassificationType" abstract="false" lazy="false" table="`classificationtype`"> + <meta attribute="eclassName">ClassificationType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="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.test.emf.sample/RentalClassifyNamesAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..4db3da3d1 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 12:19:29 CEST 2007 --> +<hibernate-mapping> + <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalBicycleTypeObject</param> + </typedef> + <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalCarSizeObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="true" discriminator-value="RentalUnit" table="`rentalunit`" proxy="org.eclipse.emf.teneo.rental.RentalUnit"> + <meta attribute="eclassName">RentalUnit</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id name="description" type="java.lang.String"> + <column not-null="true" unique="false" name="`description`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="true" extends="RentalUnit" discriminator-value="RentalBicycle" proxy="org.eclipse.emf.teneo.rental.RentalBicycle"> + <meta attribute="eclassName">RentalBicycle</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <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.rental.RentalBicycleType</param> + </type> + </property> + </subclass> + <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="true" discriminator-value="Currency" table="`currency`" proxy="org.eclipse.emf.teneo.rental.Currency"> + <meta attribute="eclassName">Currency</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="true" extends="RentalUnit" discriminator-value="RentalCar" proxy="org.eclipse.emf.teneo.rental.RentalCar"> + <meta attribute="eclassName">RentalCar</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`size`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> + </type> + </property> + </subclass> + <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="true" discriminator-value="RentalContract" table="`rentalcontract`" proxy="org.eclipse.emf.teneo.rental.RentalContract"> + <meta attribute="eclassName">RentalContract</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`renttobusinesspartner`"/> + </property> + <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" 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="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`cost`"/> + </property> + <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`rentalcontract_rentalunits_idx`"/> + <one-to-many entity-name="RentalUnit"/> + </list> + <many-to-one name="currency" entity-name="Currency" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`currency_currency_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.test.emf.sample/RentalClassifyNamesAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..3d045ca68 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,97 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 12:20:06 CEST 2007 --> +<hibernate-mapping> + <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalBicycleTypeObject</param> + </typedef> + <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalCarSizeObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="true" table="`rentalunit`" proxy="org.eclipse.emf.teneo.rental.RentalUnit"> + <meta attribute="eclassName">RentalUnit</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id name="description" type="java.lang.String"> + <column not-null="true" unique="false" name="`description`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="true" extends="RentalUnit" table="`rentalbicycle`" proxy="org.eclipse.emf.teneo.rental.RentalBicycle"> + <meta attribute="eclassName">RentalBicycle</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <key> + <column name="`rentalunit_description`"/> + </key> + <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.rental.RentalBicycleType</param> + </type> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="true" table="`currency`" proxy="org.eclipse.emf.teneo.rental.Currency"> + <meta attribute="eclassName">Currency</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="true" extends="RentalUnit" table="`rentalcar`" proxy="org.eclipse.emf.teneo.rental.RentalCar"> + <meta attribute="eclassName">RentalCar</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <key> + <column name="`rentalunit_description`"/> + </key> + <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`size`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> + </type> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="true" table="`rentalcontract`" proxy="org.eclipse.emf.teneo.rental.RentalContract"> + <meta attribute="eclassName">RentalContract</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`renttobusinesspartner`"/> + </property> + <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" 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="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`cost`"/> + </property> + <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`rentalcontract_rentalunits_idx`"/> + <one-to-many entity-name="RentalUnit"/> + </list> + <many-to-one name="currency" entity-name="Currency" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`currency_currency_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.test.emf.sample/RentalClassifyNamesAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..2f5db848d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,97 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 12:18:31 CEST 2007 --> +<hibernate-mapping> + <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalBicycleTypeObject</param> + </typedef> + <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalCarSizeObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="true" table="`rentalunit`" proxy="org.eclipse.emf.teneo.rental.RentalUnit"> + <meta attribute="eclassName">RentalUnit</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id name="description" type="java.lang.String"> + <column not-null="true" unique="false" name="`description`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="true" extends="RentalUnit" table="`rentalbicycle`" proxy="org.eclipse.emf.teneo.rental.RentalBicycle"> + <meta attribute="eclassName">RentalBicycle</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <key> + <column name="`rentalunit_description`"/> + </key> + <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.rental.RentalBicycleType</param> + </type> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="true" table="`currency`" proxy="org.eclipse.emf.teneo.rental.Currency"> + <meta attribute="eclassName">Currency</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="true" extends="RentalUnit" table="`rentalcar`" proxy="org.eclipse.emf.teneo.rental.RentalCar"> + <meta attribute="eclassName">RentalCar</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <key> + <column name="`rentalunit_description`"/> + </key> + <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`size`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> + </type> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="true" table="`rentalcontract`" proxy="org.eclipse.emf.teneo.rental.RentalContract"> + <meta attribute="eclassName">RentalContract</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`renttobusinesspartner`"/> + </property> + <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" 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="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`cost`"/> + </property> + <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`rentalcontract_rentalunits_idx`"/> + <one-to-many entity-name="RentalUnit"/> + </list> + <many-to-one name="currency" entity-name="Currency" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`currency_currency_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.test.emf.sample/RentalMapAsClassAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalMapAsClassAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..48dc4c1c6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalMapAsClassAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:17 CEST 2007 --> +<hibernate-mapping> + <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalBicycleTypeObject</param> + </typedef> + <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalCarSizeObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="true" discriminator-value="RentalUnit" table="`rentalunit`" proxy="org.eclipse.emf.teneo.rental.RentalUnit"> + <meta attribute="eclassName">RentalUnit</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id name="description" type="java.lang.String"> + <column not-null="true" unique="false" name="`description`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="true" extends="RentalUnit" discriminator-value="RentalBicycle" proxy="org.eclipse.emf.teneo.rental.RentalBicycle"> + <meta attribute="eclassName">RentalBicycle</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <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.rental.RentalBicycleType</param> + </type> + </property> + </subclass> + <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="true" discriminator-value="Currency" table="`currency`" proxy="org.eclipse.emf.teneo.rental.Currency"> + <meta attribute="eclassName">Currency</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="true" extends="RentalUnit" discriminator-value="RentalCar" proxy="org.eclipse.emf.teneo.rental.RentalCar"> + <meta attribute="eclassName">RentalCar</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`size`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> + </type> + </property> + </subclass> + <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="true" discriminator-value="RentalContract" table="`rentalcontract`" proxy="org.eclipse.emf.teneo.rental.RentalContract"> + <meta attribute="eclassName">RentalContract</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`renttobusinesspartner`"/> + </property> + <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" 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="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`cost`"/> + </property> + <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`rentalcontract_rentalunits_idx`"/> + <one-to-many entity-name="RentalUnit"/> + </list> + <many-to-one name="currency" entity-name="Currency" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`currency_currency_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.test.emf.sample/RentalMapAsClassAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalMapAsClassAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..33e57afb3 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalMapAsClassAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,97 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:51 CEST 2007 --> +<hibernate-mapping> + <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalBicycleTypeObject</param> + </typedef> + <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalCarSizeObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="true" table="`rentalunit`" proxy="org.eclipse.emf.teneo.rental.RentalUnit"> + <meta attribute="eclassName">RentalUnit</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id name="description" type="java.lang.String"> + <column not-null="true" unique="false" name="`description`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="true" extends="RentalUnit" table="`rentalbicycle`" proxy="org.eclipse.emf.teneo.rental.RentalBicycle"> + <meta attribute="eclassName">RentalBicycle</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <key> + <column name="`rentalunit_description`"/> + </key> + <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.rental.RentalBicycleType</param> + </type> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="true" table="`currency`" proxy="org.eclipse.emf.teneo.rental.Currency"> + <meta attribute="eclassName">Currency</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="true" extends="RentalUnit" table="`rentalcar`" proxy="org.eclipse.emf.teneo.rental.RentalCar"> + <meta attribute="eclassName">RentalCar</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <key> + <column name="`rentalunit_description`"/> + </key> + <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`size`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> + </type> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="true" table="`rentalcontract`" proxy="org.eclipse.emf.teneo.rental.RentalContract"> + <meta attribute="eclassName">RentalContract</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`renttobusinesspartner`"/> + </property> + <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" 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="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`cost`"/> + </property> + <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`rentalcontract_rentalunits_idx`"/> + <one-to-many entity-name="RentalUnit"/> + </list> + <many-to-one name="currency" entity-name="Currency" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`currency_currency_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.test.emf.sample/RentalMapAsClassAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalMapAsClassAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..d8df8eb99 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalMapAsClassAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,97 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:28 CEST 2007 --> +<hibernate-mapping> + <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalBicycleTypeObject</param> + </typedef> + <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalCarSizeObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="true" table="`rentalunit`" proxy="org.eclipse.emf.teneo.rental.RentalUnit"> + <meta attribute="eclassName">RentalUnit</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id name="description" type="java.lang.String"> + <column not-null="true" unique="false" name="`description`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="true" extends="RentalUnit" table="`rentalbicycle`" proxy="org.eclipse.emf.teneo.rental.RentalBicycle"> + <meta attribute="eclassName">RentalBicycle</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <key> + <column name="`rentalunit_description`"/> + </key> + <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.rental.RentalBicycleType</param> + </type> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="true" table="`currency`" proxy="org.eclipse.emf.teneo.rental.Currency"> + <meta attribute="eclassName">Currency</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="true" extends="RentalUnit" table="`rentalcar`" proxy="org.eclipse.emf.teneo.rental.RentalCar"> + <meta attribute="eclassName">RentalCar</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <key> + <column name="`rentalunit_description`"/> + </key> + <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`size`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> + </type> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="true" table="`rentalcontract`" proxy="org.eclipse.emf.teneo.rental.RentalContract"> + <meta attribute="eclassName">RentalContract</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`renttobusinesspartner`"/> + </property> + <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" 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="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`cost`"/> + </property> + <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`rentalcontract_rentalunits_idx`"/> + <one-to-many entity-name="RentalUnit"/> + </list> + <many-to-one name="currency" entity-name="Currency" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`currency_currency_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.test.emf.sample/RentalResourceReferenceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalResourceReferenceAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..7e29a02c2 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalResourceReferenceAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:17 CEST 2007 --> +<hibernate-mapping> + <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalBicycleTypeObject</param> + </typedef> + <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalCarSizeObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="false" discriminator-value="RentalUnit" table="`rentalunit`"> + <meta attribute="eclassName">RentalUnit</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id name="description" type="java.lang.String"> + <column not-null="true" unique="false" name="`description`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="false" extends="RentalUnit" discriminator-value="RentalBicycle"> + <meta attribute="eclassName">RentalBicycle</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <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.rental.RentalBicycleType</param> + </type> + </property> + </subclass> + <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="false" discriminator-value="Currency" table="`currency`"> + <meta attribute="eclassName">Currency</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="false" extends="RentalUnit" discriminator-value="RentalCar"> + <meta attribute="eclassName">RentalCar</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`size`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> + </type> + </property> + </subclass> + <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="false" discriminator-value="RentalContract" table="`rentalcontract`"> + <meta attribute="eclassName">RentalContract</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`renttobusinesspartner`"/> + </property> + <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" 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="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`cost`"/> + </property> + <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`rentalcontract_rentalunits_idx`"/> + <one-to-many entity-name="RentalUnit"/> + </list> + <many-to-one name="currency" entity-name="Currency" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`currency_currency_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.test.emf.sample/RentalResourceReferenceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalResourceReferenceAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..f63d21c46 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalResourceReferenceAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,97 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:51 CEST 2007 --> +<hibernate-mapping> + <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalBicycleTypeObject</param> + </typedef> + <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalCarSizeObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="false" table="`rentalunit`"> + <meta attribute="eclassName">RentalUnit</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id name="description" type="java.lang.String"> + <column not-null="true" unique="false" name="`description`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="false" extends="RentalUnit" table="`rentalbicycle`"> + <meta attribute="eclassName">RentalBicycle</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <key> + <column name="`rentalunit_description`"/> + </key> + <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.rental.RentalBicycleType</param> + </type> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="false" table="`currency`"> + <meta attribute="eclassName">Currency</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="false" extends="RentalUnit" table="`rentalcar`"> + <meta attribute="eclassName">RentalCar</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <key> + <column name="`rentalunit_description`"/> + </key> + <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`size`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> + </type> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="false" table="`rentalcontract`"> + <meta attribute="eclassName">RentalContract</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`renttobusinesspartner`"/> + </property> + <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" 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="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`cost`"/> + </property> + <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`rentalcontract_rentalunits_idx`"/> + <one-to-many entity-name="RentalUnit"/> + </list> + <many-to-one name="currency" entity-name="Currency" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`currency_currency_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.test.emf.sample/RentalResourceReferenceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalResourceReferenceAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..e2d1f06f7 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalResourceReferenceAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,97 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:12:29 CEST 2007 --> +<hibernate-mapping> + <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalBicycleTypeObject</param> + </typedef> + <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> + <param name="edatatype">RentalCarSizeObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="false" table="`rentalunit`"> + <meta attribute="eclassName">RentalUnit</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id name="description" type="java.lang.String"> + <column not-null="true" unique="false" name="`description`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="false" extends="RentalUnit" table="`rentalbicycle`"> + <meta attribute="eclassName">RentalBicycle</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <key> + <column name="`rentalunit_description`"/> + </key> + <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.rental.RentalBicycleType</param> + </type> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="false" table="`currency`"> + <meta attribute="eclassName">Currency</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`code`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="false" extends="RentalUnit" table="`rentalcar`"> + <meta attribute="eclassName">RentalCar</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <key> + <column name="`rentalunit_description`"/> + </key> + <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`size`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> + </type> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="false" table="`rentalcontract`"> + <meta attribute="eclassName">RentalContract</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`renttobusinesspartner`"/> + </property> + <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" 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="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`cost`"/> + </property> + <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`rentalcontract_rentalunits_idx`"/> + <one-to-many entity-name="RentalUnit"/> + </list> + <many-to-one name="currency" entity-name="Currency" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`currency_currency_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.test.emf.sample/SunBooksAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SunBooksAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..7682927ff --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SunBooksAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,127 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:41 CEST 2007 --> +<hibernate-mapping> + <typedef name="sunBooks.BookCategoryTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> + <param name="edatatype">BookCategoryTypeObject</param> + </typedef> + <typedef name="sunBooks.BookCategoryTypeObject1" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> + <param name="edatatype">BookCategoryTypeObject1</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.AuthorsTypeImpl" entity-name="AuthorsType" abstract="false" lazy="false" discriminator-value="AuthorsType" table="`authorstype`"> + <meta attribute="eclassName">AuthorsType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="authorName" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`authorstype_authorname_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`authorstype_authorname_idx`"/> + <element type="java.lang.String"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.BooksTypeImpl" entity-name="BooksType" abstract="false" lazy="false" discriminator-value="BooksType" table="`bookstype`"> + <meta attribute="eclassName">BooksType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="book" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`bookstype_book_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`bookstype_book_idx`"/> + <one-to-many entity-name="BookType"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.BookTypeImpl" entity-name="BookType" abstract="false" lazy="false" discriminator-value="BookType" table="`booktype`"> + <meta attribute="eclassName">BookType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="iSBN" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`isbn`"/> + </property> + <property name="price" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`price`"/> + </property> + <many-to-one name="authors" entity-name="AuthorsType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`authorstype_authors_e_id`"/> + </many-to-one> + <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="promotion" entity-name="PromotionType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`promotiontype_promotion_e_id`"/> + </many-to-one> + <property name="publicationDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="true" unique="false" name="`publicationdate`"/> + </property> + <property name="bookCategory" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`bookcategory`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.sunBooks.BookCategoryType1</param> + </type> + </property> + <property name="itemId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`itemid`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.CollectionTypeImpl" entity-name="CollectionType" abstract="false" lazy="false" discriminator-value="CollectionType" table="`collectiontype`"> + <meta attribute="eclassName">CollectionType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="books" entity-name="BooksType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`bookstype_books_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.PromotionTypeImpl" entity-name="PromotionType" abstract="false" lazy="false" discriminator-value="PromotionType" table="`promotiontype`"> + <meta attribute="eclassName">PromotionType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="discount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`discount`"/> + </property> + <property name="none" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`none`"/> + </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.test.emf.sample/SunBooksAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SunBooksAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..cced63ac6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SunBooksAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,122 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:24 CEST 2007 --> +<hibernate-mapping> + <typedef name="sunBooks.BookCategoryTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> + <param name="edatatype">BookCategoryTypeObject</param> + </typedef> + <typedef name="sunBooks.BookCategoryTypeObject1" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> + <param name="edatatype">BookCategoryTypeObject1</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.AuthorsTypeImpl" entity-name="AuthorsType" abstract="false" lazy="false" table="`authorstype`"> + <meta attribute="eclassName">AuthorsType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="authorName" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`authorstype_authorname_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`authorstype_authorname_idx`"/> + <element type="java.lang.String"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.BooksTypeImpl" entity-name="BooksType" abstract="false" lazy="false" table="`bookstype`"> + <meta attribute="eclassName">BooksType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="book" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`bookstype_book_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`bookstype_book_idx`"/> + <one-to-many entity-name="BookType"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.BookTypeImpl" entity-name="BookType" abstract="false" lazy="false" table="`booktype`"> + <meta attribute="eclassName">BookType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="iSBN" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`isbn`"/> + </property> + <property name="price" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`price`"/> + </property> + <many-to-one name="authors" entity-name="AuthorsType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`authorstype_authors_e_id`"/> + </many-to-one> + <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="promotion" entity-name="PromotionType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`promotiontype_promotion_e_id`"/> + </many-to-one> + <property name="publicationDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="true" unique="false" name="`publicationdate`"/> + </property> + <property name="bookCategory" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`bookcategory`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.sunBooks.BookCategoryType1</param> + </type> + </property> + <property name="itemId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`itemid`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.CollectionTypeImpl" entity-name="CollectionType" abstract="false" lazy="false" table="`collectiontype`"> + <meta attribute="eclassName">CollectionType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="books" entity-name="BooksType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`bookstype_books_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.PromotionTypeImpl" entity-name="PromotionType" abstract="false" lazy="false" table="`promotiontype`"> + <meta attribute="eclassName">PromotionType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="discount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`discount`"/> + </property> + <property name="none" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`none`"/> + </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.test.emf.sample/SunBooksAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SunBooksAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..1f7c54729 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SunBooksAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,122 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:03 CEST 2007 --> +<hibernate-mapping> + <typedef name="sunBooks.BookCategoryTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> + <param name="edatatype">BookCategoryTypeObject</param> + </typedef> + <typedef name="sunBooks.BookCategoryTypeObject1" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> + <param name="edatatype">BookCategoryTypeObject1</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.AuthorsTypeImpl" entity-name="AuthorsType" abstract="false" lazy="false" table="`authorstype`"> + <meta attribute="eclassName">AuthorsType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="authorName" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`authorstype_authorname_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`authorstype_authorname_idx`"/> + <element type="java.lang.String"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.BooksTypeImpl" entity-name="BooksType" abstract="false" lazy="false" table="`bookstype`"> + <meta attribute="eclassName">BooksType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="book" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`bookstype_book_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`bookstype_book_idx`"/> + <one-to-many entity-name="BookType"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.BookTypeImpl" entity-name="BookType" abstract="false" lazy="false" table="`booktype`"> + <meta attribute="eclassName">BookType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="iSBN" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`isbn`"/> + </property> + <property name="price" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`price`"/> + </property> + <many-to-one name="authors" entity-name="AuthorsType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`authorstype_authors_e_id`"/> + </many-to-one> + <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="promotion" entity-name="PromotionType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`promotiontype_promotion_e_id`"/> + </many-to-one> + <property name="publicationDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="true" unique="false" name="`publicationdate`"/> + </property> + <property name="bookCategory" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`bookcategory`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.sunBooks.BookCategoryType1</param> + </type> + </property> + <property name="itemId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`itemid`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.CollectionTypeImpl" entity-name="CollectionType" abstract="false" lazy="false" table="`collectiontype`"> + <meta attribute="eclassName">CollectionType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="books" entity-name="BooksType" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`bookstype_books_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.PromotionTypeImpl" entity-name="PromotionType" abstract="false" lazy="false" table="`promotiontype`"> + <meta attribute="eclassName">PromotionType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="discount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`discount`"/> + </property> + <property name="none" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`none`"/> + </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.test.emf.sample/WorkFlowAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..bd1a859d7 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,180 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:49 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowElementImpl" entity-name="WorkflowElement" abstract="true" lazy="false" discriminator-value="WorkflowElement" table="`workflowelement`"> + <meta attribute="eclassName">WorkflowElement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="x" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`x`"/> + </property> + <property name="y" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`y`"/> + </property> + <property name="width" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`width`"/> + </property> + <property name="height" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`height`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowImpl" entity-name="Workflow" abstract="false" lazy="false" extends="WorkflowElement" discriminator-value="Workflow"> + <meta attribute="eclassName">Workflow</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <list name="nodes" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`workflownode_workflow_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflow_nodes_idx`"/> + <one-to-many entity-name="WorkflowNode"/> + </list> + <list name="edges" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`edge_workflow_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflow_edges_idx`"/> + <one-to-many entity-name="Edge"/> + </list> + <list name="comments" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`comment_workflow_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflow_comments_idx`"/> + <one-to-many entity-name="Comment"/> + </list> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowNodeImpl" entity-name="WorkflowNode" abstract="true" lazy="false" extends="WorkflowElement" discriminator-value="WorkflowNode"> + <meta attribute="eclassName">WorkflowNode</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <many-to-one name="workflow" entity-name="Workflow" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`workflownode_workflow_id`"/> + </many-to-one> + <list name="outputs" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`outputport_node_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflownode_outputs_idx`"/> + <one-to-many entity-name="OutputPort"/> + </list> + <list name="inputs" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`inputport_node_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflownode_inputs_idx`"/> + <one-to-many entity-name="InputPort"/> + </list> + <property name="isStart" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`isstart`"/> + </property> + <property name="isFinish" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`isfinish`"/> + </property> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.EdgeImpl" entity-name="Edge" abstract="false" lazy="false" extends="WorkflowElement" discriminator-value="Edge"> + <meta attribute="eclassName">Edge</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <many-to-one name="workflow" entity-name="Workflow" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`edge_workflow_id`"/> + </many-to-one> + <many-to-one name="target" entity-name="InputPort" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`edge_target_id`"/> + </many-to-one> + <many-to-one name="source" entity-name="OutputPort" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`edge_source_id`"/> + </many-to-one> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.PortImpl" entity-name="Port" abstract="true" lazy="false" extends="WorkflowElement" discriminator-value="Port"> + <meta attribute="eclassName">Port</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.InputPortImpl" entity-name="InputPort" abstract="false" lazy="false" extends="Port" discriminator-value="InputPort"> + <meta attribute="eclassName">InputPort</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <many-to-one name="node" entity-name="WorkflowNode" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`inputport_node_id`"/> + </many-to-one> + <list name="edges" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`edge_target_id`" not-null="false" unique="false"/> + </key> + <list-index column="`inputport_edges_idx`"/> + <one-to-many entity-name="Edge"/> + </list> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.OutputPortImpl" entity-name="OutputPort" abstract="false" lazy="false" extends="Port" discriminator-value="OutputPort"> + <meta attribute="eclassName">OutputPort</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <many-to-one name="node" entity-name="WorkflowNode" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`outputport_node_id`"/> + </many-to-one> + <list name="edges" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`edge_source_id`" not-null="false" unique="false"/> + </key> + <list-index column="`outputport_edges_idx`"/> + <one-to-many entity-name="Edge"/> + </list> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.FaultImpl" entity-name="Fault" abstract="false" lazy="false" extends="OutputPort" discriminator-value="Fault"> + <meta attribute="eclassName">Fault</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.CompoundTaskImpl" entity-name="CompoundTask" abstract="false" lazy="false" extends="WorkflowNode" discriminator-value="CompoundTask"> + <meta attribute="eclassName">CompoundTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <many-to-one name="subworkflow" entity-name="Workflow" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`workflow_subworkflow_id`"/> + </many-to-one> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.TransformationTaskImpl" entity-name="TransformationTask" abstract="false" lazy="false" extends="WorkflowNode" discriminator-value="TransformationTask"> + <meta attribute="eclassName">TransformationTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <property name="transformExpression" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`transformexpression`"/> + </property> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.ConditionalTaskImpl" entity-name="ConditionalTask" abstract="false" lazy="false" extends="WorkflowNode" discriminator-value="ConditionalTask"> + <meta attribute="eclassName">ConditionalTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.LoopTaskImpl" entity-name="LoopTask" abstract="false" lazy="false" extends="CompoundTask" discriminator-value="LoopTask"> + <meta attribute="eclassName">LoopTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <property name="whileCondition" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`whilecondition`"/> + </property> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.ConditionalOutputPortImpl" entity-name="ConditionalOutputPort" abstract="false" lazy="false" extends="OutputPort" discriminator-value="ConditionalOutputPort"> + <meta attribute="eclassName">ConditionalOutputPort</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <property name="condition" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`condition`"/> + </property> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.CommentImpl" entity-name="Comment" abstract="false" lazy="false" extends="WorkflowElement" discriminator-value="Comment"> + <meta attribute="eclassName">Comment</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <many-to-one name="workflow" entity-name="Workflow" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`comment_workflow_id`"/> + </many-to-one> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.TaskImpl" entity-name="Task" abstract="false" lazy="false" extends="WorkflowNode" discriminator-value="Task"> + <meta attribute="eclassName">Task</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + </subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..226d24c90 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,221 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:31 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowElementImpl" entity-name="WorkflowElement" abstract="true" lazy="false" table="`workflowelement`"> + <meta attribute="eclassName">WorkflowElement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="x" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`x`"/> + </property> + <property name="y" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`y`"/> + </property> + <property name="width" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`width`"/> + </property> + <property name="height" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`height`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowImpl" entity-name="Workflow" abstract="false" lazy="false" extends="WorkflowElement" table="`workflow`"> + <meta attribute="eclassName">Workflow</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflowelement_id`"/> + </key> + <list name="nodes" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`workflownode_workflow_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflow_nodes_idx`"/> + <one-to-many entity-name="WorkflowNode"/> + </list> + <list name="edges" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`edge_workflow_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflow_edges_idx`"/> + <one-to-many entity-name="Edge"/> + </list> + <list name="comments" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`comment_workflow_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflow_comments_idx`"/> + <one-to-many entity-name="Comment"/> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowNodeImpl" entity-name="WorkflowNode" abstract="true" lazy="false" extends="WorkflowElement" table="`workflownode`"> + <meta attribute="eclassName">WorkflowNode</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflowelement_id`"/> + </key> + <many-to-one name="workflow" entity-name="Workflow" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`workflownode_workflow_id`"/> + </many-to-one> + <list name="outputs" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`outputport_node_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflownode_outputs_idx`"/> + <one-to-many entity-name="OutputPort"/> + </list> + <list name="inputs" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`inputport_node_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflownode_inputs_idx`"/> + <one-to-many entity-name="InputPort"/> + </list> + <property name="isStart" lazy="false" insert="true" update="true" not-null="true" unique="false" type="boolean"> + <column not-null="true" unique="false" name="`isstart`"/> + </property> + <property name="isFinish" lazy="false" insert="true" update="true" not-null="true" unique="false" type="boolean"> + <column not-null="true" unique="false" name="`isfinish`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.EdgeImpl" entity-name="Edge" abstract="false" lazy="false" extends="WorkflowElement" table="`edge`"> + <meta attribute="eclassName">Edge</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflowelement_id`"/> + </key> + <many-to-one name="workflow" entity-name="Workflow" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`edge_workflow_id`"/> + </many-to-one> + <many-to-one name="target" entity-name="InputPort" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`edge_target_id`"/> + </many-to-one> + <many-to-one name="source" entity-name="OutputPort" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`edge_source_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.PortImpl" entity-name="Port" abstract="true" lazy="false" extends="WorkflowElement" table="`port`"> + <meta attribute="eclassName">Port</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflowelement_id`"/> + </key> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.InputPortImpl" entity-name="InputPort" abstract="false" lazy="false" extends="Port" table="`inputport`"> + <meta attribute="eclassName">InputPort</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`port_id`"/> + </key> + <many-to-one name="node" entity-name="WorkflowNode" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`inputport_node_id`"/> + </many-to-one> + <list name="edges" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`edge_target_id`" not-null="false" unique="false"/> + </key> + <list-index column="`inputport_edges_idx`"/> + <one-to-many entity-name="Edge"/> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.OutputPortImpl" entity-name="OutputPort" abstract="false" lazy="false" extends="Port" table="`outputport`"> + <meta attribute="eclassName">OutputPort</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`port_id`"/> + </key> + <many-to-one name="node" entity-name="WorkflowNode" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`outputport_node_id`"/> + </many-to-one> + <list name="edges" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`edge_source_id`" not-null="false" unique="false"/> + </key> + <list-index column="`outputport_edges_idx`"/> + <one-to-many entity-name="Edge"/> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.FaultImpl" entity-name="Fault" abstract="false" lazy="false" extends="OutputPort" table="`fault`"> + <meta attribute="eclassName">Fault</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`outputport_id`"/> + </key> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.CompoundTaskImpl" entity-name="CompoundTask" abstract="false" lazy="false" extends="WorkflowNode" table="`compoundtask`"> + <meta attribute="eclassName">CompoundTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflownode_id`"/> + </key> + <many-to-one name="subworkflow" entity-name="Workflow" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`workflow_subworkflow_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.TransformationTaskImpl" entity-name="TransformationTask" abstract="false" lazy="false" extends="WorkflowNode" table="`transformationtask`"> + <meta attribute="eclassName">TransformationTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflownode_id`"/> + </key> + <property name="transformExpression" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`transformexpression`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.ConditionalTaskImpl" entity-name="ConditionalTask" abstract="false" lazy="false" extends="WorkflowNode" table="`conditionaltask`"> + <meta attribute="eclassName">ConditionalTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflownode_id`"/> + </key> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.LoopTaskImpl" entity-name="LoopTask" abstract="false" lazy="false" extends="CompoundTask" table="`looptask`"> + <meta attribute="eclassName">LoopTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`compoundtask_id`"/> + </key> + <property name="whileCondition" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`whilecondition`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.ConditionalOutputPortImpl" entity-name="ConditionalOutputPort" abstract="false" lazy="false" extends="OutputPort" table="`conditionaloutputport`"> + <meta attribute="eclassName">ConditionalOutputPort</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`outputport_id`"/> + </key> + <property name="condition" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`condition`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.CommentImpl" entity-name="Comment" abstract="false" lazy="false" extends="WorkflowElement" table="`comment`"> + <meta attribute="eclassName">Comment</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflowelement_id`"/> + </key> + <many-to-one name="workflow" entity-name="Workflow" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`comment_workflow_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.TaskImpl" entity-name="Task" abstract="false" lazy="false" extends="WorkflowNode" table="`task`"> + <meta attribute="eclassName">Task</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflownode_id`"/> + </key> + </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.test.emf.sample/WorkFlowAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..335a699e4 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,221 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:13:13 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowElementImpl" entity-name="WorkflowElement" abstract="true" lazy="false" table="`workflowelement`"> + <meta attribute="eclassName">WorkflowElement</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`comment`"/> + </property> + <property name="x" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`x`"/> + </property> + <property name="y" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`y`"/> + </property> + <property name="width" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`width`"/> + </property> + <property name="height" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`height`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowImpl" entity-name="Workflow" abstract="false" lazy="false" extends="WorkflowElement" table="`workflow`"> + <meta attribute="eclassName">Workflow</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflowelement_id`"/> + </key> + <list name="nodes" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`workflownode_workflow_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflow_nodes_idx`"/> + <one-to-many entity-name="WorkflowNode"/> + </list> + <list name="edges" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`edge_workflow_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflow_edges_idx`"/> + <one-to-many entity-name="Edge"/> + </list> + <list name="comments" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`comment_workflow_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflow_comments_idx`"/> + <one-to-many entity-name="Comment"/> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowNodeImpl" entity-name="WorkflowNode" abstract="true" lazy="false" extends="WorkflowElement" table="`workflownode`"> + <meta attribute="eclassName">WorkflowNode</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflowelement_id`"/> + </key> + <many-to-one name="workflow" entity-name="Workflow" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`workflownode_workflow_id`"/> + </many-to-one> + <list name="outputs" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`outputport_node_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflownode_outputs_idx`"/> + <one-to-many entity-name="OutputPort"/> + </list> + <list name="inputs" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`inputport_node_id`" not-null="false" unique="false"/> + </key> + <list-index column="`workflownode_inputs_idx`"/> + <one-to-many entity-name="InputPort"/> + </list> + <property name="isStart" lazy="false" insert="true" update="true" not-null="true" unique="false" type="boolean"> + <column not-null="true" unique="false" name="`isstart`"/> + </property> + <property name="isFinish" lazy="false" insert="true" update="true" not-null="true" unique="false" type="boolean"> + <column not-null="true" unique="false" name="`isfinish`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.EdgeImpl" entity-name="Edge" abstract="false" lazy="false" extends="WorkflowElement" table="`edge`"> + <meta attribute="eclassName">Edge</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflowelement_id`"/> + </key> + <many-to-one name="workflow" entity-name="Workflow" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`edge_workflow_id`"/> + </many-to-one> + <many-to-one name="target" entity-name="InputPort" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`edge_target_id`"/> + </many-to-one> + <many-to-one name="source" entity-name="OutputPort" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`edge_source_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.PortImpl" entity-name="Port" abstract="true" lazy="false" extends="WorkflowElement" table="`port`"> + <meta attribute="eclassName">Port</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflowelement_id`"/> + </key> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.InputPortImpl" entity-name="InputPort" abstract="false" lazy="false" extends="Port" table="`inputport`"> + <meta attribute="eclassName">InputPort</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`port_id`"/> + </key> + <many-to-one name="node" entity-name="WorkflowNode" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`inputport_node_id`"/> + </many-to-one> + <list name="edges" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`edge_target_id`" not-null="false" unique="false"/> + </key> + <list-index column="`inputport_edges_idx`"/> + <one-to-many entity-name="Edge"/> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.OutputPortImpl" entity-name="OutputPort" abstract="false" lazy="false" extends="Port" table="`outputport`"> + <meta attribute="eclassName">OutputPort</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`port_id`"/> + </key> + <many-to-one name="node" entity-name="WorkflowNode" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`outputport_node_id`"/> + </many-to-one> + <list name="edges" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`edge_source_id`" not-null="false" unique="false"/> + </key> + <list-index column="`outputport_edges_idx`"/> + <one-to-many entity-name="Edge"/> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.FaultImpl" entity-name="Fault" abstract="false" lazy="false" extends="OutputPort" table="`fault`"> + <meta attribute="eclassName">Fault</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`outputport_id`"/> + </key> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.CompoundTaskImpl" entity-name="CompoundTask" abstract="false" lazy="false" extends="WorkflowNode" table="`compoundtask`"> + <meta attribute="eclassName">CompoundTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflownode_id`"/> + </key> + <many-to-one name="subworkflow" entity-name="Workflow" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`workflow_subworkflow_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.TransformationTaskImpl" entity-name="TransformationTask" abstract="false" lazy="false" extends="WorkflowNode" table="`transformationtask`"> + <meta attribute="eclassName">TransformationTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflownode_id`"/> + </key> + <property name="transformExpression" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`transformexpression`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.ConditionalTaskImpl" entity-name="ConditionalTask" abstract="false" lazy="false" extends="WorkflowNode" table="`conditionaltask`"> + <meta attribute="eclassName">ConditionalTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflownode_id`"/> + </key> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.LoopTaskImpl" entity-name="LoopTask" abstract="false" lazy="false" extends="CompoundTask" table="`looptask`"> + <meta attribute="eclassName">LoopTask</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`compoundtask_id`"/> + </key> + <property name="whileCondition" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`whilecondition`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.ConditionalOutputPortImpl" entity-name="ConditionalOutputPort" abstract="false" lazy="false" extends="OutputPort" table="`conditionaloutputport`"> + <meta attribute="eclassName">ConditionalOutputPort</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`outputport_id`"/> + </key> + <property name="condition" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`condition`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.CommentImpl" entity-name="Comment" abstract="false" lazy="false" extends="WorkflowElement" table="`comment`"> + <meta attribute="eclassName">Comment</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflowelement_id`"/> + </key> + <many-to-one name="workflow" entity-name="Workflow" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> + <column not-null="false" unique="false" name="`comment_workflow_id`"/> + </many-to-one> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.TaskImpl" entity-name="Task" abstract="false" lazy="false" extends="WorkflowNode" table="`task`"> + <meta attribute="eclassName">Task</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> + <key> + <column name="`workflownode_id`"/> + </key> + </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.test.emf.schemaconstructs/DateTimeAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/DateTimeAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..a4720d7f6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/DateTimeAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,24 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:45 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.datetime.impl.TestDateImpl" entity-name="TestDate" abstract="false" lazy="false" discriminator-value="TestDate" table="`testdate`"> + <meta attribute="eclassName">TestDate</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/datetime</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="date" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="true" unique="false" name="`date`"/> + </property> + <property name="datetime" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDateTime"> + <column not-null="true" unique="false" name="`datetime`"/> + </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.test.emf.schemaconstructs/DateTimeAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/DateTimeAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..9dcc77f04 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/DateTimeAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,23 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:55 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.datetime.impl.TestDateImpl" entity-name="TestDate" abstract="false" lazy="false" table="`testdate`"> + <meta attribute="eclassName">TestDate</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/datetime</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="date" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="true" unique="false" name="`date`"/> + </property> + <property name="datetime" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDateTime"> + <column not-null="true" unique="false" name="`datetime`"/> + </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.test.emf.schemaconstructs/DateTimeAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/DateTimeAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..f172f0b0d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/DateTimeAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,23 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:35 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.datetime.impl.TestDateImpl" entity-name="TestDate" abstract="false" lazy="false" table="`testdate`"> + <meta attribute="eclassName">TestDate</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/datetime</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="date" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="true" unique="false" name="`date`"/> + </property> + <property name="datetime" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDateTime"> + <column not-null="true" unique="false" name="`datetime`"/> + </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.test.emf.schemaconstructs/EMapAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EMapAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..da9a9b85b --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EMapAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,57 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:46:36 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.emap.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/emap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <map name="writers" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`book_writers_e_id`" not-null="false" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <one-to-many entity-name="Writer"/> + </map> + <map name="keyWords" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`book_keywords_e_id`" not-null="false" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <element type="java.lang.String"/> + </map> + <map name="cityByWriter" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`book_citybywriter_e_id`" not-null="false" unique="false"/> + </key> + <map-key-many-to-many entity-name="Writer"/> + <element type="java.lang.String"/> + </map> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.emap.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/emap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EMapAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EMapAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..d2fbc3a27 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EMapAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:46:37 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.emap.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/emap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <map name="writers" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`book_writers_e_id`" not-null="false" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <one-to-many entity-name="Writer"/> + </map> + <map name="keyWords" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`book_keywords_e_id`" not-null="false" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <element type="java.lang.String"/> + </map> + <map name="cityByWriter" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`book_citybywriter_e_id`" not-null="false" unique="false"/> + </key> + <map-key-many-to-many entity-name="Writer"/> + <element type="java.lang.String"/> + </map> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.emap.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/emap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EMapAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EMapAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..76f272974 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EMapAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:48:31 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.emap.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> + <meta attribute="eclassName">Book</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/emap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`title`"/> + </property> + <map name="writers" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`book_writers_e_id`" not-null="false" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <one-to-many entity-name="Writer"/> + </map> + <map name="keyWords" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`book_keywords_e_id`" not-null="false" unique="false"/> + </key> + <map-key type="java.lang.String"/> + <element type="java.lang.String"/> + </map> + <map name="cityByWriter" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`book_citybywriter_e_id`" not-null="false" unique="false"/> + </key> + <map-key-many-to-many entity-name="Writer"/> + <element type="java.lang.String"/> + </map> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.emap.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> + <meta attribute="eclassName">Writer</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/emap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EcoreAttrsAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EcoreAttrsAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..97d941234 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EcoreAttrsAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,132 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:48 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.ecoreattrs.impl.ElementImpl" entity-name="Element" abstract="false" lazy="false" discriminator-value="Element" table="`element`"> + <meta attribute="eclassName">Element</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/ecoreattrs</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="nameMap" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`element_namemap_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`element_namemap_idx`"/> + <one-to-many entity-name="Element_nameMap"/> + </list> + </class> + <class entity-name="Element_nameMap" lazy="false" table="`element_namemap`"> + <meta attribute="featureMap">Element</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="names" entity-name="NameList" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`namelist_names_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.ecoreattrs.impl.FeatureImpl" entity-name="Feature" abstract="false" lazy="false" discriminator-value="Feature" table="`feature`"> + <meta attribute="eclassName">Feature</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/ecoreattrs</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="aMap" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`feature_amap_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`feature_amap_idx`"/> + <one-to-many entity-name="Feature_aMap"/> + </list> + </class> + <class entity-name="Feature_aMap" lazy="false" table="`feature_amap`"> + <meta attribute="featureMap">Feature</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.ecoreattrs.impl.MixedImpl" entity-name="Mixed" abstract="false" lazy="false" discriminator-value="Mixed" table="`mixed`"> + <meta attribute="eclassName">Mixed</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/ecoreattrs</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`mixed_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`mixed_mixed_idx`"/> + <one-to-many entity-name="Mixed_mixed"/> + </list> + </class> + <class entity-name="Mixed_mixed" lazy="false" table="`mixed_mixed`"> + <meta attribute="featureMap">Mixed</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`value`"/> + </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 name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.ecoreattrs.impl.NameListImpl" entity-name="NameList" abstract="false" lazy="false" discriminator-value="NameList" table="`namelist`"> + <meta attribute="eclassName">NameList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/ecoreattrs</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="firstName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`firstname`"/> + </property> + <property name="middleName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`middlename`"/> + </property> + <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> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EcoreAttrsAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EcoreAttrsAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..4236b0af6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EcoreAttrsAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,128 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:57 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.ecoreattrs.impl.ElementImpl" entity-name="Element" abstract="false" lazy="false" table="`element`"> + <meta attribute="eclassName">Element</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/ecoreattrs</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="nameMap" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`element_namemap_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`element_namemap_idx`"/> + <one-to-many entity-name="Element_nameMap"/> + </list> + </class> + <class entity-name="Element_nameMap" lazy="false" table="`element_namemap`"> + <meta attribute="featureMap">Element</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="names" entity-name="NameList" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`namelist_names_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.ecoreattrs.impl.FeatureImpl" entity-name="Feature" abstract="false" lazy="false" table="`feature`"> + <meta attribute="eclassName">Feature</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/ecoreattrs</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="aMap" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`feature_amap_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`feature_amap_idx`"/> + <one-to-many entity-name="Feature_aMap"/> + </list> + </class> + <class entity-name="Feature_aMap" lazy="false" table="`feature_amap`"> + <meta attribute="featureMap">Feature</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.ecoreattrs.impl.MixedImpl" entity-name="Mixed" abstract="false" lazy="false" table="`mixed`"> + <meta attribute="eclassName">Mixed</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/ecoreattrs</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`mixed_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`mixed_mixed_idx`"/> + <one-to-many entity-name="Mixed_mixed"/> + </list> + </class> + <class entity-name="Mixed_mixed" lazy="false" table="`mixed_mixed`"> + <meta attribute="featureMap">Mixed</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`value`"/> + </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 name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.ecoreattrs.impl.NameListImpl" entity-name="NameList" abstract="false" lazy="false" table="`namelist`"> + <meta attribute="eclassName">NameList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/ecoreattrs</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="firstName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`firstname`"/> + </property> + <property name="middleName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`middlename`"/> + </property> + <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> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EcoreAttrsAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EcoreAttrsAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..c6ae3386f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/EcoreAttrsAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,128 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:38 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.ecoreattrs.impl.ElementImpl" entity-name="Element" abstract="false" lazy="false" table="`element`"> + <meta attribute="eclassName">Element</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/ecoreattrs</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="nameMap" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`element_namemap_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`element_namemap_idx`"/> + <one-to-many entity-name="Element_nameMap"/> + </list> + </class> + <class entity-name="Element_nameMap" lazy="false" table="`element_namemap`"> + <meta attribute="featureMap">Element</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="names" entity-name="NameList" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`namelist_names_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.ecoreattrs.impl.FeatureImpl" entity-name="Feature" abstract="false" lazy="false" table="`feature`"> + <meta attribute="eclassName">Feature</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/ecoreattrs</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="aMap" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`feature_amap_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`feature_amap_idx`"/> + <one-to-many entity-name="Feature_aMap"/> + </list> + </class> + <class entity-name="Feature_aMap" lazy="false" table="`feature_amap`"> + <meta attribute="featureMap">Feature</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.ecoreattrs.impl.MixedImpl" entity-name="Mixed" abstract="false" lazy="false" table="`mixed`"> + <meta attribute="eclassName">Mixed</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/ecoreattrs</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`mixed_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`mixed_mixed_idx`"/> + <one-to-many entity-name="Mixed_mixed"/> + </list> + </class> + <class entity-name="Mixed_mixed" lazy="false" table="`mixed_mixed`"> + <meta attribute="featureMap">Mixed</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`value`"/> + </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 name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.ecoreattrs.impl.NameListImpl" entity-name="NameList" abstract="false" lazy="false" table="`namelist`"> + <meta attribute="eclassName">NameList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/ecoreattrs</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="firstName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`firstname`"/> + </property> + <property name="middleName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`middlename`"/> + </property> + <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> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ExtensionAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ExtensionAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..5d9e38df6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ExtensionAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,123 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:50 CEST 2007 --> +<hibernate-mapping> + <typedef name="extension.USStateObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</param> + <param name="edatatype">USStateObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" discriminator-value="Address" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.AddressListImpl" entity-name="AddressList" abstract="false" lazy="false" discriminator-value="AddressList" table="`addresslist`"> + <meta attribute="eclassName">AddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="firstAddress" entity-name="FirstAddressHolder" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`firstaddressholder_firstaddress_e_id`"/> + </many-to-one> + <list name="secondAddress" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`addresslist_secondaddress_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`addresslist_secondaddress_idx`"/> + <one-to-many entity-name="Address"/> + </list> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.UKAddressImpl" entity-name="UKAddress" abstract="false" lazy="false" extends="Address" discriminator-value="UKAddress"> + <meta attribute="eclassName">UKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <property name="postcode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`postcode`"/> + </property> + <property name="exportCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`exportcode`"/> + </property> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.DistrictUKAddressImpl" entity-name="DistrictUKAddress" abstract="false" lazy="false" extends="UKAddress" discriminator-value="DistrictUKAddress"> + <meta attribute="eclassName">DistrictUKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <property name="district" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`district`"/> + </property> + </subclass> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.FirstAddressHolderImpl" entity-name="FirstAddressHolder" abstract="false" lazy="false" discriminator-value="FirstAddressHolder" table="`firstaddressholder`"> + <meta attribute="eclassName">FirstAddressHolder</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="value" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`firstaddressholder_value_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`firstaddressholder_value_idx`"/> + <one-to-many entity-name="Address"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.InternationalPriceImpl" entity-name="InternationalPrice" abstract="false" lazy="false" discriminator-value="InternationalPrice" table="`internationalprice`"> + <meta attribute="eclassName">InternationalPrice</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal"> + <column not-null="false" unique="false" name="`value`"/> + </property> + <property name="currency" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`currency`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" discriminator-value="USAddress"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <property name="state" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`state`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.USState</param> + </type> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ExtensionAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ExtensionAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..d3e877b3e --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ExtensionAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,128 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:02 CEST 2007 --> +<hibernate-mapping> + <typedef name="extension.USStateObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</param> + <param name="edatatype">USStateObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.AddressListImpl" entity-name="AddressList" abstract="false" lazy="false" table="`addresslist`"> + <meta attribute="eclassName">AddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="firstAddress" entity-name="FirstAddressHolder" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`firstaddressholder_firstaddress_e_id`"/> + </many-to-one> + <list name="secondAddress" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`addresslist_secondaddress_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`addresslist_secondaddress_idx`"/> + <one-to-many entity-name="Address"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.UKAddressImpl" entity-name="UKAddress" abstract="false" lazy="false" extends="Address" table="`ukaddress`"> + <meta attribute="eclassName">UKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <key> + <column name="`address_e_id`"/> + </key> + <property name="postcode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`postcode`"/> + </property> + <property name="exportCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`exportcode`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.DistrictUKAddressImpl" entity-name="DistrictUKAddress" abstract="false" lazy="false" extends="UKAddress" table="`districtukaddress`"> + <meta attribute="eclassName">DistrictUKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <key> + <column name="`ukaddress_e_id`"/> + </key> + <property name="district" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`district`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.FirstAddressHolderImpl" entity-name="FirstAddressHolder" abstract="false" lazy="false" table="`firstaddressholder`"> + <meta attribute="eclassName">FirstAddressHolder</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="value" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`firstaddressholder_value_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`firstaddressholder_value_idx`"/> + <one-to-many entity-name="Address"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.InternationalPriceImpl" entity-name="InternationalPrice" abstract="false" lazy="false" table="`internationalprice`"> + <meta attribute="eclassName">InternationalPrice</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal"> + <column not-null="false" unique="false" name="`value`"/> + </property> + <property name="currency" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`currency`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`unitedstatesaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <key> + <column name="`address_e_id`"/> + </key> + <property name="state" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`state`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.USState</param> + </type> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </joined-subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ExtensionAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ExtensionAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..434268055 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ExtensionAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,128 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:40 CEST 2007 --> +<hibernate-mapping> + <typedef name="extension.USStateObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</param> + <param name="edatatype">USStateObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`street`"/> + </property> + <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`city`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.AddressListImpl" entity-name="AddressList" abstract="false" lazy="false" table="`addresslist`"> + <meta attribute="eclassName">AddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <many-to-one name="firstAddress" entity-name="FirstAddressHolder" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`firstaddressholder_firstaddress_e_id`"/> + </many-to-one> + <list name="secondAddress" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`addresslist_secondaddress_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`addresslist_secondaddress_idx`"/> + <one-to-many entity-name="Address"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.UKAddressImpl" entity-name="UKAddress" abstract="false" lazy="false" extends="Address" table="`ukaddress`"> + <meta attribute="eclassName">UKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <key> + <column name="`address_e_id`"/> + </key> + <property name="postcode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`postcode`"/> + </property> + <property name="exportCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`exportcode`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.DistrictUKAddressImpl" entity-name="DistrictUKAddress" abstract="false" lazy="false" extends="UKAddress" table="`districtukaddress`"> + <meta attribute="eclassName">DistrictUKAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <key> + <column name="`ukaddress_e_id`"/> + </key> + <property name="district" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`district`"/> + </property> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.FirstAddressHolderImpl" entity-name="FirstAddressHolder" abstract="false" lazy="false" table="`firstaddressholder`"> + <meta attribute="eclassName">FirstAddressHolder</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="value" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`firstaddressholder_value_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`firstaddressholder_value_idx`"/> + <one-to-many entity-name="Address"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.InternationalPriceImpl" entity-name="InternationalPrice" abstract="false" lazy="false" table="`internationalprice`"> + <meta attribute="eclassName">InternationalPrice</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal"> + <column not-null="false" unique="false" name="`value`"/> + </property> + <property name="currency" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`currency`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`unitedstatesaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/extension</meta> + <key> + <column name="`address_e_id`"/> + </key> + <property name="state" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`state`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.schemaconstructs.extension.USState</param> + </type> + </property> + <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`zip`"/> + </property> + </joined-subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/GroupAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/GroupAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..05bef79e4 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/GroupAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,162 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:51 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.AddressImpl" entity-name="Address" abstract="false" lazy="false" discriminator-value="Address" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`address_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`address_group_idx`"/> + <one-to-many entity-name="Address_group"/> + </list> + </class> + <class entity-name="Address_group" lazy="false" table="`address_group`"> + <meta attribute="featureMap">Address</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="longName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`longname`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.AddressGroupImpl" entity-name="AddressGroup" abstract="false" lazy="false" discriminator-value="AddressGroup" table="`addressgroup`"> + <meta attribute="eclassName">AddressGroup</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="groupName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`groupname`"/> + </property> + <many-to-one name="shipTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_shipto_e_id`"/> + </many-to-one> + <many-to-one name="billTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_billto_e_id`"/> + </many-to-one> + <property name="simpleAddress" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`simpleaddress`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.AddressListImpl" entity-name="AddressList" abstract="false" lazy="false" discriminator-value="AddressList" table="`addresslist`"> + <meta attribute="eclassName">AddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="groupName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`groupname`"/> + </property> + <list name="addrs" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`addresslist_addrs_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`addresslist_addrs_idx`"/> + <one-to-many entity-name="AddressList_addrs"/> + </list> + </class> + <class entity-name="AddressList_addrs" lazy="false" table="`addresslist_addrs`"> + <meta attribute="featureMap">AddressList</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="shipTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_shipto_e_id`"/> + </many-to-one> + <many-to-one name="billTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_billto_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.SimpleAllMapTypeImpl" entity-name="SimpleAllMapType" abstract="false" lazy="false" discriminator-value="SimpleAllMapType" table="`simpleallmaptype`"> + <meta attribute="eclassName">SimpleAllMapType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="allMap" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simpleallmaptype_allmap_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`simpleallmaptype_allmap_idx`"/> + <one-to-many entity-name="SimpleAllMapType_allMap"/> + </list> + </class> + <class entity-name="SimpleAllMapType_allMap" lazy="false" table="`simpleallmaptype_allmap`"> + <meta attribute="featureMap">SimpleAllMapType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="aaa" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`aaa`"/> + </property> + <property name="bbb" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`bbb`"/> + </property> + <property name="ccc" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`ccc`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.SimpleAllTypeImpl" entity-name="SimpleAllType" abstract="false" lazy="false" discriminator-value="SimpleAllType" table="`simplealltype`"> + <meta attribute="eclassName">SimpleAllType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="aaa" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`aaa`"/> + </property> + <property name="bbb" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`bbb`"/> + </property> + <property name="ccc" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ccc`"/> + </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.test.emf.schemaconstructs/GroupAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/GroupAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..d3c940ce6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/GroupAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,157 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:03 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.AddressImpl" entity-name="Address" abstract="false" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`address_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`address_group_idx`"/> + <one-to-many entity-name="Address_group"/> + </list> + </class> + <class entity-name="Address_group" lazy="false" table="`address_group`"> + <meta attribute="featureMap">Address</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="longName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`longname`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.AddressGroupImpl" entity-name="AddressGroup" abstract="false" lazy="false" table="`addressgroup`"> + <meta attribute="eclassName">AddressGroup</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="groupName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`groupname`"/> + </property> + <many-to-one name="shipTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_shipto_e_id`"/> + </many-to-one> + <many-to-one name="billTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_billto_e_id`"/> + </many-to-one> + <property name="simpleAddress" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`simpleaddress`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.AddressListImpl" entity-name="AddressList" abstract="false" lazy="false" table="`addresslist`"> + <meta attribute="eclassName">AddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="groupName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`groupname`"/> + </property> + <list name="addrs" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`addresslist_addrs_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`addresslist_addrs_idx`"/> + <one-to-many entity-name="AddressList_addrs"/> + </list> + </class> + <class entity-name="AddressList_addrs" lazy="false" table="`addresslist_addrs`"> + <meta attribute="featureMap">AddressList</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="shipTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_shipto_e_id`"/> + </many-to-one> + <many-to-one name="billTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_billto_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.SimpleAllMapTypeImpl" entity-name="SimpleAllMapType" abstract="false" lazy="false" table="`simpleallmaptype`"> + <meta attribute="eclassName">SimpleAllMapType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="allMap" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simpleallmaptype_allmap_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`simpleallmaptype_allmap_idx`"/> + <one-to-many entity-name="SimpleAllMapType_allMap"/> + </list> + </class> + <class entity-name="SimpleAllMapType_allMap" lazy="false" table="`simpleallmaptype_allmap`"> + <meta attribute="featureMap">SimpleAllMapType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="aaa" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`aaa`"/> + </property> + <property name="bbb" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`bbb`"/> + </property> + <property name="ccc" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`ccc`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.SimpleAllTypeImpl" entity-name="SimpleAllType" abstract="false" lazy="false" table="`simplealltype`"> + <meta attribute="eclassName">SimpleAllType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="aaa" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`aaa`"/> + </property> + <property name="bbb" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`bbb`"/> + </property> + <property name="ccc" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ccc`"/> + </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.test.emf.schemaconstructs/GroupAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/GroupAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..cf23a4607 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/GroupAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,157 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:41 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.AddressImpl" entity-name="Address" abstract="false" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`address_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`address_group_idx`"/> + <one-to-many entity-name="Address_group"/> + </list> + </class> + <class entity-name="Address_group" lazy="false" table="`address_group`"> + <meta attribute="featureMap">Address</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="longName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`longname`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.AddressGroupImpl" entity-name="AddressGroup" abstract="false" lazy="false" table="`addressgroup`"> + <meta attribute="eclassName">AddressGroup</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="groupName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`groupname`"/> + </property> + <many-to-one name="shipTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_shipto_e_id`"/> + </many-to-one> + <many-to-one name="billTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_billto_e_id`"/> + </many-to-one> + <property name="simpleAddress" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`simpleaddress`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.AddressListImpl" entity-name="AddressList" abstract="false" lazy="false" table="`addresslist`"> + <meta attribute="eclassName">AddressList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="groupName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`groupname`"/> + </property> + <list name="addrs" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`addresslist_addrs_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`addresslist_addrs_idx`"/> + <one-to-many entity-name="AddressList_addrs"/> + </list> + </class> + <class entity-name="AddressList_addrs" lazy="false" table="`addresslist_addrs`"> + <meta attribute="featureMap">AddressList</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="shipTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_shipto_e_id`"/> + </many-to-one> + <many-to-one name="billTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`address_billto_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.SimpleAllMapTypeImpl" entity-name="SimpleAllMapType" abstract="false" lazy="false" table="`simpleallmaptype`"> + <meta attribute="eclassName">SimpleAllMapType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="allMap" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simpleallmaptype_allmap_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`simpleallmaptype_allmap_idx`"/> + <one-to-many entity-name="SimpleAllMapType_allMap"/> + </list> + </class> + <class entity-name="SimpleAllMapType_allMap" lazy="false" table="`simpleallmaptype_allmap`"> + <meta attribute="featureMap">SimpleAllMapType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="aaa" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`aaa`"/> + </property> + <property name="bbb" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`bbb`"/> + </property> + <property name="ccc" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`ccc`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.groupall.impl.SimpleAllTypeImpl" entity-name="SimpleAllType" abstract="false" lazy="false" table="`simplealltype`"> + <meta attribute="eclassName">SimpleAllType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/groupall</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="aaa" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`aaa`"/> + </property> + <property name="bbb" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`bbb`"/> + </property> + <property name="ccc" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ccc`"/> + </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.test.emf.schemaconstructs/ListAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..684e77046 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:48 CEST 2007 --> +<hibernate-mapping> + <typedef name="list.SixStatesList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/list</param> + <param name="edatatype">SixStatesList</param> + </typedef> + <typedef name="list.StateList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/list</param> + <param name="edatatype">StateList</param> + </typedef> + <typedef name="list.StringList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/list</param> + <param name="edatatype">StringList</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.list.impl.statesByCountryImpl" entity-name="statesByCountry" abstract="false" lazy="false" discriminator-value="statesByCountry" table="`statesbycountry`"> + <meta attribute="eclassName">statesByCountry</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/list</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="country" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`country`"/> + </property> + <property name="index" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`index`"/> + </property> + <property name="allStates" lazy="false" insert="true" update="true" not-null="true" unique="false" type="list.StateList"> + <column not-null="true" unique="false" name="`allstates`"/> + </property> + <property name="sixImportantStates" lazy="false" insert="true" update="true" not-null="true" unique="false" type="list.SixStatesList"> + <column not-null="false" unique="false" name="`siximportantstates`"/> + </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.test.emf.schemaconstructs/ListAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..b3e6108f9 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,41 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:57 CEST 2007 --> +<hibernate-mapping> + <typedef name="list.SixStatesList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/list</param> + <param name="edatatype">SixStatesList</param> + </typedef> + <typedef name="list.StateList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/list</param> + <param name="edatatype">StateList</param> + </typedef> + <typedef name="list.StringList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/list</param> + <param name="edatatype">StringList</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.list.impl.statesByCountryImpl" entity-name="statesByCountry" abstract="false" lazy="false" table="`statesbycountry`"> + <meta attribute="eclassName">statesByCountry</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/list</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="country" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`country`"/> + </property> + <property name="index" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`index`"/> + </property> + <property name="allStates" lazy="false" insert="true" update="true" not-null="true" unique="false" type="list.StateList"> + <column not-null="true" unique="false" name="`allstates`"/> + </property> + <property name="sixImportantStates" lazy="false" insert="true" update="true" not-null="true" unique="false" type="list.SixStatesList"> + <column not-null="false" unique="false" name="`siximportantstates`"/> + </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.test.emf.schemaconstructs/ListAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..82d3edc34 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/ListAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,41 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:38 CEST 2007 --> +<hibernate-mapping> + <typedef name="list.SixStatesList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/list</param> + <param name="edatatype">SixStatesList</param> + </typedef> + <typedef name="list.StateList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/list</param> + <param name="edatatype">StateList</param> + </typedef> + <typedef name="list.StringList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/list</param> + <param name="edatatype">StringList</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.list.impl.statesByCountryImpl" entity-name="statesByCountry" abstract="false" lazy="false" table="`statesbycountry`"> + <meta attribute="eclassName">statesByCountry</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/list</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="country" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`country`"/> + </property> + <property name="index" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`index`"/> + </property> + <property name="allStates" lazy="false" insert="true" update="true" not-null="true" unique="false" type="list.StateList"> + <column not-null="true" unique="false" name="`allstates`"/> + </property> + <property name="sixImportantStates" lazy="false" insert="true" update="true" not-null="true" unique="false" type="list.SixStatesList"> + <column not-null="false" unique="false" name="`siximportantstates`"/> + </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.test.emf.schemaconstructs/MixedAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/MixedAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..7394689f6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/MixedAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:48 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.mixed.impl.LetterBodyTypeImpl" entity-name="LetterBodyType" abstract="false" lazy="false" discriminator-value="LetterBodyType" table="`letterbodytype`"> + <meta attribute="eclassName">LetterBodyType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/mixed</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`letterbodytype_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`letterbodytype_mixed_idx`"/> + <one-to-many entity-name="LetterBodyType_mixed"/> + </list> + </class> + <class entity-name="LetterBodyType_mixed" lazy="false" table="`letterbodytype_mixed`"> + <meta attribute="featureMap">LetterBodyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="salutation" entity-name="SalutationType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`salutationtype_salutation_e_id`"/> + </many-to-one> + <property name="quantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`quantity`"/> + </property> + <property name="productName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`productname`"/> + </property> + <property name="shipDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`shipdate`"/> + </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 name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.mixed.impl.SalutationTypeImpl" entity-name="SalutationType" abstract="false" lazy="false" discriminator-value="SalutationType" table="`salutationtype`"> + <meta attribute="eclassName">SalutationType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/mixed</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`salutationtype_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`salutationtype_mixed_idx`"/> + <one-to-many entity-name="SalutationType_mixed"/> + </list> + </class> + <class entity-name="SalutationType_mixed" lazy="false" table="`salutationtype_mixed`"> + <meta attribute="featureMap">SalutationType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="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> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/MixedAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/MixedAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..8d75204ca --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/MixedAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:00 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.mixed.impl.LetterBodyTypeImpl" entity-name="LetterBodyType" abstract="false" lazy="false" table="`letterbodytype`"> + <meta attribute="eclassName">LetterBodyType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/mixed</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`letterbodytype_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`letterbodytype_mixed_idx`"/> + <one-to-many entity-name="LetterBodyType_mixed"/> + </list> + </class> + <class entity-name="LetterBodyType_mixed" lazy="false" table="`letterbodytype_mixed`"> + <meta attribute="featureMap">LetterBodyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="salutation" entity-name="SalutationType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`salutationtype_salutation_e_id`"/> + </many-to-one> + <property name="quantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`quantity`"/> + </property> + <property name="productName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`productname`"/> + </property> + <property name="shipDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`shipdate`"/> + </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 name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.mixed.impl.SalutationTypeImpl" entity-name="SalutationType" abstract="false" lazy="false" table="`salutationtype`"> + <meta attribute="eclassName">SalutationType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/mixed</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`salutationtype_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`salutationtype_mixed_idx`"/> + <one-to-many entity-name="SalutationType_mixed"/> + </list> + </class> + <class entity-name="SalutationType_mixed" lazy="false" table="`salutationtype_mixed`"> + <meta attribute="featureMap">SalutationType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="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> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/MixedAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/MixedAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..15053f280 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/MixedAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:39 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.mixed.impl.LetterBodyTypeImpl" entity-name="LetterBodyType" abstract="false" lazy="false" table="`letterbodytype`"> + <meta attribute="eclassName">LetterBodyType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/mixed</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`letterbodytype_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`letterbodytype_mixed_idx`"/> + <one-to-many entity-name="LetterBodyType_mixed"/> + </list> + </class> + <class entity-name="LetterBodyType_mixed" lazy="false" table="`letterbodytype_mixed`"> + <meta attribute="featureMap">LetterBodyType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="salutation" entity-name="SalutationType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`salutationtype_salutation_e_id`"/> + </many-to-one> + <property name="quantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`quantity`"/> + </property> + <property name="productName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`productname`"/> + </property> + <property name="shipDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`shipdate`"/> + </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 name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.mixed.impl.SalutationTypeImpl" entity-name="SalutationType" abstract="false" lazy="false" table="`salutationtype`"> + <meta attribute="eclassName">SalutationType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/mixed</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`salutationtype_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`salutationtype_mixed_idx`"/> + <one-to-many entity-name="SalutationType_mixed"/> + </list> + </class> + <class entity-name="SalutationType_mixed" lazy="false" table="`salutationtype_mixed`"> + <meta attribute="featureMap">SalutationType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="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> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/NestedGroupAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/NestedGroupAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..5bc4121f8 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/NestedGroupAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,123 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:52 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.nestedgroup.impl.AImpl" entity-name="A" abstract="false" lazy="false" discriminator-value="A" table="`a`"> + <meta attribute="eclassName">A</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/nestedgroup</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`a_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`a_group_idx`"/> + <one-to-many entity-name="A_group"/> + </list> + </class> + <class entity-name="A_group" lazy="false" table="`a_group`"> + <meta attribute="featureMap">A</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="b" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`b`"/> + </property> + <many-to-one name="c" entity-name="CType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`ctype_c_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.nestedgroup.impl.CTypeImpl" entity-name="CType" abstract="false" lazy="false" discriminator-value="CType" table="`ctype`"> + <meta attribute="eclassName">CType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/nestedgroup</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="cname" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`cname`"/> + </property> + <property name="cvalue" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`cvalue`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.nestedgroup.impl.ElementImpl" entity-name="Element" abstract="false" lazy="false" discriminator-value="Element" table="`element`"> + <meta attribute="eclassName">Element</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/nestedgroup</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`element_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`element_mixed_idx`"/> + <one-to-many entity-name="Element_mixed"/> + </list> + </class> + <class entity-name="Element_mixed" lazy="false" table="`element_mixed`"> + <meta attribute="featureMap">Element</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="true" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`element_true_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`element_true_idx`"/> + <one-to-many entity-name="Element_true"/> + </list> + <many-to-one name="c" entity-name="CType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`ctype_c_e_id`"/> + </many-to-one> + <many-to-one name="recursive" entity-name="Element" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`element_recursive_e_id`"/> + </many-to-one> + <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="Element_true" lazy="false" table="`element_true`"> + <meta attribute="featureMap">Element</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="c" entity-name="CType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`ctype_c_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.test.emf.schemaconstructs/NestedGroupAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/NestedGroupAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..06f876263 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/NestedGroupAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,120 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:04 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.nestedgroup.impl.AImpl" entity-name="A" abstract="false" lazy="false" table="`a`"> + <meta attribute="eclassName">A</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/nestedgroup</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`a_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`a_group_idx`"/> + <one-to-many entity-name="A_group"/> + </list> + </class> + <class entity-name="A_group" lazy="false" table="`a_group`"> + <meta attribute="featureMap">A</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="b" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`b`"/> + </property> + <many-to-one name="c" entity-name="CType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`ctype_c_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.nestedgroup.impl.CTypeImpl" entity-name="CType" abstract="false" lazy="false" table="`ctype`"> + <meta attribute="eclassName">CType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/nestedgroup</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="cname" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`cname`"/> + </property> + <property name="cvalue" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`cvalue`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.nestedgroup.impl.ElementImpl" entity-name="Element" abstract="false" lazy="false" table="`element`"> + <meta attribute="eclassName">Element</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/nestedgroup</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`element_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`element_mixed_idx`"/> + <one-to-many entity-name="Element_mixed"/> + </list> + </class> + <class entity-name="Element_mixed" lazy="false" table="`element_mixed`"> + <meta attribute="featureMap">Element</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="true" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`element_true_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`element_true_idx`"/> + <one-to-many entity-name="Element_true"/> + </list> + <many-to-one name="c" entity-name="CType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`ctype_c_e_id`"/> + </many-to-one> + <many-to-one name="recursive" entity-name="Element" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`element_recursive_e_id`"/> + </many-to-one> + <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="Element_true" lazy="false" table="`element_true`"> + <meta attribute="featureMap">Element</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="c" entity-name="CType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`ctype_c_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.test.emf.schemaconstructs/NestedGroupAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/NestedGroupAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..ac8c694a7 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/NestedGroupAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,120 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:42 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.nestedgroup.impl.AImpl" entity-name="A" abstract="false" lazy="false" table="`a`"> + <meta attribute="eclassName">A</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/nestedgroup</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="group" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`a_group_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`a_group_idx`"/> + <one-to-many entity-name="A_group"/> + </list> + </class> + <class entity-name="A_group" lazy="false" table="`a_group`"> + <meta attribute="featureMap">A</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="b" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`b`"/> + </property> + <many-to-one name="c" entity-name="CType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`ctype_c_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.nestedgroup.impl.CTypeImpl" entity-name="CType" abstract="false" lazy="false" table="`ctype`"> + <meta attribute="eclassName">CType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/nestedgroup</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="cname" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`cname`"/> + </property> + <property name="cvalue" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`cvalue`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.nestedgroup.impl.ElementImpl" entity-name="Element" abstract="false" lazy="false" table="`element`"> + <meta attribute="eclassName">Element</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/nestedgroup</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="mixed" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`element_mixed_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`element_mixed_idx`"/> + <one-to-many entity-name="Element_mixed"/> + </list> + </class> + <class entity-name="Element_mixed" lazy="false" table="`element_mixed`"> + <meta attribute="featureMap">Element</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <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="true" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`element_true_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`element_true_idx`"/> + <one-to-many entity-name="Element_true"/> + </list> + <many-to-one name="c" entity-name="CType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`ctype_c_e_id`"/> + </many-to-one> + <many-to-one name="recursive" entity-name="Element" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`element_recursive_e_id`"/> + </many-to-one> + <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="Element_true" lazy="false" table="`element_true`"> + <meta attribute="featureMap">Element</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="c" entity-name="CType" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`ctype_c_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.test.emf.schemaconstructs/RestrictionAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/RestrictionAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..4b4116e37 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/RestrictionAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:50 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.restriction.impl.XMLDeviantImpl" entity-name="XMLDeviant" abstract="false" lazy="false" discriminator-value="XMLDeviant" table="`xmldeviant`"> + <meta attribute="eclassName">XMLDeviant</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/restriction</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="numPosts" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`numposts`"/> + </property> + <property name="signature" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`signature`"/> + </property> + <property name="email" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`email`"/> + </property> + <property name="firstSubscribed" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`firstsubscribed`"/> + </property> + <property name="mailReader" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`mailreader`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.restriction.impl.MemberImpl" entity-name="Member" abstract="false" lazy="false" extends="XMLDeviant" discriminator-value="Member"> + <meta attribute="eclassName">Member</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/restriction</meta> + </subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/RestrictionAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/RestrictionAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..e0f69d151 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/RestrictionAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,39 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:01 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.restriction.impl.XMLDeviantImpl" entity-name="XMLDeviant" abstract="false" lazy="false" table="`xmldeviant`"> + <meta attribute="eclassName">XMLDeviant</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/restriction</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="numPosts" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`numposts`"/> + </property> + <property name="signature" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`signature`"/> + </property> + <property name="email" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`email`"/> + </property> + <property name="firstSubscribed" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`firstsubscribed`"/> + </property> + <property name="mailReader" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`mailreader`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.restriction.impl.MemberImpl" entity-name="Member" abstract="false" lazy="false" extends="XMLDeviant" table="`member`"> + <meta attribute="eclassName">Member</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/restriction</meta> + <key> + <column name="`xmldeviant_e_id`"/> + </key> + </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.test.emf.schemaconstructs/RestrictionAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/RestrictionAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..cd4add034 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/RestrictionAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,39 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:40 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.restriction.impl.XMLDeviantImpl" entity-name="XMLDeviant" abstract="false" lazy="false" table="`xmldeviant`"> + <meta attribute="eclassName">XMLDeviant</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/restriction</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="numPosts" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`numposts`"/> + </property> + <property name="signature" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`signature`"/> + </property> + <property name="email" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`email`"/> + </property> + <property name="firstSubscribed" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> + <column not-null="false" unique="false" name="`firstsubscribed`"/> + </property> + <property name="mailReader" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`mailreader`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.restriction.impl.MemberImpl" entity-name="Member" abstract="false" lazy="false" extends="XMLDeviant" table="`member`"> + <meta attribute="eclassName">Member</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/restriction</meta> + <key> + <column name="`xmldeviant_e_id`"/> + </key> + </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.test.emf.schemaconstructs/SimpleTypeAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..155e025ac --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,210 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:46 CEST 2007 --> +<hibernate-mapping> + <typedef name="simpletypes.SimpleEnumObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/simpletypes</param> + <param name="edatatype">SimpleEnumObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.impl.SimpleListImpl" entity-name="SimpleList" abstract="false" lazy="false" discriminator-value="SimpleList" table="`simplelist`"> + <meta attribute="eclassName">SimpleList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/simpletypes</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`code`"/> + </property> + <list name="boo" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_boo_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_boo_idx`"/> + <element type="boolean"/> + </list> + <list name="byt" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_byt_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_byt_idx`"/> + <element type="java.lang.Byte"/> + </list> + <list name="doubl" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_doubl_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_doubl_idx`"/> + <element type="java.lang.Double"/> + </list> + <list name="floa" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_floa_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_floa_idx`"/> + <element type="java.lang.Float"/> + </list> + <list name="inte" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_inte_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_inte_idx`"/> + <element type="java.lang.Integer"/> + </list> + <list name="long" table="`longnum`" lazy="true" cascade="all,delete-orphan"> + <key/> + <list-index column="`simplelist_long_idx`"/> + <element type="java.lang.Long"/> + </list> + <list name="shor" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_shor_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_shor_idx`"/> + <element type="short"/> + </list> + <list name="dat" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_dat_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_dat_idx`"/> + <element type="java.util.Date"/> + </list> + <list name="limitedstring" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_limitedstring_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_limitedstring_idx`"/> + <element type="java.lang.String"/> + </list> + <array name="intArray" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_intarray_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_intarray_idx`"/> + <element type="int"/> + </array> + <array name="doubleArray" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_doublearray_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_doublearray_idx`"/> + <element type="double"/> + </array> + <array name="stringArray" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_stringarray_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_stringarray_idx`"/> + <element type="java.lang.String"/> + </array> + <array name="byteArray" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_bytearray_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_bytearray_idx`"/> + <element type="byte"/> + </array> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.impl.SimpleTypeImpl" entity-name="SimpleType" abstract="false" lazy="false" discriminator-value="SimpleType" table="`simpletype`"> + <meta attribute="eclassName">SimpleType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/simpletypes</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`code`"/> + </property> + <property name="boo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`boo`"/> + </property> + <property name="byt" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> + <column not-null="false" unique="false" name="`byt`"/> + </property> + <property name="doubl" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`doubl`"/> + </property> + <property name="float" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`float`"/> + </property> + <property name="inte" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`inte`"/> + </property> + <property name="lon" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`lon`"/> + </property> + <property name="shor" lazy="false" insert="true" update="true" not-null="false" unique="false" type="short"> + <column not-null="false" unique="false" name="`shor`"/> + </property> + <property name="enu" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`enu`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.SimpleEnum</param> + </type> + </property> + <property name="dat" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" unique="false" name="`dat`"/> + </property> + <property name="limitedstring" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`limitedstring`" length="10"/> + </property> + <property name="limitedDecimal" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal"> + <column not-null="false" unique="false" name="`limiteddecimal`" precision="4" scale="1"/> + </property> + <property name="extraLimitedString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`extralimitedstring`" length="5"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.impl.SimpleTypeObjectImpl" entity-name="SimpleTypeObject" abstract="false" lazy="false" discriminator-value="SimpleTypeObject" table="`simpletypeobject`"> + <meta attribute="eclassName">SimpleTypeObject</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/simpletypes</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`code`"/> + </property> + <property name="boo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Boolean"> + <column not-null="false" unique="false" name="`boo`"/> + </property> + <property name="byt" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Byte"> + <column not-null="false" unique="false" name="`byt`"/> + </property> + <property name="doubl" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Double"> + <column not-null="false" unique="false" name="`doubl`"/> + </property> + <property name="float" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Float"> + <column not-null="false" unique="false" name="`float`"/> + </property> + <property name="inte" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Integer"> + <column not-null="false" unique="false" name="`inte`"/> + </property> + <property name="lon" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`lon`"/> + </property> + <property name="shor" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Short"> + <column not-null="false" unique="false" name="`shor`"/> + </property> + <property name="enu" lazy="false" not-null="false" insert="true" update="true" unique="false" type="simpletypes.SimpleEnumObject"> + <column not-null="false" unique="false" name="`enu`"/> + </property> + <property name="dat" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`dat`"/> + </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.test.emf.schemaconstructs/SimpleTypeAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..dffad5c7f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,207 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:55 CEST 2007 --> +<hibernate-mapping> + <typedef name="simpletypes.SimpleEnumObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/simpletypes</param> + <param name="edatatype">SimpleEnumObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.impl.SimpleListImpl" entity-name="SimpleList" abstract="false" lazy="false" table="`simplelist`"> + <meta attribute="eclassName">SimpleList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/simpletypes</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`code`"/> + </property> + <list name="boo" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_boo_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_boo_idx`"/> + <element type="boolean"/> + </list> + <list name="byt" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_byt_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_byt_idx`"/> + <element type="java.lang.Byte"/> + </list> + <list name="doubl" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_doubl_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_doubl_idx`"/> + <element type="java.lang.Double"/> + </list> + <list name="floa" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_floa_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_floa_idx`"/> + <element type="java.lang.Float"/> + </list> + <list name="inte" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_inte_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_inte_idx`"/> + <element type="java.lang.Integer"/> + </list> + <list name="long" table="`longnum`" lazy="true" cascade="all,delete-orphan"> + <key/> + <list-index column="`simplelist_long_idx`"/> + <element type="java.lang.Long"/> + </list> + <list name="shor" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_shor_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_shor_idx`"/> + <element type="short"/> + </list> + <list name="dat" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_dat_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_dat_idx`"/> + <element type="java.util.Date"/> + </list> + <list name="limitedstring" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_limitedstring_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_limitedstring_idx`"/> + <element type="java.lang.String"/> + </list> + <array name="intArray" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_intarray_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_intarray_idx`"/> + <element type="int"/> + </array> + <array name="doubleArray" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_doublearray_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_doublearray_idx`"/> + <element type="double"/> + </array> + <array name="stringArray" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_stringarray_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_stringarray_idx`"/> + <element type="java.lang.String"/> + </array> + <array name="byteArray" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_bytearray_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_bytearray_idx`"/> + <element type="byte"/> + </array> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.impl.SimpleTypeImpl" entity-name="SimpleType" abstract="false" lazy="false" table="`simpletype`"> + <meta attribute="eclassName">SimpleType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/simpletypes</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`code`"/> + </property> + <property name="boo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`boo`"/> + </property> + <property name="byt" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> + <column not-null="false" unique="false" name="`byt`"/> + </property> + <property name="doubl" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`doubl`"/> + </property> + <property name="float" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`float`"/> + </property> + <property name="inte" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`inte`"/> + </property> + <property name="lon" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`lon`"/> + </property> + <property name="shor" lazy="false" insert="true" update="true" not-null="false" unique="false" type="short"> + <column not-null="false" unique="false" name="`shor`"/> + </property> + <property name="enu" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`enu`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.SimpleEnum</param> + </type> + </property> + <property name="dat" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" unique="false" name="`dat`"/> + </property> + <property name="limitedstring" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`limitedstring`" length="10"/> + </property> + <property name="limitedDecimal" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal"> + <column not-null="false" unique="false" name="`limiteddecimal`" precision="4" scale="1"/> + </property> + <property name="extraLimitedString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`extralimitedstring`" length="5"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.impl.SimpleTypeObjectImpl" entity-name="SimpleTypeObject" abstract="false" lazy="false" table="`simpletypeobject`"> + <meta attribute="eclassName">SimpleTypeObject</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/simpletypes</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`code`"/> + </property> + <property name="boo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Boolean"> + <column not-null="false" unique="false" name="`boo`"/> + </property> + <property name="byt" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Byte"> + <column not-null="false" unique="false" name="`byt`"/> + </property> + <property name="doubl" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Double"> + <column not-null="false" unique="false" name="`doubl`"/> + </property> + <property name="float" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Float"> + <column not-null="false" unique="false" name="`float`"/> + </property> + <property name="inte" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Integer"> + <column not-null="false" unique="false" name="`inte`"/> + </property> + <property name="lon" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`lon`"/> + </property> + <property name="shor" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Short"> + <column not-null="false" unique="false" name="`shor`"/> + </property> + <property name="enu" lazy="false" not-null="false" insert="true" update="true" unique="false" type="simpletypes.SimpleEnumObject"> + <column not-null="false" unique="false" name="`enu`"/> + </property> + <property name="dat" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`dat`"/> + </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.test.emf.schemaconstructs/SimpleTypeAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..14aeae524 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimpleTypeAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,207 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:36 CEST 2007 --> +<hibernate-mapping> + <typedef name="simpletypes.SimpleEnumObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/simpletypes</param> + <param name="edatatype">SimpleEnumObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.impl.SimpleListImpl" entity-name="SimpleList" abstract="false" lazy="false" table="`simplelist`"> + <meta attribute="eclassName">SimpleList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/simpletypes</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`code`"/> + </property> + <list name="boo" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_boo_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_boo_idx`"/> + <element type="boolean"/> + </list> + <list name="byt" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_byt_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_byt_idx`"/> + <element type="java.lang.Byte"/> + </list> + <list name="doubl" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_doubl_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_doubl_idx`"/> + <element type="java.lang.Double"/> + </list> + <list name="floa" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_floa_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_floa_idx`"/> + <element type="java.lang.Float"/> + </list> + <list name="inte" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_inte_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_inte_idx`"/> + <element type="java.lang.Integer"/> + </list> + <list name="long" table="`longnum`" lazy="true" cascade="all,delete-orphan"> + <key/> + <list-index column="`simplelist_long_idx`"/> + <element type="java.lang.Long"/> + </list> + <list name="shor" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_shor_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_shor_idx`"/> + <element type="short"/> + </list> + <list name="dat" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_dat_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_dat_idx`"/> + <element type="java.util.Date"/> + </list> + <list name="limitedstring" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_limitedstring_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_limitedstring_idx`"/> + <element type="java.lang.String"/> + </list> + <array name="intArray" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_intarray_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_intarray_idx`"/> + <element type="int"/> + </array> + <array name="doubleArray" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_doublearray_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_doublearray_idx`"/> + <element type="double"/> + </array> + <array name="stringArray" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_stringarray_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_stringarray_idx`"/> + <element type="java.lang.String"/> + </array> + <array name="byteArray" cascade="all,delete-orphan"> + <key update="true"> + <column name="`simplelist_bytearray_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`simplelist_bytearray_idx`"/> + <element type="byte"/> + </array> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.impl.SimpleTypeImpl" entity-name="SimpleType" abstract="false" lazy="false" table="`simpletype`"> + <meta attribute="eclassName">SimpleType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/simpletypes</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`code`"/> + </property> + <property name="boo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> + <column not-null="false" unique="false" name="`boo`"/> + </property> + <property name="byt" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> + <column not-null="false" unique="false" name="`byt`"/> + </property> + <property name="doubl" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> + <column not-null="false" unique="false" name="`doubl`"/> + </property> + <property name="float" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`float`"/> + </property> + <property name="inte" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`inte`"/> + </property> + <property name="lon" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`lon`"/> + </property> + <property name="shor" lazy="false" insert="true" update="true" not-null="false" unique="false" type="short"> + <column not-null="false" unique="false" name="`shor`"/> + </property> + <property name="enu" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`enu`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.SimpleEnum</param> + </type> + </property> + <property name="dat" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" unique="false" name="`dat`"/> + </property> + <property name="limitedstring" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`limitedstring`" length="10"/> + </property> + <property name="limitedDecimal" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal"> + <column not-null="false" unique="false" name="`limiteddecimal`" precision="4" scale="1"/> + </property> + <property name="extraLimitedString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`extralimitedstring`" length="5"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simpletypes.impl.SimpleTypeObjectImpl" entity-name="SimpleTypeObject" abstract="false" lazy="false" table="`simpletypeobject`"> + <meta attribute="eclassName">SimpleTypeObject</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/simpletypes</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`code`"/> + </property> + <property name="boo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Boolean"> + <column not-null="false" unique="false" name="`boo`"/> + </property> + <property name="byt" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Byte"> + <column not-null="false" unique="false" name="`byt`"/> + </property> + <property name="doubl" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Double"> + <column not-null="false" unique="false" name="`doubl`"/> + </property> + <property name="float" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Float"> + <column not-null="false" unique="false" name="`float`"/> + </property> + <property name="inte" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Integer"> + <column not-null="false" unique="false" name="`inte`"/> + </property> + <property name="lon" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Long"> + <column not-null="false" unique="false" name="`lon`"/> + </property> + <property name="shor" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Short"> + <column not-null="false" unique="false" name="`shor`"/> + </property> + <property name="enu" lazy="false" not-null="false" insert="true" update="true" unique="false" type="simpletypes.SimpleEnumObject"> + <column not-null="false" unique="false" name="`enu`"/> + </property> + <property name="dat" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> + <column not-null="false" unique="false" name="`dat`"/> + </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.test.emf.schemaconstructs/SimplefeaturemapAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimplefeaturemapAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..8a872921a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimplefeaturemapAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:49 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simplefeaturemap.impl.PurchaseOrderImpl" entity-name="PurchaseOrder" abstract="false" lazy="false" discriminator-value="PurchaseOrder" table="`purchaseorder`"> + <meta attribute="eclassName">PurchaseOrder</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/simplefeaturemap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simplefeaturemap.impl.SupplierImpl" entity-name="Supplier" abstract="false" lazy="false" discriminator-value="Supplier" table="`supplier`"> + <meta attribute="eclassName">Supplier</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/simplefeaturemap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="orders" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`supplier_orders_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`supplier_orders_idx`"/> + <one-to-many entity-name="Supplier_orders"/> + </list> + </class> + <class entity-name="Supplier_orders" lazy="false" table="`supplier_orders`"> + <meta attribute="featureMap">Supplier</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="preferredOrders" entity-name="PurchaseOrder" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`purchaseorder_preferredorders_e_id`"/> + </many-to-one> + <many-to-one name="standardOrders" entity-name="PurchaseOrder" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`purchaseorder_standardorders_e_id`"/> + </many-to-one> + <property name="hardCopyOrderReference" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`hardcopyorderreference`"/> + </property> + <property name="hardCopyOrderNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`hardcopyordernumber`"/> + </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.test.emf.schemaconstructs/SimplefeaturemapAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimplefeaturemapAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..a319f83d4 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimplefeaturemapAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,63 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:01 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simplefeaturemap.impl.PurchaseOrderImpl" entity-name="PurchaseOrder" abstract="false" lazy="false" table="`purchaseorder`"> + <meta attribute="eclassName">PurchaseOrder</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/simplefeaturemap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simplefeaturemap.impl.SupplierImpl" entity-name="Supplier" abstract="false" lazy="false" table="`supplier`"> + <meta attribute="eclassName">Supplier</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/simplefeaturemap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="orders" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`supplier_orders_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`supplier_orders_idx`"/> + <one-to-many entity-name="Supplier_orders"/> + </list> + </class> + <class entity-name="Supplier_orders" lazy="false" table="`supplier_orders`"> + <meta attribute="featureMap">Supplier</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="preferredOrders" entity-name="PurchaseOrder" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`purchaseorder_preferredorders_e_id`"/> + </many-to-one> + <many-to-one name="standardOrders" entity-name="PurchaseOrder" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`purchaseorder_standardorders_e_id`"/> + </many-to-one> + <property name="hardCopyOrderReference" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`hardcopyorderreference`"/> + </property> + <property name="hardCopyOrderNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`hardcopyordernumber`"/> + </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.test.emf.schemaconstructs/SimplefeaturemapAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimplefeaturemapAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..3acd13aec --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SimplefeaturemapAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,63 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:39 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simplefeaturemap.impl.PurchaseOrderImpl" entity-name="PurchaseOrder" abstract="false" lazy="false" table="`purchaseorder`"> + <meta attribute="eclassName">PurchaseOrder</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/simplefeaturemap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.simplefeaturemap.impl.SupplierImpl" entity-name="Supplier" abstract="false" lazy="false" table="`supplier`"> + <meta attribute="eclassName">Supplier</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/simplefeaturemap</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="orders" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`supplier_orders_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`supplier_orders_idx`"/> + <one-to-many entity-name="Supplier_orders"/> + </list> + </class> + <class entity-name="Supplier_orders" lazy="false" table="`supplier_orders`"> + <meta attribute="featureMap">Supplier</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="preferredOrders" entity-name="PurchaseOrder" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`purchaseorder_preferredorders_e_id`"/> + </many-to-one> + <many-to-one name="standardOrders" entity-name="PurchaseOrder" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`purchaseorder_standardorders_e_id`"/> + </many-to-one> + <property name="hardCopyOrderReference" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`hardcopyorderreference`"/> + </property> + <property name="hardCopyOrderNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`hardcopyordernumber`"/> + </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.test.emf.schemaconstructs/SubstitutionAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..da782e54e --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,122 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:53 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.ComplexNumberImpl" entity-name="ComplexNumber" abstract="false" lazy="false" discriminator-value="ComplexNumber" table="`complexnumber`"> + <meta attribute="eclassName">ComplexNumber</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger"> + <column not-null="true" unique="false" name="`value`"/> + </property> + <property name="unit" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`unit`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.EvenComplexNumberTypeImpl" entity-name="EvenComplexNumberType" abstract="false" lazy="false" extends="ComplexNumber" discriminator-value="EvenComplexNumberType"> + <meta attribute="eclassName">EvenComplexNumberType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + </subclass> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.MultiNumberTypeImpl" entity-name="MultiNumberType" abstract="false" lazy="false" discriminator-value="MultiNumberType" table="`multinumbertype`"> + <meta attribute="eclassName">MultiNumberType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="myComplexAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`multinumbertype_mycomplexabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`multinumbertype_mycomplexabstractgroup_idx`"/> + <one-to-many entity-name="MultiNumberType_myComplexAbstractGroup"/> + </list> + </class> + <class entity-name="MultiNumberType_myComplexAbstractGroup" lazy="false" table="`multinumbertype_mycomplexabstractgroup`"> + <meta attribute="featureMap">MultiNumberType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="myComplexAbstract" entity-name="ComplexNumber" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`complexnumber_mycomplexabstract_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.NumberTypeImpl" entity-name="NumberType" abstract="false" lazy="false" discriminator-value="NumberType" table="`numbertype`"> + <meta attribute="eclassName">NumberType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="mySimpleAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`numbertype_mysimpleabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`numbertype_mysimpleabstractgroup_idx`"/> + <one-to-many entity-name="NumberType_mySimpleAbstractGroup"/> + </list> + <list name="myComplexAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`numbertype_mycomplexabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`numbertype_mycomplexabstractgroup_idx`"/> + <one-to-many entity-name="NumberType_myComplexAbstractGroup"/> + </list> + </class> + <class entity-name="NumberType_mySimpleAbstractGroup" lazy="false" table="`numbertype_mysimpleabstractgroup`"> + <meta attribute="featureMap">NumberType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="mySimpleAbstract" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`mysimpleabstract`"/> + </property> + </class> + <class entity-name="NumberType_myComplexAbstractGroup" lazy="false" table="`numbertype_mycomplexabstractgroup`"> + <meta attribute="featureMap">NumberType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="myComplexAbstract" entity-name="ComplexNumber" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`complexnumber_mycomplexabstract_e_id`"/> + </many-to-one> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.OddComplexNumberTypeImpl" entity-name="OddComplexNumberType" abstract="false" lazy="false" extends="ComplexNumber" discriminator-value="OddComplexNumberType"> + <meta attribute="eclassName">OddComplexNumberType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + </subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..f4487ada0 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,125 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:07 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.ComplexNumberImpl" entity-name="ComplexNumber" abstract="false" lazy="false" table="`complexnumber`"> + <meta attribute="eclassName">ComplexNumber</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger"> + <column not-null="true" unique="false" name="`value`"/> + </property> + <property name="unit" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`unit`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.EvenComplexNumberTypeImpl" entity-name="EvenComplexNumberType" abstract="false" lazy="false" extends="ComplexNumber" table="`evencomplexnumbertype`"> + <meta attribute="eclassName">EvenComplexNumberType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <key> + <column name="`complexnumber_e_id`"/> + </key> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.MultiNumberTypeImpl" entity-name="MultiNumberType" abstract="false" lazy="false" table="`multinumbertype`"> + <meta attribute="eclassName">MultiNumberType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="myComplexAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`multinumbertype_mycomplexabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`multinumbertype_mycomplexabstractgroup_idx`"/> + <one-to-many entity-name="MultiNumberType_myComplexAbstractGroup"/> + </list> + </class> + <class entity-name="MultiNumberType_myComplexAbstractGroup" lazy="false" table="`multinumbertype_mycomplexabstractgroup`"> + <meta attribute="featureMap">MultiNumberType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="myComplexAbstract" entity-name="ComplexNumber" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`complexnumber_mycomplexabstract_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.NumberTypeImpl" entity-name="NumberType" abstract="false" lazy="false" table="`numbertype`"> + <meta attribute="eclassName">NumberType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="mySimpleAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`numbertype_mysimpleabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`numbertype_mysimpleabstractgroup_idx`"/> + <one-to-many entity-name="NumberType_mySimpleAbstractGroup"/> + </list> + <list name="myComplexAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`numbertype_mycomplexabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`numbertype_mycomplexabstractgroup_idx`"/> + <one-to-many entity-name="NumberType_myComplexAbstractGroup"/> + </list> + </class> + <class entity-name="NumberType_mySimpleAbstractGroup" lazy="false" table="`numbertype_mysimpleabstractgroup`"> + <meta attribute="featureMap">NumberType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="mySimpleAbstract" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`mysimpleabstract`"/> + </property> + </class> + <class entity-name="NumberType_myComplexAbstractGroup" lazy="false" table="`numbertype_mycomplexabstractgroup`"> + <meta attribute="featureMap">NumberType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="myComplexAbstract" entity-name="ComplexNumber" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`complexnumber_mycomplexabstract_e_id`"/> + </many-to-one> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.OddComplexNumberTypeImpl" entity-name="OddComplexNumberType" abstract="false" lazy="false" extends="ComplexNumber" table="`oddcomplexnumbertype`"> + <meta attribute="eclassName">OddComplexNumberType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <key> + <column name="`complexnumber_e_id`"/> + </key> + </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.test.emf.schemaconstructs/SubstitutionAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..a74545088 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,125 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:44 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.ComplexNumberImpl" entity-name="ComplexNumber" abstract="false" lazy="false" table="`complexnumber`"> + <meta attribute="eclassName">ComplexNumber</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger"> + <column not-null="true" unique="false" name="`value`"/> + </property> + <property name="unit" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`unit`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.EvenComplexNumberTypeImpl" entity-name="EvenComplexNumberType" abstract="false" lazy="false" extends="ComplexNumber" table="`evencomplexnumbertype`"> + <meta attribute="eclassName">EvenComplexNumberType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <key> + <column name="`complexnumber_e_id`"/> + </key> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.MultiNumberTypeImpl" entity-name="MultiNumberType" abstract="false" lazy="false" table="`multinumbertype`"> + <meta attribute="eclassName">MultiNumberType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="myComplexAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`multinumbertype_mycomplexabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`multinumbertype_mycomplexabstractgroup_idx`"/> + <one-to-many entity-name="MultiNumberType_myComplexAbstractGroup"/> + </list> + </class> + <class entity-name="MultiNumberType_myComplexAbstractGroup" lazy="false" table="`multinumbertype_mycomplexabstractgroup`"> + <meta attribute="featureMap">MultiNumberType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="myComplexAbstract" entity-name="ComplexNumber" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`complexnumber_mycomplexabstract_e_id`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.NumberTypeImpl" entity-name="NumberType" abstract="false" lazy="false" table="`numbertype`"> + <meta attribute="eclassName">NumberType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="mySimpleAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`numbertype_mysimpleabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`numbertype_mysimpleabstractgroup_idx`"/> + <one-to-many entity-name="NumberType_mySimpleAbstractGroup"/> + </list> + <list name="myComplexAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`numbertype_mycomplexabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`numbertype_mycomplexabstractgroup_idx`"/> + <one-to-many entity-name="NumberType_myComplexAbstractGroup"/> + </list> + </class> + <class entity-name="NumberType_mySimpleAbstractGroup" lazy="false" table="`numbertype_mysimpleabstractgroup`"> + <meta attribute="featureMap">NumberType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="mySimpleAbstract" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`mysimpleabstract`"/> + </property> + </class> + <class entity-name="NumberType_myComplexAbstractGroup" lazy="false" table="`numbertype_mycomplexabstractgroup`"> + <meta attribute="featureMap">NumberType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="myComplexAbstract" entity-name="ComplexNumber" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`complexnumber_mycomplexabstract_e_id`"/> + </many-to-one> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.OddComplexNumberTypeImpl" entity-name="OddComplexNumberType" abstract="false" lazy="false" extends="ComplexNumber" table="`oddcomplexnumbertype`"> + <meta attribute="eclassName">OddComplexNumberType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <key> + <column name="`complexnumber_e_id`"/> + </key> + </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.test.emf.schemaconstructs/SubstitutionzvonAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionzvonAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..ba68a8106 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionzvonAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,81 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:53 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.impl.ComplexAAAImpl" entity-name="ComplexAAA" abstract="false" lazy="false" discriminator-value="ComplexAAA" table="`complexaaa`"> + <meta attribute="eclassName">ComplexAAA</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitutionzvon</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.impl.ComplexEvenTypeImpl" entity-name="ComplexEvenType" abstract="false" lazy="false" extends="ComplexAAA" discriminator-value="ComplexEvenType"> + <meta attribute="eclassName">ComplexEvenType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitutionzvon</meta> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.impl.ComplexOddTypeImpl" entity-name="ComplexOddType" abstract="false" lazy="false" extends="ComplexAAA" discriminator-value="ComplexOddType"> + <meta attribute="eclassName">ComplexOddType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitutionzvon</meta> + </subclass> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.impl.RootTypeImpl" entity-name="RootType" abstract="false" lazy="false" discriminator-value="RootType" table="`roottype`"> + <meta attribute="eclassName">RootType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitutionzvon</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="myAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`roottype_myabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`roottype_myabstractgroup_idx`"/> + <one-to-many entity-name="RootType_myAbstractGroup"/> + </list> + <list name="myComplexAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`roottype_mycomplexabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`roottype_mycomplexabstractgroup_idx`"/> + <one-to-many entity-name="RootType_myComplexAbstractGroup"/> + </list> + </class> + <class entity-name="RootType_myAbstractGroup" lazy="false" table="`roottype_myabstractgroup`"> + <meta attribute="featureMap">RootType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="myAbstract" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`myabstract`"/> + </property> + </class> + <class entity-name="RootType_myComplexAbstractGroup" lazy="false" table="`roottype_mycomplexabstractgroup`"> + <meta attribute="featureMap">RootType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="myComplexAbstract" entity-name="ComplexAAA" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`complexaaa_mycomplexabstract_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.test.emf.schemaconstructs/SubstitutionzvonAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionzvonAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..aee233298 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionzvonAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:05 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.impl.ComplexAAAImpl" entity-name="ComplexAAA" abstract="false" lazy="false" table="`complexaaa`"> + <meta attribute="eclassName">ComplexAAA</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitutionzvon</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.impl.ComplexEvenTypeImpl" entity-name="ComplexEvenType" abstract="false" lazy="false" extends="ComplexAAA" table="`complexeventype`"> + <meta attribute="eclassName">ComplexEvenType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitutionzvon</meta> + <key> + <column name="`complexaaa_e_id`"/> + </key> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.impl.ComplexOddTypeImpl" entity-name="ComplexOddType" abstract="false" lazy="false" extends="ComplexAAA" table="`complexoddtype`"> + <meta attribute="eclassName">ComplexOddType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitutionzvon</meta> + <key> + <column name="`complexaaa_e_id`"/> + </key> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.impl.RootTypeImpl" entity-name="RootType" abstract="false" lazy="false" table="`roottype`"> + <meta attribute="eclassName">RootType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitutionzvon</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="myAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`roottype_myabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`roottype_myabstractgroup_idx`"/> + <one-to-many entity-name="RootType_myAbstractGroup"/> + </list> + <list name="myComplexAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`roottype_mycomplexabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`roottype_mycomplexabstractgroup_idx`"/> + <one-to-many entity-name="RootType_myComplexAbstractGroup"/> + </list> + </class> + <class entity-name="RootType_myAbstractGroup" lazy="false" table="`roottype_myabstractgroup`"> + <meta attribute="featureMap">RootType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="myAbstract" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`myabstract`"/> + </property> + </class> + <class entity-name="RootType_myComplexAbstractGroup" lazy="false" table="`roottype_mycomplexabstractgroup`"> + <meta attribute="featureMap">RootType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="myComplexAbstract" entity-name="ComplexAAA" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`complexaaa_mycomplexabstract_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.test.emf.schemaconstructs/SubstitutionzvonAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionzvonAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..2e1f1ed33 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionzvonAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:14:43 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.impl.ComplexAAAImpl" entity-name="ComplexAAA" abstract="false" lazy="false" table="`complexaaa`"> + <meta attribute="eclassName">ComplexAAA</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitutionzvon</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.impl.ComplexEvenTypeImpl" entity-name="ComplexEvenType" abstract="false" lazy="false" extends="ComplexAAA" table="`complexeventype`"> + <meta attribute="eclassName">ComplexEvenType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitutionzvon</meta> + <key> + <column name="`complexaaa_e_id`"/> + </key> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.impl.ComplexOddTypeImpl" entity-name="ComplexOddType" abstract="false" lazy="false" extends="ComplexAAA" table="`complexoddtype`"> + <meta attribute="eclassName">ComplexOddType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitutionzvon</meta> + <key> + <column name="`complexaaa_e_id`"/> + </key> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitutionzvon.impl.RootTypeImpl" entity-name="RootType" abstract="false" lazy="false" table="`roottype`"> + <meta attribute="eclassName">RootType</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitutionzvon</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="myAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`roottype_myabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`roottype_myabstractgroup_idx`"/> + <one-to-many entity-name="RootType_myAbstractGroup"/> + </list> + <list name="myComplexAbstractGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`roottype_mycomplexabstractgroup_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`roottype_mycomplexabstractgroup_idx`"/> + <one-to-many entity-name="RootType_myComplexAbstractGroup"/> + </list> + </class> + <class entity-name="RootType_myAbstractGroup" lazy="false" table="`roottype_myabstractgroup`"> + <meta attribute="featureMap">RootType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <property name="myAbstract" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`myabstract`"/> + </property> + </class> + <class entity-name="RootType_myComplexAbstractGroup" lazy="false" table="`roottype_mycomplexabstractgroup`"> + <meta attribute="featureMap">RootType</meta> + <id type="long"> + <generator class="native"/> + </id> + <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="fme_feature" type="java.lang.String"/> + <many-to-one name="myComplexAbstract" entity-name="ComplexAAA" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`complexaaa_mycomplexabstract_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.test.issues/AbstractReferenceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/AbstractReferenceAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..77b158991 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/AbstractReferenceAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,93 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:18 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" discriminator-value="Address" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="country" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`address_country_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`address_country_idx`"/> + <one-to-many entity-name="City"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.CityImpl" entity-name="City" abstract="true" lazy="false" discriminator-value="City" table="`city`"> + <meta attribute="eclassName">City</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="address" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`city_address_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`city_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="address" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_address_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`person_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + </class> + <subclass name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" discriminator-value="USAddress"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <property name="state" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`state`"/> + </property> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.USCityImpl" entity-name="USCity" abstract="false" lazy="false" extends="City" discriminator-value="USCity"> + <meta attribute="eclassName">USCity</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <property name="state" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`state`"/> + </property> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.USOfficeAddressImpl" entity-name="USOfficeAddress" abstract="false" lazy="false" extends="USAddress" discriminator-value="USOfficeAddress"> + <meta attribute="eclassName">USOfficeAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <property name="location" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`location`"/> + </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.test.issues/AbstractReferenceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/AbstractReferenceAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..56d8259f0 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/AbstractReferenceAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,99 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:23 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="country" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`address_country_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`address_country_idx`"/> + <one-to-many entity-name="City"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.CityImpl" entity-name="City" abstract="true" lazy="false" table="`city`"> + <meta attribute="eclassName">City</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="address" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`city_address_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`city_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="address" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_address_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`person_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`usaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <key> + <column name="`address_e_id`"/> + </key> + <property name="state" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`state`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.USCityImpl" entity-name="USCity" abstract="false" lazy="false" extends="City" table="`uscity`"> + <meta attribute="eclassName">USCity</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <key> + <column name="`city_e_id`"/> + </key> + <property name="state" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`state`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.USOfficeAddressImpl" entity-name="USOfficeAddress" abstract="false" lazy="false" extends="USAddress" table="`usofficeaddress`"> + <meta attribute="eclassName">USOfficeAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <key> + <column name="`usaddress_e_id`"/> + </key> + <property name="location" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`location`"/> + </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.test.issues/AbstractReferenceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/AbstractReferenceAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..dfb868251 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/AbstractReferenceAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,99 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:14 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="country" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`address_country_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`address_country_idx`"/> + <one-to-many entity-name="City"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.CityImpl" entity-name="City" abstract="true" lazy="false" table="`city`"> + <meta attribute="eclassName">City</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="address" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`city_address_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`city_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="address" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`person_address_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`person_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`usaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <key> + <column name="`address_e_id`"/> + </key> + <property name="state" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`state`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.USCityImpl" entity-name="USCity" abstract="false" lazy="false" extends="City" table="`uscity`"> + <meta attribute="eclassName">USCity</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <key> + <column name="`city_e_id`"/> + </key> + <property name="state" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`state`"/> + </property> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.abstractreference.impl.USOfficeAddressImpl" entity-name="USOfficeAddress" abstract="false" lazy="false" extends="USAddress" table="`usofficeaddress`"> + <meta attribute="eclassName">USOfficeAddress</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/abstractreference</meta> + <key> + <column name="`usaddress_e_id`"/> + </key> + <property name="location" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`location`"/> + </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.test.issues/AgilAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/AgilAction_mysql_a_o_hibernate.hbm.xml index b5f5d6306..d01f9623e 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/AgilAction_mysql_a_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/AgilAction_mysql_a_o_hibernate.hbm.xml @@ -1,7 +1,7 @@ <?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"> -<!-- Generated by Teneo on Tue Mar 27 09:40:16 CEST 2007 --> +<!-- Generated by Teneo on Wed Mar 28 18:05:07 CEST 2007 --> <hibernate-mapping> <class entity-name="LearningObject" abstract="true" lazy="false" discriminator-value="LearningObject" table="`learningobject`"> <meta attribute="eclassName">LearningObject</meta> @@ -23,16 +23,16 @@ <subclass entity-name="Block" abstract="true" lazy="false" extends="LearningObject" discriminator-value="Block"> <meta attribute="eclassName">Block</meta> <meta attribute="epackage">lobj.ecore</meta> - <many-to-one name="blockMeta" entity-name="BlockMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="blockMeta" class="BlockMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`blockmeta_blockmeta_id`"/> </many-to-one> <bag name="externalMetadata" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`block_externalmetadata_id`" not-null="false" unique="false"/> </key> - <one-to-many entity-name="ExternalMetadata"/> + <one-to-many class="ExternalMetadata"/> </bag> - <many-to-one name="accessControl" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accessControl" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> </subclass> @@ -44,7 +44,7 @@ <column name="`hypertextblock_hypertextcontent_id`" not-null="false" unique="false"/> </key> <list-index column="`hypertextblock_hypertextcontent_idx`"/> - <one-to-many entity-name="HypertextContent"/> + <one-to-many class="HypertextContent"/> </list> </subclass> <subclass entity-name="AbstractContent" abstract="true" lazy="false" extends="LearningObject" discriminator-value="AbstractContent"> @@ -53,10 +53,10 @@ <property name="heading" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`heading`"/> </property> - <many-to-one name="language" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="language" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_language_e_id`"/> </many-to-one> - <many-to-one name="source" entity-name="Source" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="source" class="Source" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`source_source_e_id`"/> </many-to-one> </subclass> @@ -66,7 +66,7 @@ <property name="content" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`content`"/> </property> - <many-to-one name="blockAudiofile" entity-name="BlockAudiofile" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="blockAudiofile" class="BlockAudiofile" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`blockaudiofile_blockaudiofile_id`"/> </many-to-one> <bag name="resrcFile" lazy="true" cascade="merge,persist,save-update,lock,refresh" inverse="true" table="`resrcfile_hypertextcontent`"> @@ -81,7 +81,7 @@ <subclass entity-name="BlockFolder" abstract="false" lazy="false" extends="LearningObject" discriminator-value="BlockFolder"> <meta attribute="eclassName">BlockFolder</meta> <meta attribute="epackage">lobj.ecore</meta> - <many-to-one name="folderMeta" entity-name="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="folderMeta" class="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`foldermeta_foldermeta_id`"/> </many-to-one> <list name="blockFolder" lazy="true" cascade="all,delete-orphan"> @@ -89,16 +89,16 @@ <column name="`blockfolder_blockfolder_id`" not-null="false" unique="false"/> </key> <list-index column="`blockfolder_blockfolder_idx`"/> - <one-to-many entity-name="BlockFolder"/> + <one-to-many class="BlockFolder"/> </list> <list name="block" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`blockfolder_block_id`" not-null="false" unique="false"/> </key> <list-index column="`blockfolder_block_idx`"/> - <one-to-many entity-name="Block"/> + <one-to-many class="Block"/> </list> - <many-to-one name="accessControl" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accessControl" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> </subclass> @@ -110,14 +110,14 @@ <column name="`category_titlemeta_id`" not-null="false" unique="false"/> </key> <list-index column="`category_titlemeta_idx`"/> - <one-to-many entity-name="TitleMeta"/> + <one-to-many class="TitleMeta"/> </list> <list name="course" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`category_course_id`" not-null="false" unique="false"/> </key> <list-index column="`category_course_idx`"/> - <one-to-many entity-name="Course"/> + <one-to-many class="Course"/> </list> </subclass> <class entity-name="CorrBlock" abstract="false" lazy="false" discriminator-value="CorrBlock" table="`corrblock`"> @@ -135,29 +135,29 @@ <column name="`corrblock_presentationblock_e_id`" not-null="false" unique="false"/> </key> <list-index column="`corrblock_presentationblock_idx`"/> - <one-to-many entity-name="PresentationBlock"/> + <one-to-many class="PresentationBlock"/> </list> <list name="titleMeta" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`corrblock_titlemeta_e_id`" not-null="false" unique="false"/> </key> <list-index column="`corrblock_titlemeta_idx`"/> - <one-to-many entity-name="TitleMeta"/> + <one-to-many class="TitleMeta"/> </list> </class> <subclass entity-name="Course" abstract="false" lazy="false" extends="LearningObject" discriminator-value="Course"> <meta attribute="eclassName">Course</meta> <meta attribute="epackage">lobj.ecore</meta> - <many-to-one name="courseMeta" entity-name="CourseMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="courseMeta" class="CourseMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`coursemeta_coursemeta_id`"/> </many-to-one> <bag name="externalMetadata" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`course_externalmetadata_id`" not-null="false" unique="false"/> </key> - <one-to-many entity-name="ExternalMetadata"/> + <one-to-many class="ExternalMetadata"/> </bag> - <many-to-one name="coursetype" entity-name="Coursetype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="coursetype" class="Coursetype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`coursetype_coursetype_e_id`"/> </many-to-one> <property name="outlineAsXml" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -168,7 +168,7 @@ <column name="`course_module_id`" not-null="false" unique="false"/> </key> <list-index column="`course_module_idx`"/> - <one-to-many entity-name="Module"/> + <one-to-many class="Module"/> </list> </subclass> <class entity-name="Item" abstract="false" lazy="false" discriminator-value="Item" table="`item`"> @@ -186,14 +186,14 @@ <column name="`item_corrblock_e_id`" not-null="false" unique="false"/> </key> <list-index column="`item_corrblock_idx`"/> - <one-to-many entity-name="CorrBlock"/> + <one-to-many class="CorrBlock"/> </list> <list name="childitems" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`item_childitems_e_id`" not-null="false" unique="false"/> </key> <list-index column="`item_childitems_idx`"/> - <one-to-many entity-name="Item"/> + <one-to-many class="Item"/> </list> <property name="luRef" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`luref`"/> @@ -202,14 +202,14 @@ <subclass entity-name="LearningUnit" abstract="false" lazy="false" extends="LearningObject" discriminator-value="LearningUnit"> <meta attribute="eclassName">LearningUnit</meta> <meta attribute="epackage">lobj.ecore</meta> - <many-to-one name="luMeta" entity-name="LuMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="luMeta" class="LuMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`lumeta_lumeta_id`"/> </many-to-one> <bag name="externalMetadata" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`learningunit_externalmetadata_id`" not-null="false" unique="false"/> </key> - <one-to-many entity-name="ExternalMetadata"/> + <one-to-many class="ExternalMetadata"/> </bag> <property name="treeAsXml" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`treeasxml`"/> @@ -217,7 +217,7 @@ <property name="luFile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`lufile`"/> </property> - <many-to-one name="accessControl" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accessControl" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> <list name="item" lazy="true" cascade="all,delete-orphan"> @@ -225,13 +225,13 @@ <column name="`learningunit_item_id`" not-null="false" unique="false"/> </key> <list-index column="`learningunit_item_idx`"/> - <one-to-many entity-name="Item"/> + <one-to-many class="Item"/> </list> </subclass> <subclass entity-name="LuFolder" abstract="false" lazy="false" extends="LearningObject" discriminator-value="LuFolder"> <meta attribute="eclassName">LuFolder</meta> <meta attribute="epackage">lobj.ecore</meta> - <many-to-one name="folderMeta" entity-name="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="folderMeta" class="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`foldermeta_foldermeta_id`"/> </many-to-one> <list name="luFolder" lazy="true" cascade="all,delete-orphan"> @@ -239,32 +239,32 @@ <column name="`lufolder_lufolder_id`" not-null="false" unique="false"/> </key> <list-index column="`lufolder_lufolder_idx`"/> - <one-to-many entity-name="LuFolder"/> + <one-to-many class="LuFolder"/> </list> <list name="learningUnit" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`lufolder_learningunit_id`" not-null="false" unique="false"/> </key> <list-index column="`lufolder_learningunit_idx`"/> - <one-to-many entity-name="LearningUnit"/> + <one-to-many class="LearningUnit"/> </list> - <many-to-one name="accessControl" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accessControl" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> </subclass> <subclass entity-name="Module" abstract="false" lazy="false" extends="LearningObject" discriminator-value="Module"> <meta attribute="eclassName">Module</meta> <meta attribute="epackage">lobj.ecore</meta> - <many-to-one name="moduleMeta" entity-name="ModuleMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="moduleMeta" class="ModuleMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`modulemeta_modulemeta_id`"/> </many-to-one> <bag name="externalMetadata" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`module_externalmetadata_id`" not-null="false" unique="false"/> </key> - <one-to-many entity-name="ExternalMetadata"/> + <one-to-many class="ExternalMetadata"/> </bag> - <many-to-one name="rootNode" entity-name="Node" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="rootNode" class="Node" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`node_rootnode_e_id`"/> </many-to-one> <property name="moduleFile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -273,14 +273,14 @@ <property name="treeAsXml" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`treeasxml`"/> </property> - <many-to-one name="accessControl" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accessControl" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> </subclass> <subclass entity-name="ModuleFolder" abstract="false" lazy="false" extends="LearningObject" discriminator-value="ModuleFolder"> <meta attribute="eclassName">ModuleFolder</meta> <meta attribute="epackage">lobj.ecore</meta> - <many-to-one name="folderMeta" entity-name="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="folderMeta" class="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`foldermeta_foldermeta_id`"/> </many-to-one> <list name="moduleFolder" lazy="true" cascade="all,delete-orphan"> @@ -288,23 +288,23 @@ <column name="`modulefolder_modulefolder_id`" not-null="false" unique="false"/> </key> <list-index column="`modulefolder_modulefolder_idx`"/> - <one-to-many entity-name="ModuleFolder"/> + <one-to-many class="ModuleFolder"/> </list> <list name="module" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`modulefolder_module_id`" not-null="false" unique="false"/> </key> <list-index column="`modulefolder_module_idx`"/> - <one-to-many entity-name="Module"/> + <one-to-many class="Module"/> </list> - <many-to-one name="accessControl" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accessControl" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> </subclass> <subclass entity-name="ResrcFolder" abstract="false" lazy="false" extends="LearningObject" discriminator-value="ResrcFolder"> <meta attribute="eclassName">ResrcFolder</meta> <meta attribute="epackage">lobj.ecore</meta> - <many-to-one name="folderMeta" entity-name="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="folderMeta" class="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`foldermeta_foldermeta_id`"/> </many-to-one> <list name="resrcFolder" lazy="true" cascade="all,delete-orphan"> @@ -312,9 +312,9 @@ <column name="`resrcfolder_resrcfolder_id`" not-null="false" unique="false"/> </key> <list-index column="`resrcfolder_resrcfolder_idx`"/> - <one-to-many entity-name="ResrcFolder"/> + <one-to-many class="ResrcFolder"/> </list> - <many-to-one name="accessControl" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accessControl" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> <property name="deleteScheduled" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> @@ -325,7 +325,7 @@ <column name="`resrcfolder_resrcfile_id`" not-null="false" unique="false"/> </key> <list-index column="`resrcfolder_resrcfile_idx`"/> - <one-to-many entity-name="ResrcFile"/> + <one-to-many class="ResrcFile"/> </list> </subclass> <subclass entity-name="Theme" abstract="false" lazy="false" extends="LearningObject" discriminator-value="Theme"> @@ -336,7 +336,7 @@ <column name="`theme_simpledidacmeta_id`" not-null="false" unique="false"/> </key> <list-index column="`theme_simpledidacmeta_idx`"/> - <one-to-many entity-name="SimpleDidacMeta"/> + <one-to-many class="SimpleDidacMeta"/> </list> </subclass> <class entity-name="PresentationBlock" abstract="false" lazy="false" discriminator-value="PresentationBlock" table="`presentationblock`"> @@ -355,11 +355,11 @@ <property name="rendering" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`rendering`"/> </property> - <many-to-one name="block" entity-name="Block" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="block" class="Block" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`block_block_id`"/> </many-to-one> </class> - <class entity-name="Node" abstract="true" lazy="false" discriminator-value="Node" table="`node`"> + <class name="lobj.Node" entity-name="Node" proxy="lobj.Node" abstract="true" lazy="true" discriminator-value="Node" table="`node`"> <meta attribute="eclassName">Node</meta> <meta attribute="epackage">lobj.ecore</meta> <id name="id" type="java.lang.String"> @@ -376,7 +376,7 @@ <subclass entity-name="ThemeNode" abstract="false" lazy="false" extends="Node" discriminator-value="ThemeNode"> <meta attribute="eclassName">ThemeNode</meta> <meta attribute="epackage">lobj.ecore</meta> - <many-to-one name="theme" entity-name="Theme" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="theme" class="Theme" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`theme_theme_id`"/> </many-to-one> <list name="childnodes" lazy="true" cascade="all,delete-orphan"> @@ -384,13 +384,13 @@ <column name="`themenode_childnodes_id`" not-null="false" unique="false"/> </key> <list-index column="`themenode_childnodes_idx`"/> - <one-to-many entity-name="Node"/> + <one-to-many class="Node"/> </list> </subclass> <subclass entity-name="LuNode" abstract="false" lazy="false" extends="Node" discriminator-value="LuNode"> <meta attribute="eclassName">LuNode</meta> <meta attribute="epackage">lobj.ecore</meta> - <many-to-one name="learningUnit" entity-name="LearningUnit" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="learningUnit" class="LearningUnit" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`learningunit_learningunit_id`"/> </many-to-one> </subclass> @@ -420,13 +420,13 @@ <property name="resrcHref" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`resrchref`"/> </property> - <many-to-one name="accesscontrol" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accesscontrol" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> - <many-to-one name="resrcFiletype" entity-name="ResrcFiletype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="resrcFiletype" class="ResrcFiletype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`resrcfiletype_resrcfiletype_e_id`"/> </many-to-one> - <many-to-one name="source" entity-name="Source" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="source" class="Source" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`source_source_e_id`"/> </many-to-one> <bag name="hypertextContent" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`resrcfile_hypertextcontent`"> @@ -437,7 +437,7 @@ <column name="`hypertextcontent_id`" not-null="true" unique="false"/> </many-to-many> </bag> - <many-to-one name="resrcMeta" entity-name="ResrcMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="resrcMeta" class="ResrcMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`resrcmeta_resrcmeta_id`"/> </many-to-one> </subclass> @@ -460,7 +460,7 @@ <property name="resrcHref" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`resrchref`"/> </property> - <many-to-one name="resrcFiletype" entity-name="ResrcFiletype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="resrcFiletype" class="ResrcFiletype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`resrcfiletype_resrcfiletype_e_id`"/> </many-to-one> </subclass> @@ -503,13 +503,13 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <many-to-one name="owner" entity-name="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="owner" class="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`user_owner_e_id`"/> </many-to-one> <property name="lastModified" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> <column not-null="false" unique="false" name="`lastmodified`"/> </property> - <many-to-one name="lastModifiedBy" entity-name="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="lastModifiedBy" class="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`user_lastmodifiedby_e_id`"/> </many-to-one> <property name="status" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -518,10 +518,10 @@ <property name="lastStatusChange" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> <column not-null="false" unique="false" name="`laststatuschange`"/> </property> - <many-to-one name="lastStatusChangeBy" entity-name="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="lastStatusChangeBy" class="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`user_laststatuschangeby_e_id`"/> </many-to-one> - <many-to-one name="sharednotes" entity-name="Sharednotes" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="sharednotes" class="Sharednotes" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`sharednotes_sharednotes_e_id`"/> </many-to-one> <list name="authorizes" lazy="true" cascade="all,delete-orphan"> @@ -529,14 +529,14 @@ <column name="`accesscontrol_authorizes_e_id`" not-null="false" unique="false"/> </key> <list-index column="`accesscontrol_authorizes_idx`"/> - <one-to-many entity-name="Userauthorization"/> + <one-to-many class="Userauthorization"/> </list> <list name="editionHistory" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`accesscontrol_editionhistory_e_id`" not-null="false" unique="false"/> </key> <list-index column="`accesscontrol_editionhistory_idx`"/> - <one-to-many entity-name="Edition"/> + <one-to-many class="Edition"/> </list> <property name="globalAccess" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> <column not-null="false" unique="false" name="`globalaccess`"/> @@ -602,7 +602,7 @@ <property name="orgdiv" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`orgdiv`"/> </property> - <many-to-one name="address" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" class="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`address_address_id`"/> </many-to-one> </class> @@ -619,10 +619,10 @@ <property name="credittype" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`credittype`"/> </property> - <many-to-one name="person" entity-name="Person" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="person" class="Person" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`person_person_e_id`"/> </many-to-one> - <many-to-one name="address" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" class="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`address_address_id`"/> </many-to-one> <property name="email" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -638,7 +638,7 @@ <property name="rendering" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`rendering`"/> </property> - <many-to-one name="blocktype" entity-name="Blocktype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="blocktype" class="Blocktype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`blocktype_blocktype_e_id`"/> </many-to-one> <property name="creationDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> @@ -652,9 +652,9 @@ <column name="`blockmeta_simpledidacmeta_id`" not-null="false" unique="false"/> </key> <list-index column="`blockmeta_simpledidacmeta_idx`"/> - <one-to-many entity-name="SimpleDidacMeta"/> + <one-to-many class="SimpleDidacMeta"/> </list> - <many-to-one name="defLang" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="defLang" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_deflang_e_id`"/> </many-to-one> </subclass> @@ -699,7 +699,7 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <many-to-one name="language" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="language" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_language_e_id`"/> </many-to-one> <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -714,7 +714,7 @@ <column name="`coursemeta_didacmeta_id`" not-null="false" unique="false"/> </key> <list-index column="`coursemeta_didacmeta_idx`"/> - <one-to-many entity-name="DidacMeta"/> + <one-to-many class="DidacMeta"/> </list> <property name="hours" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> <column not-null="false" unique="false" name="`hours`"/> @@ -731,10 +731,10 @@ <property name="creationDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> <column not-null="false" unique="false" name="`creationdate`"/> </property> - <many-to-one name="lecturer" entity-name="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="lecturer" class="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`user_lecturer_e_id`"/> </many-to-one> - <many-to-one name="defLang" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="defLang" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_deflang_e_id`"/> </many-to-one> </subclass> @@ -748,7 +748,7 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <many-to-one name="language" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="language" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_language_e_id`"/> </many-to-one> <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -767,7 +767,7 @@ <property name="goal" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`goal`"/> </property> - <many-to-one name="precognition" entity-name="Precognition" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="precognition" class="Precognition" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`precognition_precognition_e_id`"/> </many-to-one> </subclass> @@ -852,12 +852,12 @@ <column name="`lumeta_didacmeta_id`" not-null="false" unique="false"/> </key> <list-index column="`lumeta_didacmeta_idx`"/> - <one-to-many entity-name="DidacMeta"/> + <one-to-many class="DidacMeta"/> </list> <property name="creationDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> <column not-null="false" unique="false" name="`creationdate`"/> </property> - <many-to-one name="domain" entity-name="Domain" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="domain" class="Domain" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`domain_domain_id`"/> </many-to-one> <list name="authors" lazy="true" cascade="all,delete-orphan"> @@ -865,12 +865,12 @@ <column name="`lumeta_authors_id`" not-null="false" unique="false"/> </key> <list-index column="`lumeta_authors_idx`"/> - <one-to-many entity-name="Author"/> + <one-to-many class="Author"/> </list> - <many-to-one name="publishInfo" entity-name="PublishInfo" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="publishInfo" class="PublishInfo" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`publishinfo_publishinfo_e_id`"/> </many-to-one> - <many-to-one name="defLang" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="defLang" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_deflang_e_id`"/> </many-to-one> </subclass> @@ -884,10 +884,10 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <many-to-one name="user" entity-name="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="user" class="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`user_user_e_id`"/> </many-to-one> - <many-to-one name="authType" entity-name="AuthorizationTypes" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="authType" class="AuthorizationTypes" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`authorizationtypes_authtype_e_id`"/> </many-to-one> </class> @@ -938,7 +938,7 @@ <column name="`person_affiliations_e_id`" not-null="false" unique="false"/> </key> <list-index column="`person_affiliations_idx`"/> - <one-to-many entity-name="Affiliation"/> + <one-to-many class="Affiliation"/> </list> <property name="personblurb" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`personblurb`"/> @@ -957,7 +957,7 @@ <property name="publishername" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`publishername`"/> </property> - <many-to-one name="address" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" class="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`address_address_id`"/> </many-to-one> </class> @@ -977,7 +977,7 @@ <property name="pubdate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> <column not-null="false" unique="false" name="`pubdate`"/> </property> - <many-to-one name="publisher" entity-name="Publisher" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="publisher" class="Publisher" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`publisher_publisher_id`"/> </many-to-one> <property name="pubsnumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -1033,7 +1033,7 @@ <column name="`sharednotes_notes_e_id`" not-null="false" unique="false"/> </key> <list-index column="`sharednotes_notes_idx`"/> - <one-to-many entity-name="Note"/> + <one-to-many class="Note"/> </list> </class> <class entity-name="Coursetype" abstract="false" lazy="false" discriminator-value="Coursetype" table="`coursetype`"> @@ -1046,7 +1046,7 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <many-to-one name="language" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="language" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_language_e_id`"/> </many-to-one> <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -1105,7 +1105,7 @@ <column name="`precognition_internalrefs_e_id`" not-null="false" unique="false"/> </key> <list-index column="`precognition_internalrefs_idx`"/> - <one-to-many entity-name="InternalRef"/> + <one-to-many class="InternalRef"/> </list> </class> <class entity-name="InternalRef" abstract="false" lazy="false" discriminator-value="InternalRef" table="`internalref`"> @@ -1118,7 +1118,7 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <many-to-one name="language" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="language" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_language_code`"/> </many-to-one> <property name="ref" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -1139,7 +1139,7 @@ <column name="`modulemeta_didacmeta_id`" not-null="false" unique="false"/> </key> <list-index column="`modulemeta_didacmeta_idx`"/> - <one-to-many entity-name="DidacMeta"/> + <one-to-many class="DidacMeta"/> </list> <property name="creationDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> <column not-null="false" unique="false" name="`creationdate`"/> @@ -1149,12 +1149,12 @@ <column name="`modulemeta_authors_id`" not-null="false" unique="false"/> </key> <list-index column="`modulemeta_authors_idx`"/> - <one-to-many entity-name="Author"/> + <one-to-many class="Author"/> </list> - <many-to-one name="publishInfo" entity-name="PublishInfo" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="publishInfo" class="PublishInfo" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`publishinfo_publishinfo_id`"/> </many-to-one> - <many-to-one name="defLang" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="defLang" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_deflang_code`"/> </many-to-one> </subclass> @@ -1168,7 +1168,7 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <many-to-one name="author" entity-name="Author" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="author" class="Author" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`author_author_id`"/> </many-to-one> <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -1307,7 +1307,7 @@ <column name="`user_authorizations_e_id`" not-null="false" unique="false"/> </key> <list-index column="`user_authorizations_idx`"/> - <one-to-many entity-name="AuthorizationTypes"/> + <one-to-many class="AuthorizationTypes"/> </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.test.issues/AgilAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/AgilAction_mysql_s_o_hibernate.hbm.xml index aedf06186..27c57b83d 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/AgilAction_mysql_s_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/AgilAction_mysql_s_o_hibernate.hbm.xml @@ -1,7 +1,7 @@ <?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"> -<!-- Generated by Teneo on Tue Mar 27 09:51:02 CEST 2007 --> +<!-- Generated by Teneo on Wed Mar 28 18:04:40 CEST 2007 --> <hibernate-mapping> <class entity-name="LearningObject" abstract="true" lazy="false" table="`learningobject`"> <meta attribute="eclassName">LearningObject</meta> @@ -25,16 +25,16 @@ <key> <column name="`learningobject_id`"/> </key> - <many-to-one name="blockMeta" entity-name="BlockMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="blockMeta" class="BlockMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`blockmeta_blockmeta_id`"/> </many-to-one> <bag name="externalMetadata" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`block_externalmetadata_id`" not-null="false" unique="false"/> </key> - <one-to-many entity-name="ExternalMetadata"/> + <one-to-many class="ExternalMetadata"/> </bag> - <many-to-one name="accessControl" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accessControl" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> </joined-subclass> @@ -49,7 +49,7 @@ <column name="`hypertextblock_hypertextcontent_id`" not-null="false" unique="false"/> </key> <list-index column="`hypertextblock_hypertextcontent_idx`"/> - <one-to-many entity-name="HypertextContent"/> + <one-to-many class="HypertextContent"/> </list> </joined-subclass> <joined-subclass entity-name="AbstractContent" abstract="true" lazy="false" extends="LearningObject" table="`abstractcontent`"> @@ -61,10 +61,10 @@ <property name="heading" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`heading`"/> </property> - <many-to-one name="language" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="language" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_language_e_id`"/> </many-to-one> - <many-to-one name="source" entity-name="Source" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="source" class="Source" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`source_source_e_id`"/> </many-to-one> </joined-subclass> @@ -77,7 +77,7 @@ <property name="content" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`content`"/> </property> - <many-to-one name="blockAudiofile" entity-name="BlockAudiofile" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="blockAudiofile" class="BlockAudiofile" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`blockaudiofile_blockaudiofile_id`"/> </many-to-one> <bag name="resrcFile" lazy="true" cascade="merge,persist,save-update,lock,refresh" inverse="true" table="`resrcfile_hypertextcontent`"> @@ -95,7 +95,7 @@ <key> <column name="`learningobject_id`"/> </key> - <many-to-one name="folderMeta" entity-name="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="folderMeta" class="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`foldermeta_foldermeta_id`"/> </many-to-one> <list name="blockFolder" lazy="true" cascade="all,delete-orphan"> @@ -103,16 +103,16 @@ <column name="`blockfolder_blockfolder_id`" not-null="false" unique="false"/> </key> <list-index column="`blockfolder_blockfolder_idx`"/> - <one-to-many entity-name="BlockFolder"/> + <one-to-many class="BlockFolder"/> </list> <list name="block" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`blockfolder_block_id`" not-null="false" unique="false"/> </key> <list-index column="`blockfolder_block_idx`"/> - <one-to-many entity-name="Block"/> + <one-to-many class="Block"/> </list> - <many-to-one name="accessControl" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accessControl" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> </joined-subclass> @@ -127,14 +127,14 @@ <column name="`category_titlemeta_id`" not-null="false" unique="false"/> </key> <list-index column="`category_titlemeta_idx`"/> - <one-to-many entity-name="TitleMeta"/> + <one-to-many class="TitleMeta"/> </list> <list name="course" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`category_course_id`" not-null="false" unique="false"/> </key> <list-index column="`category_course_idx`"/> - <one-to-many entity-name="Course"/> + <one-to-many class="Course"/> </list> </joined-subclass> <class entity-name="CorrBlock" abstract="false" lazy="false" table="`corrblock`"> @@ -151,14 +151,14 @@ <column name="`corrblock_presentationblock_e_id`" not-null="false" unique="false"/> </key> <list-index column="`corrblock_presentationblock_idx`"/> - <one-to-many entity-name="PresentationBlock"/> + <one-to-many class="PresentationBlock"/> </list> <list name="titleMeta" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`corrblock_titlemeta_e_id`" not-null="false" unique="false"/> </key> <list-index column="`corrblock_titlemeta_idx`"/> - <one-to-many entity-name="TitleMeta"/> + <one-to-many class="TitleMeta"/> </list> </class> <joined-subclass entity-name="Course" abstract="false" lazy="false" extends="LearningObject" table="`course`"> @@ -167,16 +167,16 @@ <key> <column name="`learningobject_id`"/> </key> - <many-to-one name="courseMeta" entity-name="CourseMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="courseMeta" class="CourseMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`coursemeta_coursemeta_id`"/> </many-to-one> <bag name="externalMetadata" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`course_externalmetadata_id`" not-null="false" unique="false"/> </key> - <one-to-many entity-name="ExternalMetadata"/> + <one-to-many class="ExternalMetadata"/> </bag> - <many-to-one name="coursetype" entity-name="Coursetype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="coursetype" class="Coursetype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`coursetype_coursetype_e_id`"/> </many-to-one> <property name="outlineAsXml" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -187,7 +187,7 @@ <column name="`course_module_id`" not-null="false" unique="false"/> </key> <list-index column="`course_module_idx`"/> - <one-to-many entity-name="Module"/> + <one-to-many class="Module"/> </list> </joined-subclass> <class entity-name="Item" abstract="false" lazy="false" table="`item`"> @@ -204,14 +204,14 @@ <column name="`item_corrblock_e_id`" not-null="false" unique="false"/> </key> <list-index column="`item_corrblock_idx`"/> - <one-to-many entity-name="CorrBlock"/> + <one-to-many class="CorrBlock"/> </list> <list name="childitems" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`item_childitems_e_id`" not-null="false" unique="false"/> </key> <list-index column="`item_childitems_idx`"/> - <one-to-many entity-name="Item"/> + <one-to-many class="Item"/> </list> <property name="luRef" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`luref`"/> @@ -223,14 +223,14 @@ <key> <column name="`learningobject_id`"/> </key> - <many-to-one name="luMeta" entity-name="LuMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="luMeta" class="LuMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`lumeta_lumeta_id`"/> </many-to-one> <bag name="externalMetadata" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`learningunit_externalmetadata_id`" not-null="false" unique="false"/> </key> - <one-to-many entity-name="ExternalMetadata"/> + <one-to-many class="ExternalMetadata"/> </bag> <property name="treeAsXml" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`treeasxml`"/> @@ -238,7 +238,7 @@ <property name="luFile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`lufile`"/> </property> - <many-to-one name="accessControl" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accessControl" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> <list name="item" lazy="true" cascade="all,delete-orphan"> @@ -246,7 +246,7 @@ <column name="`learningunit_item_id`" not-null="false" unique="false"/> </key> <list-index column="`learningunit_item_idx`"/> - <one-to-many entity-name="Item"/> + <one-to-many class="Item"/> </list> </joined-subclass> <joined-subclass entity-name="LuFolder" abstract="false" lazy="false" extends="LearningObject" table="`lufolder`"> @@ -255,7 +255,7 @@ <key> <column name="`learningobject_id`"/> </key> - <many-to-one name="folderMeta" entity-name="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="folderMeta" class="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`foldermeta_foldermeta_id`"/> </many-to-one> <list name="luFolder" lazy="true" cascade="all,delete-orphan"> @@ -263,16 +263,16 @@ <column name="`lufolder_lufolder_id`" not-null="false" unique="false"/> </key> <list-index column="`lufolder_lufolder_idx`"/> - <one-to-many entity-name="LuFolder"/> + <one-to-many class="LuFolder"/> </list> <list name="learningUnit" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`lufolder_learningunit_id`" not-null="false" unique="false"/> </key> <list-index column="`lufolder_learningunit_idx`"/> - <one-to-many entity-name="LearningUnit"/> + <one-to-many class="LearningUnit"/> </list> - <many-to-one name="accessControl" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accessControl" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> </joined-subclass> @@ -282,16 +282,16 @@ <key> <column name="`learningobject_id`"/> </key> - <many-to-one name="moduleMeta" entity-name="ModuleMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="moduleMeta" class="ModuleMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`modulemeta_modulemeta_id`"/> </many-to-one> <bag name="externalMetadata" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`module_externalmetadata_id`" not-null="false" unique="false"/> </key> - <one-to-many entity-name="ExternalMetadata"/> + <one-to-many class="ExternalMetadata"/> </bag> - <many-to-one name="rootNode" entity-name="Node" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="rootNode" class="Node" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`node_rootnode_e_id`"/> </many-to-one> <property name="moduleFile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -300,7 +300,7 @@ <property name="treeAsXml" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`treeasxml`"/> </property> - <many-to-one name="accessControl" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accessControl" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> </joined-subclass> @@ -310,7 +310,7 @@ <key> <column name="`learningobject_id`"/> </key> - <many-to-one name="folderMeta" entity-name="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="folderMeta" class="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`foldermeta_foldermeta_id`"/> </many-to-one> <list name="moduleFolder" lazy="true" cascade="all,delete-orphan"> @@ -318,16 +318,16 @@ <column name="`modulefolder_modulefolder_id`" not-null="false" unique="false"/> </key> <list-index column="`modulefolder_modulefolder_idx`"/> - <one-to-many entity-name="ModuleFolder"/> + <one-to-many class="ModuleFolder"/> </list> <list name="module" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`modulefolder_module_id`" not-null="false" unique="false"/> </key> <list-index column="`modulefolder_module_idx`"/> - <one-to-many entity-name="Module"/> + <one-to-many class="Module"/> </list> - <many-to-one name="accessControl" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accessControl" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> </joined-subclass> @@ -337,7 +337,7 @@ <key> <column name="`learningobject_id`"/> </key> - <many-to-one name="folderMeta" entity-name="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="folderMeta" class="FolderMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`foldermeta_foldermeta_id`"/> </many-to-one> <list name="resrcFolder" lazy="true" cascade="all,delete-orphan"> @@ -345,9 +345,9 @@ <column name="`resrcfolder_resrcfolder_id`" not-null="false" unique="false"/> </key> <list-index column="`resrcfolder_resrcfolder_idx`"/> - <one-to-many entity-name="ResrcFolder"/> + <one-to-many class="ResrcFolder"/> </list> - <many-to-one name="accessControl" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accessControl" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> <property name="deleteScheduled" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> @@ -358,7 +358,7 @@ <column name="`resrcfolder_resrcfile_id`" not-null="false" unique="false"/> </key> <list-index column="`resrcfolder_resrcfile_idx`"/> - <one-to-many entity-name="ResrcFile"/> + <one-to-many class="ResrcFile"/> </list> </joined-subclass> <joined-subclass entity-name="Theme" abstract="false" lazy="false" extends="LearningObject" table="`theme`"> @@ -372,7 +372,7 @@ <column name="`theme_simpledidacmeta_id`" not-null="false" unique="false"/> </key> <list-index column="`theme_simpledidacmeta_idx`"/> - <one-to-many entity-name="SimpleDidacMeta"/> + <one-to-many class="SimpleDidacMeta"/> </list> </joined-subclass> <class entity-name="PresentationBlock" abstract="false" lazy="false" table="`presentationblock`"> @@ -390,11 +390,11 @@ <property name="rendering" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`rendering`"/> </property> - <many-to-one name="block" entity-name="Block" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="block" class="Block" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`block_block_id`"/> </many-to-one> </class> - <class entity-name="Node" abstract="true" lazy="false" table="`node`"> + <class name="lobj.Node" entity-name="Node" proxy="lobj.Node" abstract="true" lazy="true" table="`node`"> <meta attribute="eclassName">Node</meta> <meta attribute="epackage">lobj.ecore</meta> <id name="id" type="java.lang.String"> @@ -413,7 +413,7 @@ <key> <column name="`node_id`"/> </key> - <many-to-one name="theme" entity-name="Theme" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="theme" class="Theme" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`theme_theme_id`"/> </many-to-one> <list name="childnodes" lazy="true" cascade="all,delete-orphan"> @@ -421,7 +421,7 @@ <column name="`themenode_childnodes_id`" not-null="false" unique="false"/> </key> <list-index column="`themenode_childnodes_idx`"/> - <one-to-many entity-name="Node"/> + <one-to-many class="Node"/> </list> </joined-subclass> <joined-subclass entity-name="LuNode" abstract="false" lazy="false" extends="Node" table="`lunode`"> @@ -430,7 +430,7 @@ <key> <column name="`node_id`"/> </key> - <many-to-one name="learningUnit" entity-name="LearningUnit" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="learningUnit" class="LearningUnit" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`learningunit_learningunit_id`"/> </many-to-one> </joined-subclass> @@ -463,13 +463,13 @@ <property name="resrcHref" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`resrchref`"/> </property> - <many-to-one name="accesscontrol" entity-name="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="accesscontrol" class="AccessControl" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`accesscontrol_accesscontrol_e_id`"/> </many-to-one> - <many-to-one name="resrcFiletype" entity-name="ResrcFiletype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="resrcFiletype" class="ResrcFiletype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`resrcfiletype_resrcfiletype_e_id`"/> </many-to-one> - <many-to-one name="source" entity-name="Source" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="source" class="Source" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`source_source_e_id`"/> </many-to-one> <bag name="hypertextContent" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`resrcfile_hypertextcontent`"> @@ -480,7 +480,7 @@ <column name="`hypertextcontent_id`" not-null="true" unique="false"/> </many-to-many> </bag> - <many-to-one name="resrcMeta" entity-name="ResrcMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="resrcMeta" class="ResrcMeta" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`resrcmeta_resrcmeta_id`"/> </many-to-one> </joined-subclass> @@ -506,7 +506,7 @@ <property name="resrcHref" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`resrchref`"/> </property> - <many-to-one name="resrcFiletype" entity-name="ResrcFiletype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="resrcFiletype" class="ResrcFiletype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`resrcfiletype_resrcfiletype_e_id`"/> </many-to-one> </joined-subclass> @@ -547,13 +547,13 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <many-to-one name="owner" entity-name="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="owner" class="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`user_owner_e_id`"/> </many-to-one> <property name="lastModified" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> <column not-null="false" unique="false" name="`lastmodified`"/> </property> - <many-to-one name="lastModifiedBy" entity-name="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="lastModifiedBy" class="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`user_lastmodifiedby_e_id`"/> </many-to-one> <property name="status" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -562,10 +562,10 @@ <property name="lastStatusChange" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> <column not-null="false" unique="false" name="`laststatuschange`"/> </property> - <many-to-one name="lastStatusChangeBy" entity-name="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="lastStatusChangeBy" class="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`user_laststatuschangeby_e_id`"/> </many-to-one> - <many-to-one name="sharednotes" entity-name="Sharednotes" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="sharednotes" class="Sharednotes" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`sharednotes_sharednotes_e_id`"/> </many-to-one> <list name="authorizes" lazy="true" cascade="all,delete-orphan"> @@ -573,14 +573,14 @@ <column name="`accesscontrol_authorizes_e_id`" not-null="false" unique="false"/> </key> <list-index column="`accesscontrol_authorizes_idx`"/> - <one-to-many entity-name="Userauthorization"/> + <one-to-many class="Userauthorization"/> </list> <list name="editionHistory" lazy="true" cascade="all,delete-orphan"> <key update="true"> <column name="`accesscontrol_editionhistory_e_id`" not-null="false" unique="false"/> </key> <list-index column="`accesscontrol_editionhistory_idx`"/> - <one-to-many entity-name="Edition"/> + <one-to-many class="Edition"/> </list> <property name="globalAccess" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> <column not-null="false" unique="false" name="`globalaccess`"/> @@ -644,7 +644,7 @@ <property name="orgdiv" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`orgdiv`"/> </property> - <many-to-one name="address" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" class="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`address_address_id`"/> </many-to-one> </class> @@ -660,10 +660,10 @@ <property name="credittype" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`credittype`"/> </property> - <many-to-one name="person" entity-name="Person" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="person" class="Person" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`person_person_e_id`"/> </many-to-one> - <many-to-one name="address" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" class="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`address_address_id`"/> </many-to-one> <property name="email" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -682,7 +682,7 @@ <property name="rendering" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`rendering`"/> </property> - <many-to-one name="blocktype" entity-name="Blocktype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="blocktype" class="Blocktype" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`blocktype_blocktype_e_id`"/> </many-to-one> <property name="creationDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> @@ -696,9 +696,9 @@ <column name="`blockmeta_simpledidacmeta_id`" not-null="false" unique="false"/> </key> <list-index column="`blockmeta_simpledidacmeta_idx`"/> - <one-to-many entity-name="SimpleDidacMeta"/> + <one-to-many class="SimpleDidacMeta"/> </list> - <many-to-one name="defLang" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="defLang" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_deflang_e_id`"/> </many-to-one> </joined-subclass> @@ -741,7 +741,7 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <many-to-one name="language" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="language" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_language_e_id`"/> </many-to-one> <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -759,7 +759,7 @@ <column name="`coursemeta_didacmeta_id`" not-null="false" unique="false"/> </key> <list-index column="`coursemeta_didacmeta_idx`"/> - <one-to-many entity-name="DidacMeta"/> + <one-to-many class="DidacMeta"/> </list> <property name="hours" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> <column not-null="false" unique="false" name="`hours`"/> @@ -776,10 +776,10 @@ <property name="creationDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> <column not-null="false" unique="false" name="`creationdate`"/> </property> - <many-to-one name="lecturer" entity-name="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="lecturer" class="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`user_lecturer_e_id`"/> </many-to-one> - <many-to-one name="defLang" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="defLang" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_deflang_e_id`"/> </many-to-one> </joined-subclass> @@ -792,7 +792,7 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <many-to-one name="language" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="language" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_language_e_id`"/> </many-to-one> <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -814,7 +814,7 @@ <property name="goal" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`goal`"/> </property> - <many-to-one name="precognition" entity-name="Precognition" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="precognition" class="Precognition" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`precognition_precognition_e_id`"/> </many-to-one> </joined-subclass> @@ -903,12 +903,12 @@ <column name="`lumeta_didacmeta_id`" not-null="false" unique="false"/> </key> <list-index column="`lumeta_didacmeta_idx`"/> - <one-to-many entity-name="DidacMeta"/> + <one-to-many class="DidacMeta"/> </list> <property name="creationDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> <column not-null="false" unique="false" name="`creationdate`"/> </property> - <many-to-one name="domain" entity-name="Domain" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="domain" class="Domain" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`domain_domain_id`"/> </many-to-one> <list name="authors" lazy="true" cascade="all,delete-orphan"> @@ -916,12 +916,12 @@ <column name="`lumeta_authors_id`" not-null="false" unique="false"/> </key> <list-index column="`lumeta_authors_idx`"/> - <one-to-many entity-name="Author"/> + <one-to-many class="Author"/> </list> - <many-to-one name="publishInfo" entity-name="PublishInfo" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="publishInfo" class="PublishInfo" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`publishinfo_publishinfo_e_id`"/> </many-to-one> - <many-to-one name="defLang" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="defLang" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_deflang_e_id`"/> </many-to-one> </joined-subclass> @@ -934,10 +934,10 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <many-to-one name="user" entity-name="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="user" class="User" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`user_user_e_id`"/> </many-to-one> - <many-to-one name="authType" entity-name="AuthorizationTypes" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="authType" class="AuthorizationTypes" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`authorizationtypes_authtype_e_id`"/> </many-to-one> </class> @@ -986,7 +986,7 @@ <column name="`person_affiliations_e_id`" not-null="false" unique="false"/> </key> <list-index column="`person_affiliations_idx`"/> - <one-to-many entity-name="Affiliation"/> + <one-to-many class="Affiliation"/> </list> <property name="personblurb" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`personblurb`"/> @@ -1004,7 +1004,7 @@ <property name="publishername" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> <column not-null="false" unique="false" name="`publishername`"/> </property> - <many-to-one name="address" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="address" class="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`address_address_id`"/> </many-to-one> </class> @@ -1023,7 +1023,7 @@ <property name="pubdate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> <column not-null="false" unique="false" name="`pubdate`"/> </property> - <many-to-one name="publisher" entity-name="Publisher" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="publisher" class="Publisher" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`publisher_publisher_id`"/> </many-to-one> <property name="pubsnumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -1081,7 +1081,7 @@ <column name="`sharednotes_notes_e_id`" not-null="false" unique="false"/> </key> <list-index column="`sharednotes_notes_idx`"/> - <one-to-many entity-name="Note"/> + <one-to-many class="Note"/> </list> </class> <class entity-name="Coursetype" abstract="false" lazy="false" table="`coursetype`"> @@ -1093,7 +1093,7 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <many-to-one name="language" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="language" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_language_e_id`"/> </many-to-one> <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -1149,7 +1149,7 @@ <column name="`precognition_internalrefs_e_id`" not-null="false" unique="false"/> </key> <list-index column="`precognition_internalrefs_idx`"/> - <one-to-many entity-name="InternalRef"/> + <one-to-many class="InternalRef"/> </list> </class> <class entity-name="InternalRef" abstract="false" lazy="false" table="`internalref`"> @@ -1161,7 +1161,7 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <many-to-one name="language" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="language" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_language_code`"/> </many-to-one> <property name="ref" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -1185,7 +1185,7 @@ <column name="`modulemeta_didacmeta_id`" not-null="false" unique="false"/> </key> <list-index column="`modulemeta_didacmeta_idx`"/> - <one-to-many entity-name="DidacMeta"/> + <one-to-many class="DidacMeta"/> </list> <property name="creationDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> <column not-null="false" unique="false" name="`creationdate`"/> @@ -1195,12 +1195,12 @@ <column name="`modulemeta_authors_id`" not-null="false" unique="false"/> </key> <list-index column="`modulemeta_authors_idx`"/> - <one-to-many entity-name="Author"/> + <one-to-many class="Author"/> </list> - <many-to-one name="publishInfo" entity-name="PublishInfo" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="publishInfo" class="PublishInfo" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`publishinfo_publishinfo_id`"/> </many-to-one> - <many-to-one name="defLang" entity-name="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="defLang" class="Language" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`language_deflang_code`"/> </many-to-one> </joined-subclass> @@ -1213,7 +1213,7 @@ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> <meta attribute="syntheticVersion">true</meta> </version> - <many-to-one name="author" entity-name="Author" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <many-to-one name="author" class="Author" cascade="all" lazy="false" insert="true" update="true" not-null="false"> <column not-null="false" unique="false" name="`author_author_id`"/> </many-to-one> <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> @@ -1350,7 +1350,7 @@ <column name="`user_authorizations_e_id`" not-null="false" unique="false"/> </key> <list-index column="`user_authorizations_idx`"/> - <one-to-many entity-name="AuthorizationTypes"/> + <one-to-many class="AuthorizationTypes"/> </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.test.issues/BagDuplicateAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BagDuplicateAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..d33d65bfd --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BagDuplicateAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:18 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.bagduplicate.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bagduplicate</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="father" entity-name="Person" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`person_father_name`"/> + </many-to-one> + <many-to-one name="mother" entity-name="Person" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`person_mother_name`"/> + </many-to-one> + <list name="children" table="`person_person`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key/> + <list-index column="`person_children_idx`"/> + <many-to-many entity-name="Person" unique="false"/> + </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.test.issues/BagDuplicateAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BagDuplicateAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..f54c43b24 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BagDuplicateAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,27 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:23 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.bagduplicate.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bagduplicate</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="father" entity-name="Person" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`person_father_name`"/> + </many-to-one> + <many-to-one name="mother" entity-name="Person" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`person_mother_name`"/> + </many-to-one> + <list name="children" table="`person_person`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key/> + <list-index column="`person_children_idx`"/> + <many-to-many entity-name="Person" unique="false"/> + </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.test.issues/BagDuplicateAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BagDuplicateAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..d7e1f42c4 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BagDuplicateAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,27 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:13 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.bagduplicate.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bagduplicate</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="father" entity-name="Person" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`person_father_name`"/> + </many-to-one> + <many-to-one name="mother" entity-name="Person" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`person_mother_name`"/> + </many-to-one> + <list name="children" table="`person_person`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key/> + <list-index column="`person_children_idx`"/> + <many-to-many entity-name="Person" unique="false"/> + </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.test.issues/EnumTestAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/EnumTestAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..ba742c845 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/EnumTestAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:18 CEST 2007 --> +<hibernate-mapping> + <typedef name="enumtest.ItemTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/enumtest</param> + <param name="edatatype">ItemTypeObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.issues.enumtest.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" discriminator-value="Item" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/enumtest</meta> + <id name="itemType"> + <column not-null="true" unique="false" name="`itemtype`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.enumtest.ItemType</param> + </type> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="nullableItemType" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`nullableitemtype`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.enumtest.ItemType</param> + </type> + </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.test.issues/EnumTestAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/EnumTestAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..d1f637b87 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/EnumTestAction_mysql_e_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:23 CEST 2007 --> +<hibernate-mapping> + <typedef name="enumtest.ItemTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/enumtest</param> + <param name="edatatype">ItemTypeObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.issues.enumtest.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/enumtest</meta> + <id name="itemType"> + <column not-null="true" unique="false" name="`itemtype`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.enumtest.ItemType</param> + </type> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="nullableItemType" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`nullableitemtype`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.enumtest.ItemType</param> + </type> + </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.test.issues/EnumTestAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/EnumTestAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..de8fde017 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/EnumTestAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:13 CEST 2007 --> +<hibernate-mapping> + <typedef name="enumtest.ItemTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> + <param name="epackage">http://www.eclipse.org/emf/teneo/samples/issues/enumtest</param> + <param name="edatatype">ItemTypeObject</param> + </typedef> + <class name="org.eclipse.emf.teneo.samples.issues.enumtest.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/enumtest</meta> + <id name="itemType"> + <column not-null="true" unique="false" name="`itemtype`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.enumtest.ItemType</param> + </type> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="nullableItemType" lazy="false" not-null="false" insert="true" update="true" unique="false"> + <column not-null="false" unique="false" name="`nullableitemtype`"/> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.issues.enumtest.ItemType</param> + </type> + </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.test.issues/InheritanceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/InheritanceAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..94f7de34a --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/InheritanceAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,51 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:18 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.ThingImpl" entity-name="Thing" abstract="false" lazy="false" discriminator-value="Thing" table="`thing`"> + <meta attribute="eclassName">Thing</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="things" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`thing_things_name`" not-null="false" unique="false"/> + </key> + <list-index column="`thing_things_idx`"/> + <one-to-many entity-name="SubThing"/> + </list> + </class> + <subclass name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.AnnotationImpl" entity-name="Annotation" abstract="false" lazy="false" extends="Thing" discriminator-value="Annotation"> + <meta attribute="eclassName">Annotation</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.InterestImpl" entity-name="Interest" abstract="false" lazy="false" extends="Thing" discriminator-value="Interest"> + <meta attribute="eclassName">Interest</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.SubOneImpl" entity-name="SubOne" abstract="false" lazy="false" extends="Annotation" discriminator-value="SubOne"> + <meta attribute="eclassName">SubOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + </subclass> + <class name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.SubThingImpl" entity-name="SubThing" abstract="false" lazy="false" discriminator-value="SubThing" table="`subthing`"> + <meta attribute="eclassName">SubThing</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <subclass name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.SubTwoImpl" entity-name="SubTwo" abstract="false" lazy="false" extends="Annotation" discriminator-value="SubTwo"> + <meta attribute="eclassName">SubTwo</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + </subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/InheritanceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/InheritanceAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..28fe5b0ed --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/InheritanceAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,61 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:22 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.ThingImpl" entity-name="Thing" abstract="false" lazy="false" table="`thing`"> + <meta attribute="eclassName">Thing</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="things" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`thing_things_name`" not-null="false" unique="false"/> + </key> + <list-index column="`thing_things_idx`"/> + <one-to-many entity-name="SubThing"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.AnnotationImpl" entity-name="Annotation" abstract="false" lazy="false" extends="Thing" table="`annotation`"> + <meta attribute="eclassName">Annotation</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + <key> + <column name="`thing_name`"/> + </key> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.InterestImpl" entity-name="Interest" abstract="false" lazy="false" extends="Thing" table="`interest`"> + <meta attribute="eclassName">Interest</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + <key> + <column name="`thing_name`"/> + </key> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.SubOneImpl" entity-name="SubOne" abstract="false" lazy="false" extends="Annotation" table="`subone`"> + <meta attribute="eclassName">SubOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + <key> + <column name="`annotation_name`"/> + </key> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.SubThingImpl" entity-name="SubThing" abstract="false" lazy="false" table="`subthing`"> + <meta attribute="eclassName">SubThing</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.SubTwoImpl" entity-name="SubTwo" abstract="false" lazy="false" extends="Annotation" table="`subtwo`"> + <meta attribute="eclassName">SubTwo</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + <key> + <column name="`annotation_name`"/> + </key> + </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.test.issues/InheritanceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/InheritanceAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..9927e957d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/InheritanceAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,61 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:10 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.ThingImpl" entity-name="Thing" abstract="false" lazy="false" table="`thing`"> + <meta attribute="eclassName">Thing</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <list name="things" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`thing_things_name`" not-null="false" unique="false"/> + </key> + <list-index column="`thing_things_idx`"/> + <one-to-many entity-name="SubThing"/> + </list> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.AnnotationImpl" entity-name="Annotation" abstract="false" lazy="false" extends="Thing" table="`annotation`"> + <meta attribute="eclassName">Annotation</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + <key> + <column name="`thing_name`"/> + </key> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.InterestImpl" entity-name="Interest" abstract="false" lazy="false" extends="Thing" table="`interest`"> + <meta attribute="eclassName">Interest</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + <key> + <column name="`thing_name`"/> + </key> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.SubOneImpl" entity-name="SubOne" abstract="false" lazy="false" extends="Annotation" table="`subone`"> + <meta attribute="eclassName">SubOne</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + <key> + <column name="`annotation_name`"/> + </key> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.SubThingImpl" entity-name="SubThing" abstract="false" lazy="false" table="`subthing`"> + <meta attribute="eclassName">SubThing</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.inheritance.impl.SubTwoImpl" entity-name="SubTwo" abstract="false" lazy="false" extends="Annotation" table="`subtwo`"> + <meta attribute="eclassName">SubTwo</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/inheritance</meta> + <key> + <column name="`annotation_name`"/> + </key> + </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.test.issues/InterfaceTrueAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/InterfaceTrueAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..cff0bcccb --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/InterfaceTrueAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:19 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.interfacetrue.Address" entity-name="Address" abstract="true" lazy="false" discriminator-value="Address" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http:///org/elver/store/test/issues/interfacetrue.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.issues.interfacetrue.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" discriminator-value="USAddress"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http:///org/elver/store/test/issues/interfacetrue.ecore</meta> + <property name="state" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`state`"/> + </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.test.issues/InterfaceTrueAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/InterfaceTrueAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..b4d96900d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/InterfaceTrueAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:25 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.interfacetrue.Address" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http:///org/elver/store/test/issues/interfacetrue.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.interfacetrue.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`usaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http:///org/elver/store/test/issues/interfacetrue.ecore</meta> + <key> + <column name="`address_e_id`"/> + </key> + <property name="state" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`state`"/> + </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.test.issues/InterfaceTrueAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/InterfaceTrueAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..bbcd029e5 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/InterfaceTrueAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:14 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.interfacetrue.Address" entity-name="Address" abstract="true" lazy="false" table="`address`"> + <meta attribute="eclassName">Address</meta> + <meta attribute="epackage">http:///org/elver/store/test/issues/interfacetrue.ecore</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.interfacetrue.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`usaddress`"> + <meta attribute="eclassName">USAddress</meta> + <meta attribute="epackage">http:///org/elver/store/test/issues/interfacetrue.ecore</meta> + <key> + <column name="`address_e_id`"/> + </key> + <property name="state" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`state`"/> + </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.test.issues/MTMSameAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MTMSameAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..841f04997 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MTMSameAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:17 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.mtmsame.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" discriminator-value="Item" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/mtmsame</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="mySide" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`item_item`"> + <key update="true"> + <column name="`item_myside_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="Item" unique="false"> + <column name="`item_yourside_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + <bag name="yourSide" lazy="true" cascade="merge,persist,save-update,lock,refresh" inverse="true" table="`item_item`"> + <key update="true"> + <column name="`item_yourside_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="Item" unique="false"> + <column name="`item_myside_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MTMSameAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MTMSameAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..0d5459aa5 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MTMSameAction_mysql_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:21 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.mtmsame.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/mtmsame</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="mySide" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`item_item`"> + <key update="true"> + <column name="`item_myside_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="Item" unique="false"> + <column name="`item_yourside_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + <bag name="yourSide" lazy="true" cascade="merge,persist,save-update,lock,refresh" inverse="true" table="`item_item`"> + <key update="true"> + <column name="`item_yourside_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="Item" unique="false"> + <column name="`item_myside_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MTMSameAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MTMSameAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..0969b5be7 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MTMSameAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:10 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.mtmsame.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> + <meta attribute="eclassName">Item</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/mtmsame</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <bag name="mySide" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`item_item`"> + <key update="true"> + <column name="`item_myside_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="Item" unique="false"> + <column name="`item_yourside_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + <bag name="yourSide" lazy="true" cascade="merge,persist,save-update,lock,refresh" inverse="true" table="`item_item`"> + <key update="true"> + <column name="`item_yourside_e_id`" not-null="true" unique="false"/> + </key> + <many-to-many entity-name="Item" unique="false"> + <column name="`item_myside_e_id`" not-null="true" unique="false"/> + </many-to-many> + </bag> + </class> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MultipleInheritanceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MultipleInheritanceAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..f2388c79f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MultipleInheritanceAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,117 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:16 CEST 2007 --> +<hibernate-mapping> + <class name="testinheritance.impl.SomeBaseClassImpl" entity-name="SomeBaseClass" abstract="false" lazy="false" discriminator-value="SomeBaseClass" table="`somebaseclass`"> + <meta attribute="eclassName">SomeBaseClass</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="anotherProperty" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`anotherproperty`"/> + </property> + </class> + <subclass name="testinheritance.impl.SomeResourceImpl" entity-name="SomeResource" abstract="false" lazy="false" extends="SomeBaseClass" discriminator-value="SomeResource"> + <meta attribute="eclassName">SomeResource</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <property name="property" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`property`"/> + </property> + <list name="nameValuePairs" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`someresource_namevaluepairs_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`someresource_namevaluepairs_idx`"/> + <one-to-many entity-name="NameValuePair"/> + </list> + </subclass> + <class name="testinheritance.impl.SomeOtherBaseClassImpl" entity-name="SomeOtherBaseClass" abstract="false" lazy="false" discriminator-value="SomeOtherBaseClass" table="`someotherbaseclass`"> + <meta attribute="eclassName">SomeOtherBaseClass</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="property" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`property`"/> + </property> + <list name="nameValuePairs" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`someotherbaseclass_namevaluepairs_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`someotherbaseclass_namevaluepairs_idx`"/> + <one-to-many entity-name="NameValuePair"/> + </list> + </class> + <class name="testinheritance.impl.NameValuePairImpl" entity-name="NameValuePair" abstract="false" lazy="false" discriminator-value="NameValuePair" table="`namevaluepair`"> + <meta attribute="eclassName">NameValuePair</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </class> + <class name="testinheritance.impl.ParentOneImpl" entity-name="ParentOne" abstract="false" lazy="false" discriminator-value="ParentOne" table="`parentone`"> + <meta attribute="eclassName">ParentOne</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="anotherProperty" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`anotherproperty`"/> + </property> + </class> + <class name="testinheritance.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" discriminator-value="Child" table="`child`"> + <meta attribute="eclassName">Child</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id name="testId" type="long"> + <column not-null="true" unique="false" name="`testid`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`age`"/> + </property> + </class> + <subclass name="testinheritance.impl.Child2Impl" entity-name="Child2" abstract="false" lazy="false" extends="ParentOne" discriminator-value="Child2"> + <meta attribute="eclassName">Child2</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <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="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`age`"/> + </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.test.issues/MultipleInheritanceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MultipleInheritanceAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..f314c10a6 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MultipleInheritanceAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,118 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:20 CEST 2007 --> +<hibernate-mapping> + <class name="testinheritance.impl.SomeBaseClassImpl" entity-name="SomeBaseClass" abstract="false" lazy="false" table="`somebaseclass`"> + <meta attribute="eclassName">SomeBaseClass</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="anotherProperty" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`anotherproperty`"/> + </property> + </class> + <joined-subclass name="testinheritance.impl.SomeResourceImpl" entity-name="SomeResource" abstract="false" lazy="false" extends="SomeBaseClass" table="`someresource`"> + <meta attribute="eclassName">SomeResource</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <key> + <column name="`somebaseclass_e_id`"/> + </key> + <property name="property" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`property`"/> + </property> + <list name="nameValuePairs" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`someresource_namevaluepairs_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`someresource_namevaluepairs_idx`"/> + <one-to-many entity-name="NameValuePair"/> + </list> + </joined-subclass> + <class name="testinheritance.impl.SomeOtherBaseClassImpl" entity-name="SomeOtherBaseClass" abstract="false" lazy="false" table="`someotherbaseclass`"> + <meta attribute="eclassName">SomeOtherBaseClass</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="property" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`property`"/> + </property> + <list name="nameValuePairs" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`someotherbaseclass_namevaluepairs_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`someotherbaseclass_namevaluepairs_idx`"/> + <one-to-many entity-name="NameValuePair"/> + </list> + </class> + <class name="testinheritance.impl.NameValuePairImpl" entity-name="NameValuePair" abstract="false" lazy="false" table="`namevaluepair`"> + <meta attribute="eclassName">NameValuePair</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </class> + <class name="testinheritance.impl.ParentOneImpl" entity-name="ParentOne" abstract="false" lazy="false" table="`parentone`"> + <meta attribute="eclassName">ParentOne</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="anotherProperty" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`anotherproperty`"/> + </property> + </class> + <class name="testinheritance.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" table="`child`"> + <meta attribute="eclassName">Child</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id name="testId" type="long"> + <column not-null="true" unique="false" name="`testid`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`age`"/> + </property> + </class> + <joined-subclass name="testinheritance.impl.Child2Impl" entity-name="Child2" abstract="false" lazy="false" extends="ParentOne" table="`child2`"> + <meta attribute="eclassName">Child2</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <key> + <column name="`parentzero_e_id`"/> + </key> + <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="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`age`"/> + </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.test.issues/MultipleInheritanceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MultipleInheritanceAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..d3762dceb --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/MultipleInheritanceAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,118 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:08 CEST 2007 --> +<hibernate-mapping> + <class name="testinheritance.impl.SomeBaseClassImpl" entity-name="SomeBaseClass" abstract="false" lazy="false" table="`somebaseclass`"> + <meta attribute="eclassName">SomeBaseClass</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="anotherProperty" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`anotherproperty`"/> + </property> + </class> + <joined-subclass name="testinheritance.impl.SomeResourceImpl" entity-name="SomeResource" abstract="false" lazy="false" extends="SomeBaseClass" table="`someresource`"> + <meta attribute="eclassName">SomeResource</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <key> + <column name="`somebaseclass_e_id`"/> + </key> + <property name="property" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`property`"/> + </property> + <list name="nameValuePairs" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`someresource_namevaluepairs_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`someresource_namevaluepairs_idx`"/> + <one-to-many entity-name="NameValuePair"/> + </list> + </joined-subclass> + <class name="testinheritance.impl.SomeOtherBaseClassImpl" entity-name="SomeOtherBaseClass" abstract="false" lazy="false" table="`someotherbaseclass`"> + <meta attribute="eclassName">SomeOtherBaseClass</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="property" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`property`"/> + </property> + <list name="nameValuePairs" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`someotherbaseclass_namevaluepairs_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`someotherbaseclass_namevaluepairs_idx`"/> + <one-to-many entity-name="NameValuePair"/> + </list> + </class> + <class name="testinheritance.impl.NameValuePairImpl" entity-name="NameValuePair" abstract="false" lazy="false" table="`namevaluepair`"> + <meta attribute="eclassName">NameValuePair</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`value`"/> + </property> + </class> + <class name="testinheritance.impl.ParentOneImpl" entity-name="ParentOne" abstract="false" lazy="false" table="`parentone`"> + <meta attribute="eclassName">ParentOne</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="anotherProperty" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`anotherproperty`"/> + </property> + </class> + <class name="testinheritance.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" table="`child`"> + <meta attribute="eclassName">Child</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <id name="testId" type="long"> + <column not-null="true" unique="false" name="`testid`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`age`"/> + </property> + </class> + <joined-subclass name="testinheritance.impl.Child2Impl" entity-name="Child2" abstract="false" lazy="false" extends="ParentOne" table="`child2`"> + <meta attribute="eclassName">Child2</meta> + <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> + <key> + <column name="`parentzero_e_id`"/> + </key> + <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="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> + <column not-null="false" unique="false" name="`age`"/> + </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.test.issues/ResourceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/ResourceAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..e911a2b56 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/ResourceAction_mysql_a_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:17 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.resource.impl.HeadImpl" entity-name="Head" abstract="false" lazy="false" discriminator-value="Head" table="`head`"> + <meta attribute="eclassName">Head</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/resource</meta> + <id name="hair" type="java.lang.String"> + <column not-null="true" unique="false" name="`hair`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.resource.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/resource</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="head" entity-name="Head" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`head_head_hair`"/> + </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.test.issues/ResourceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/ResourceAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..063a6eee5 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/ResourceAction_mysql_e_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:21 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.resource.impl.HeadImpl" entity-name="Head" abstract="false" lazy="false" table="`head`"> + <meta attribute="eclassName">Head</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/resource</meta> + <id name="hair" type="java.lang.String"> + <column not-null="true" unique="false" name="`hair`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.resource.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/resource</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="head" entity-name="Head" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`head_head_hair`"/> + </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.test.issues/ResourceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/ResourceAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..6f0c8721b --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/ResourceAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:09 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.resource.impl.HeadImpl" entity-name="Head" abstract="false" lazy="false" table="`head`"> + <meta attribute="eclassName">Head</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/resource</meta> + <id name="hair" type="java.lang.String"> + <column not-null="true" unique="false" name="`hair`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.resource.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" table="`person`"> + <meta attribute="eclassName">Person</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/resource</meta> + <id name="name" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <many-to-one name="head" entity-name="Head" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`head_head_hair`"/> + </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.test.issues/SimplenmAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/SimplenmAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..ddb6277d2 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/SimplenmAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,54 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:19 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.simplenm.impl.MeImpl" entity-name="Me" abstract="false" lazy="false" discriminator-value="Me" table="`me`"> + <meta attribute="eclassName">Me</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/simplenm</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="you" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`me_you`"> + <key update="true"> + <column name="`me_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`me_you_idx`"/> + <many-to-many entity-name="You" unique="false"> + <column name="`you_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.simplenm.impl.YouImpl" entity-name="You" abstract="false" lazy="false" discriminator-value="You" table="`you`"> + <meta attribute="eclassName">You</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/simplenm</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="me" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`you_me`"> + <key update="true"> + <column name="`you_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`you_me_idx`"/> + <many-to-many entity-name="Me" unique="false"> + <column name="`me_e_id`" not-null="true" unique="false"/> + </many-to-many> + </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.test.issues/SimplenmAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/SimplenmAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..8b160a715 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/SimplenmAction_mysql_e_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:25 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.simplenm.impl.MeImpl" entity-name="Me" abstract="false" lazy="false" table="`me`"> + <meta attribute="eclassName">Me</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/simplenm</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="you" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`me_you`"> + <key update="true"> + <column name="`me_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`me_you_idx`"/> + <many-to-many entity-name="You" unique="false"> + <column name="`you_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.simplenm.impl.YouImpl" entity-name="You" abstract="false" lazy="false" table="`you`"> + <meta attribute="eclassName">You</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/simplenm</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="me" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`you_me`"> + <key update="true"> + <column name="`you_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`you_me_idx`"/> + <many-to-many entity-name="Me" unique="false"> + <column name="`me_e_id`" not-null="true" unique="false"/> + </many-to-many> + </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.test.issues/SimplenmAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/SimplenmAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..daf66c3c9 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/SimplenmAction_mysql_s_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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:15 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.simplenm.impl.MeImpl" entity-name="Me" abstract="false" lazy="false" table="`me`"> + <meta attribute="eclassName">Me</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/simplenm</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="you" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`me_you`"> + <key update="true"> + <column name="`me_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`me_you_idx`"/> + <many-to-many entity-name="You" unique="false"> + <column name="`you_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.simplenm.impl.YouImpl" entity-name="You" abstract="false" lazy="false" table="`you`"> + <meta attribute="eclassName">You</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/simplenm</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`name`"/> + </property> + <list name="me" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`you_me`"> + <key update="true"> + <column name="`you_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`you_me_idx`"/> + <many-to-many entity-name="Me" unique="false"> + <column name="`me_e_id`" not-null="true" unique="false"/> + </many-to-many> + </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.test.issues/TopClassesAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/TopClassesAction_mysql_a_o_hibernate.hbm.xml new file mode 100644 index 000000000..1d4b23541 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/TopClassesAction_mysql_a_o_hibernate.hbm.xml @@ -0,0 +1,79 @@ +<?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"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:20 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.AbstractSuperImpl" entity-name="AbstractSuper" abstract="false" lazy="false" discriminator-value="AbstractSuper" table="`abstractsuper`"> + <meta attribute="eclassName">AbstractSuper</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <discriminator column="`dtype`" type="string"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + </class> + <subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.MImpl" entity-name="M" abstract="false" lazy="false" extends="AbstractSuper" discriminator-value="M"> + <meta attribute="eclassName">M</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <list name="p" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`m_p`"> + <key update="true"> + <column name="`m_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`m_p_idx`"/> + <many-to-many entity-name="P" unique="false"> + <column name="`p_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.MListImpl" entity-name="MList" abstract="false" lazy="false" extends="AbstractSuper" discriminator-value="MList"> + <meta attribute="eclassName">MList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <list name="m" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`mlist_m_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`mlist_m_idx`"/> + <one-to-many entity-name="M"/> + </list> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.PImpl" entity-name="P" abstract="false" lazy="false" extends="AbstractSuper" discriminator-value="P"> + <meta attribute="eclassName">P</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <list name="m" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`p_m`"> + <key update="true"> + <column name="`p_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`p_m_idx`"/> + <many-to-many entity-name="M" unique="false"> + <column name="`m_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.PListImpl" entity-name="PList" abstract="false" lazy="false" extends="AbstractSuper" discriminator-value="PList"> + <meta attribute="eclassName">PList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <list name="p" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`plist_p_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`plist_p_idx`"/> + <one-to-many entity-name="P"/> + </list> + </subclass> + <subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.RImpl" entity-name="R" abstract="false" lazy="false" extends="AbstractSuper" discriminator-value="R"> + <meta attribute="eclassName">R</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <many-to-one name="plist" entity-name="PList" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`plist_plist_e_id`"/> + </many-to-one> + <many-to-one name="mlist" entity-name="MList" cascade="all" lazy="false" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`mlist_mlist_e_id`"/> + </many-to-one> + </subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/TopClassesAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/TopClassesAction_mysql_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..8c64407ec --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/TopClassesAction_mysql_e_o_hibernate.hbm.xml @@ -0,0 +1,93 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:25 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.AbstractSuperImpl" entity-name="AbstractSuper" abstract="false" lazy="false" table="`abstractsuper`"> + <meta attribute="eclassName">AbstractSuper</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.MImpl" entity-name="M" abstract="false" lazy="false" extends="AbstractSuper" table="`m`"> + <meta attribute="eclassName">M</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <key> + <column name="`abstractsuper_e_id`"/> + </key> + <list name="p" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`m_p`"> + <key update="true"> + <column name="`m_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`m_p_idx`"/> + <many-to-many entity-name="P" unique="false"> + <column name="`p_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.MListImpl" entity-name="MList" abstract="false" lazy="false" extends="AbstractSuper" table="`mlist`"> + <meta attribute="eclassName">MList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <key> + <column name="`abstractsuper_e_id`"/> + </key> + <list name="m" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`mlist_m_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`mlist_m_idx`"/> + <one-to-many entity-name="M"/> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.PImpl" entity-name="P" abstract="false" lazy="false" extends="AbstractSuper" table="`p`"> + <meta attribute="eclassName">P</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <key> + <column name="`abstractsuper_e_id`"/> + </key> + <list name="m" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`p_m`"> + <key update="true"> + <column name="`p_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`p_m_idx`"/> + <many-to-many entity-name="M" unique="false"> + <column name="`m_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.PListImpl" entity-name="PList" abstract="false" lazy="false" extends="AbstractSuper" table="`plist`"> + <meta attribute="eclassName">PList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <key> + <column name="`abstractsuper_e_id`"/> + </key> + <list name="p" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`plist_p_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`plist_p_idx`"/> + <one-to-many entity-name="P"/> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.RImpl" entity-name="R" abstract="false" lazy="false" extends="AbstractSuper" table="`r`"> + <meta attribute="eclassName">R</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <key> + <column name="`abstractsuper_e_id`"/> + </key> + <many-to-one name="plist" entity-name="PList" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`plist_plist_e_id`"/> + </many-to-one> + <many-to-one name="mlist" entity-name="MList" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`mlist_mlist_e_id`"/> + </many-to-one> + </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.test.issues/TopClassesAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/TopClassesAction_mysql_s_o_hibernate.hbm.xml new file mode 100644 index 000000000..2af017873 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/TopClassesAction_mysql_s_o_hibernate.hbm.xml @@ -0,0 +1,93 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> + +<!-- Generated by Teneo on Thu Mar 29 16:15:15 CEST 2007 --> +<hibernate-mapping> + <class name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.AbstractSuperImpl" entity-name="AbstractSuper" abstract="false" lazy="false" table="`abstractsuper`"> + <meta attribute="eclassName">AbstractSuper</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId">true</meta> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.MImpl" entity-name="M" abstract="false" lazy="false" extends="AbstractSuper" table="`m`"> + <meta attribute="eclassName">M</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <key> + <column name="`abstractsuper_e_id`"/> + </key> + <list name="p" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`m_p`"> + <key update="true"> + <column name="`m_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`m_p_idx`"/> + <many-to-many entity-name="P" unique="false"> + <column name="`p_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.MListImpl" entity-name="MList" abstract="false" lazy="false" extends="AbstractSuper" table="`mlist`"> + <meta attribute="eclassName">MList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <key> + <column name="`abstractsuper_e_id`"/> + </key> + <list name="m" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`mlist_m_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`mlist_m_idx`"/> + <one-to-many entity-name="M"/> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.PImpl" entity-name="P" abstract="false" lazy="false" extends="AbstractSuper" table="`p`"> + <meta attribute="eclassName">P</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <key> + <column name="`abstractsuper_e_id`"/> + </key> + <list name="m" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`p_m`"> + <key update="true"> + <column name="`p_e_id`" not-null="true" unique="false"/> + </key> + <list-index column="`p_m_idx`"/> + <many-to-many entity-name="M" unique="false"> + <column name="`m_e_id`" not-null="true" unique="false"/> + </many-to-many> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.PListImpl" entity-name="PList" abstract="false" lazy="false" extends="AbstractSuper" table="`plist`"> + <meta attribute="eclassName">PList</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <key> + <column name="`abstractsuper_e_id`"/> + </key> + <list name="p" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`plist_p_e_id`" not-null="false" unique="false"/> + </key> + <list-index column="`plist_p_idx`"/> + <one-to-many entity-name="P"/> + </list> + </joined-subclass> + <joined-subclass name="org.eclipse.emf.teneo.samples.issues.topclasses.impl.RImpl" entity-name="R" abstract="false" lazy="false" extends="AbstractSuper" table="`r`"> + <meta attribute="eclassName">R</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/issues/topclasses</meta> + <key> + <column name="`abstractsuper_e_id`"/> + </key> + <many-to-one name="plist" entity-name="PList" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`plist_plist_e_id`"/> + </many-to-one> + <many-to-one name="mlist" entity-name="MList" cascade="all" lazy="false" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`mlist_mlist_e_id`"/> + </many-to-one> + </joined-subclass> +</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/annotations/AllTests.java b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/annotations/AllTests.java index a3e285889..0d906d64f 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/annotations/AllTests.java +++ b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/annotations/AllTests.java @@ -11,7 +11,7 @@ * Martin Taal * </copyright> * - * $Id: AllTests.java,v 1.33 2007/03/24 11:49:06 mtaal Exp $ + * $Id: AllTests.java,v 1.34 2007/03/29 15:00:21 mtaal Exp $ */ package org.eclipse.emf.teneo.hibernate.test.emf.annotations; @@ -54,21 +54,22 @@ import org.eclipse.emf.teneo.test.emf.annotations.UniqueConstraintsAction; * All tests * * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> - * @version $Revision: 1.33 $ + * @version $Revision: 1.34 $ */ public class AllTests { public static Test suite() { TestSuite suite = new MultiCfgTestSuite("Test for org.eclipse.emf.teneo.hibernate.test.emf.annotations", HibernateTestbed.instance().getConfigurations()); + + suite.addTestSuite(EmbeddedAction.class); + suite.addTestSuite(AssociationOverrideAction.class); suite.addTestSuite(ForcedIdBagAction.class); suite.addTestSuite(IdBagAction.class); - suite.addTestSuite(EmbeddedAction.class); - suite.addTestSuite(LazyLibraryAction.class); suite.addTestSuite(CascadeNotallAction.class); diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/detach/AllTests.java b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/detach/AllTests.java index 6d6bce6a4..89d670daa 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/detach/AllTests.java +++ b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/detach/AllTests.java @@ -11,7 +11,7 @@ * Martin Taal * </copyright> * - * $Id: AllTests.java,v 1.4 2007/03/04 21:18:28 mtaal Exp $ + * $Id: AllTests.java,v 1.5 2007/03/29 15:00:21 mtaal Exp $ */ package org.eclipse.emf.teneo.hibernate.test.emf.detach; @@ -27,7 +27,7 @@ import org.eclipse.emf.teneo.test.emf.detach.DetachEListAction; * Test * * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ */ public class AllTests { @@ -38,6 +38,7 @@ public class AllTests { suite.addTestSuite(DetachEListAction.class); suite.addTestSuite(DetachTest.class); + return suite; } } diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/sample/AllTests.java b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/sample/AllTests.java index 22dd9653c..d4f1f188f 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/sample/AllTests.java +++ b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/sample/AllTests.java @@ -11,7 +11,7 @@ * Martin Taal * </copyright> * - * $Id: AllTests.java,v 1.37 2007/03/28 13:58:30 mtaal Exp $ + * $Id: AllTests.java,v 1.38 2007/03/29 15:00:21 mtaal Exp $ */ package org.eclipse.emf.teneo.hibernate.test.emf.sample; @@ -35,21 +35,21 @@ import org.eclipse.emf.teneo.test.emf.sample.LibraryNonResolvingAction; import org.eclipse.emf.teneo.test.emf.sample.LibraryQualifyActionHB; import org.eclipse.emf.teneo.test.emf.sample.LibraryResourceAction; import org.eclipse.emf.teneo.test.emf.sample.LibraryResourceCutPasteAction; -import org.eclipse.emf.teneo.test.emf.sample.LibraryResourceReferenceAction; import org.eclipse.emf.teneo.test.emf.sample.LibrarySerializationAction; import org.eclipse.emf.teneo.test.emf.sample.MindMapAction; import org.eclipse.emf.teneo.test.emf.sample.PlayAction; import org.eclipse.emf.teneo.test.emf.sample.PrimerPOAction; import org.eclipse.emf.teneo.test.emf.sample.ProductAction; +import org.eclipse.emf.teneo.test.emf.sample.RentalMapAsClassAction; +import org.eclipse.emf.teneo.test.emf.sample.RentalResourceReferenceAction; import org.eclipse.emf.teneo.test.emf.sample.SunBooksAction; import org.eclipse.emf.teneo.test.emf.sample.WorkFlowAction; -import org.eclipse.emf.teneo.test.issues.AgilAction; /** * All sample tests * * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> - * @version $Revision: 1.37 $ + * @version $Revision: 1.38 $ */ public class AllTests { @@ -59,9 +59,13 @@ public class AllTests { // suite.addTestSuite(GMFNotationAction.class); // suite.addTestSuite(LobjAction.class); - suite.addTestSuite(AgilAction.class); -/* - suite.addTestSuite(LibraryResourceReferenceAction.class); +// suite.addTestSuite(AgilAction.class); + + suite.addTestSuite(RentalMapAsClassAction.class); + + suite.addTestSuite(RentalResourceReferenceAction.class); + + suite.addTestSuite(ProductAction.class); suite.addTestSuite(LibraryAction.class); @@ -72,8 +76,6 @@ public class AllTests { suite.addTestSuite(LibraryNonResolvingAction.class); suite.addTestSuite(EcoreAction.class); - - suite.addTestSuite(ProductAction.class); suite.addTestSuite(DynamicAction.class); @@ -117,7 +119,7 @@ public class AllTests { suite.addTestSuite(PrimerPOAction.class); suite.addTestSuite(WorkFlowAction.class); suite.addTestSuite(ForumAction.class); -*/ + return suite; } } diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/schemaconstructs/AllTests.java b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/schemaconstructs/AllTests.java index 729df84da..cc71b0783 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/schemaconstructs/AllTests.java +++ b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/emf/schemaconstructs/AllTests.java @@ -11,7 +11,7 @@ * Martin Taal * </copyright> * - * $Id: AllTests.java,v 1.9 2007/03/18 19:18:50 mtaal Exp $ + * $Id: AllTests.java,v 1.10 2007/03/29 15:00:21 mtaal Exp $ */ package org.eclipse.emf.teneo.hibernate.test.emf.schemaconstructs; @@ -39,7 +39,7 @@ import org.eclipse.emf.teneo.test.emf.schemaconstructs.SubstitutionzvonAction; * All tests * * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> - * @version $Revision: 1.9 $ + * @version $Revision: 1.10 $ */ public class AllTests { @@ -47,7 +47,7 @@ public class AllTests { TestSuite suite = new MultiCfgTestSuite("Test for org.eclipse.emf.teneo.hibernate.test.emf.schemaconstructs", HibernateTestbed .instance().getConfigurations()); suite.addTestSuite(EMapAction.class); - +/* suite.addTestSuite(DateTimeAction.class); suite.addTestSuite(AttributesTest.class); suite.addTestSuite(SimpleTypeAction.class); diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/stores/HibernateTestStore.java b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/stores/HibernateTestStore.java index be01888d1..a66f0819d 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/stores/HibernateTestStore.java +++ b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/hibernate/test/stores/HibernateTestStore.java @@ -11,13 +11,14 @@ * Martin Taal * </copyright> * - * $Id: HibernateTestStore.java,v 1.15 2007/03/21 15:46:13 mtaal Exp $ + * $Id: HibernateTestStore.java,v 1.16 2007/03/29 15:00:21 mtaal Exp $ */ package org.eclipse.emf.teneo.hibernate.test.stores; import java.sql.Connection; import java.util.Date; +import java.util.Iterator; import java.util.List; import java.util.Properties; @@ -52,7 +53,7 @@ import org.hibernate.cfg.Environment; * The hibernate test store encapsulates the datastore actions to a hibernate store. * * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> - * @version $Revision: 1.15 $ + * @version $Revision: 1.16 $ */ public class HibernateTestStore extends AbstractTestStore { /** The logger */ |