Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2007-03-29 15:00:16 +0000
committermtaal2007-03-29 15:00:16 +0000
commit19a83b62cb2087d12bb022026939698afda8378e (patch)
tree8ca9616a72314b20a07a46447f791c19cad3e1ef /tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach
parent0e0bf52120d47f42cb3c85a5492f17834f5e8d5d (diff)
downloadorg.eclipse.emf.teneo-19a83b62cb2087d12bb022026939698afda8378e.tar.gz
org.eclipse.emf.teneo-19a83b62cb2087d12bb022026939698afda8378e.tar.xz
org.eclipse.emf.teneo-19a83b62cb2087d12bb022026939698afda8378e.zip
[177370]
[179446] [177369]
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach')
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachFeatureMapTest$1_mysql_a_o_hibernate.hbm.xml73
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachFeatureMapTest$1_mysql_e_o_hibernate.hbm.xml74
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachFeatureMapTest$1_mysql_s_o_hibernate.hbm.xml74
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachTest$1_mysql_a_o_hibernate.hbm.xml64
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachTest$1_mysql_e_o_hibernate.hbm.xml61
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.detach/DetachTest$1_mysql_s_o_hibernate.hbm.xml61
6 files changed, 407 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 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

Back to the top