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.test.issues/BZ247785Action_mysql_a_o_hibernate.hbm.xml')
-rwxr-xr-xtests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BZ247785Action_mysql_a_o_hibernate.hbm.xml49
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BZ247785Action_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BZ247785Action_mysql_a_o_hibernate.hbm.xml
new file mode 100755
index 000000000..4372446f1
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BZ247785Action_mysql_a_o_hibernate.hbm.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+
+<hibernate-mapping auto-import="false">
+ <class name="org.eclipse.emf.teneo.samples.issues.bz247785.impl.OwnerImpl" entity-name="Owner" abstract="false" lazy="false" discriminator-value="Owner" table="`owner`">
+ <meta attribute="eclassName">Owner</meta>
+ <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz247785</meta>
+ <id name="id" type="java.lang.Long">
+ <column not-null="true" unique="false" name="`owner_id`"/>
+ <generator class="native"/>
+ </id>
+ <discriminator type="string">
+ <column name="dtype" index="ownerdtype" 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="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`name`"/>
+ </property>
+ <bag name="ownedCats" inverse="true" lazy="true" cascade="merge,persist,save-update,lock">
+ <key update="true">
+ <column name="`cat_owner_id`" not-null="false" unique="false"/>
+ </key>
+ <one-to-many entity-name="Cat"/>
+ </bag>
+ </class>
+ <class name="org.eclipse.emf.teneo.samples.issues.bz247785.bz247785Sub.impl.AnimalImpl" entity-name="Animal" abstract="false" lazy="false" discriminator-value="Animal" table="`animal`">
+ <meta attribute="eclassName">Animal</meta>
+ <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz247785/sub</meta>
+ <id name="id" type="java.lang.Long">
+ <column not-null="true" unique="false" name="`animal_id`"/>
+ <generator class="native"/>
+ </id>
+ <discriminator type="string">
+ <column name="dtype" index="ANIMALdtype" 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>
+ </class>
+ <subclass name="org.eclipse.emf.teneo.samples.issues.bz247785.bz247785Sub.impl.CatImpl" entity-name="Cat" abstract="false" lazy="false" extends="Animal" discriminator-value="Cat">
+ <meta attribute="eclassName">Cat</meta>
+ <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz247785/sub</meta>
+ <many-to-one name="owner" entity-name="Owner" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="cat_owner" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`cat_owner_id`"/>
+ </many-to-one>
+ </subclass>
+</hibernate-mapping> \ No newline at end of file

Back to the top