diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BZ247939Action_mysql_s_o_hibernate.hbm.xml')
-rwxr-xr-x | tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BZ247939Action_mysql_s_o_hibernate.hbm.xml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BZ247939Action_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BZ247939Action_mysql_s_o_hibernate.hbm.xml new file mode 100755 index 000000000..0656e132d --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BZ247939Action_mysql_s_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"> + +<hibernate-mapping auto-import="false"> + <class name="org.eclipse.emf.teneo.samples.issues.bz247939.impl.AnimalImpl" entity-name="Animal" abstract="false" lazy="false" discriminator-value="Animal" table="`animal`"> + <meta attribute="eclassName" inherit="false">Animal</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz247939</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="ANIMAL_TYPE" index="ANIMALANIMAL_TYPE" length="255" not-null="true"/> + </discriminator> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + </class> + <class name="org.eclipse.emf.teneo.samples.issues.bz247939.impl.OwnerImpl" entity-name="Owner" abstract="false" lazy="false" table="`owner`"> + <meta attribute="eclassName" inherit="false">Owner</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz247939</meta> + <id name="id" type="java.lang.Long"> + <column not-null="true" unique="false" name="`owner_id`"/> + <generator class="native"/> + </id> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> + <meta attribute="syntheticVersion" inherit="false">true</meta> + </version> + <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`name`"/> + </property> + <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> + <subclass name="org.eclipse.emf.teneo.samples.issues.bz247939.impl.CatImpl" entity-name="Cat" abstract="false" lazy="false" extends="Animal" discriminator-value="Cat"> + <meta attribute="eclassName" inherit="false">Cat</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz247939</meta> + <join table="`cat`"> + <key> + <column name="`animal_id`"/> + </key> + <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> + </join> + </subclass> +</hibernate-mapping>
\ No newline at end of file |