| <?xml version="1.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="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 type="string"> |
| <column name="dtype" index="somebaseclassdtype" 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="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.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 type="string"> |
| <column name="dtype" index="namevaluepairdtype" 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> |
| <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 type="string"> |
| <column name="dtype" index="parentonedtype" 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="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" unsaved-value="0"> |
| <column not-null="true" unique="false" name="`testid`"/> |
| </id> |
| <discriminator type="string"> |
| <column name="dtype" index="childdtype" 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> |
| <many-to-one name="someReference" entity-name="SomeReference" lazy="false" cascade="merge,persist,save-update,lock,refresh" insert="true" update="true" not-null="true"> |
| <column not-null="true" unique="false" name="`somereference_somereference_name`"/> |
| </many-to-one> |
| <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> |
| <many-to-one name="someReference" entity-name="SomeReference" lazy="false" cascade="merge,persist,save-update,lock,refresh" insert="true" update="true" not-null="false"> |
| <column not-null="false" unique="false" name="`somereference_somereference_name`"/> |
| </many-to-one> |
| <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> |
| <class name="testinheritance.impl.SomeReferenceImpl" entity-name="SomeReference" abstract="false" lazy="false" discriminator-value="SomeReference" table="`somereference`"> |
| <meta attribute="eclassName">SomeReference</meta> |
| <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> |
| <id name="name" type="java.lang.String"> |
| <column not-null="true" unique="false" name="`name`"/> |
| </id> |
| <discriminator type="string"> |
| <column name="dtype" index="somereferencedtype" 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> |
| </hibernate-mapping> |