Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach')
-rwxr-xr-xtests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachFeatureMapTest$1_mysql_a_o_hibernate.hbm.xml76
-rwxr-xr-xtests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachFeatureMapTest$1_mysql_e_o_hibernate.hbm.xml73
-rwxr-xr-xtests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachFeatureMapTest$1_mysql_s_o_hibernate.hbm.xml73
-rwxr-xr-xtests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachTest$1_mysql_a_o_hibernate.hbm.xml69
-rwxr-xr-xtests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachTest$1_mysql_e_o_hibernate.hbm.xml60
-rwxr-xr-xtests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachTest$1_mysql_s_o_hibernate.hbm.xml60
6 files changed, 411 insertions, 0 deletions
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 100755
index 000000000..1b7b1b1b8
--- /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,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">
+
+<hibernate-mapping auto-import="false">
+ <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 type="string">
+ <column name="dtype" index="contactsdtype" length="255" not-null="true"/>
+ </discriminator>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion">true</meta>
+ </version>
+ <list name="persons" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="contacts_persons">
+ <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 type="string">
+ <column name="dtype" index="persondtype" length="255" not-null="true"/>
+ </discriminator>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion">true</meta>
+ </version>
+ <property name="name" 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" table="`person_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="`phones_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="`phones_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="`phones_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="`phones_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 100755
index 000000000..f37f9b79e
--- /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,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">
+
+<hibernate-mapping auto-import="false">
+ <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" foreign-key="contacts_persons">
+ <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" table="`person_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="`phones_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="`phones_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="`phones_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="`phones_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 100755
index 000000000..f37f9b79e
--- /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,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">
+
+<hibernate-mapping auto-import="false">
+ <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" foreign-key="contacts_persons">
+ <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" table="`person_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="`phones_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="`phones_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="`phones_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="`phones_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 100755
index 000000000..b37071b51
--- /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,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<hibernate-mapping auto-import="false">
+ <class name="org.eclipse.emf.teneo.samples.emf.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 type="string">
+ <column name="dtype" index="testadtype" length="255" not-null="true"/>
+ </discriminator>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion">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" lazy="false" cascade="all" foreign-key="testa_testb" insert="true" update="true" not-null="true" unique="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 type="string">
+ <column name="dtype" index="testbdtype" length="255" not-null="true"/>
+ </discriminator>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion">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 type="string">
+ <column name="dtype" index="testcdtype" length="255" not-null="true"/>
+ </discriminator>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion">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" foreign-key="testc_testb">
+ <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 100755
index 000000000..8df7d36ed
--- /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,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<hibernate-mapping auto-import="false">
+ <class name="org.eclipse.emf.teneo.samples.emf.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" lazy="false" cascade="all" foreign-key="testa_testb" insert="true" update="true" not-null="true" unique="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" foreign-key="testc_testb">
+ <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 100755
index 000000000..8df7d36ed
--- /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,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<hibernate-mapping auto-import="false">
+ <class name="org.eclipse.emf.teneo.samples.emf.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" lazy="false" cascade="all" foreign-key="testa_testb" insert="true" update="true" not-null="true" unique="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" foreign-key="testc_testb">
+ <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

Back to the top