| <?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 Wed Jul 18 20:43:34 CEST 2007 --> |
| <hibernate-mapping auto-import="false"> |
| <class name="testinheritance.impl.SomeBaseClassImpl" entity-name="SomeBaseClass" abstract="false" lazy="false" 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> |
| <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> |
| <joined-subclass name="testinheritance.impl.SomeResourceImpl" entity-name="SomeResource" abstract="false" lazy="false" extends="SomeBaseClass" table="`someresource`"> |
| <meta attribute="eclassName">SomeResource</meta> |
| <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> |
| <key> |
| <column name="`somebaseclass_e_id`"/> |
| </key> |
| <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> |
| </joined-subclass> |
| <class name="testinheritance.impl.NameValuePairImpl" entity-name="NameValuePair" abstract="false" lazy="false" 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> |
| <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" 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> |
| <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" table="`child`"> |
| <meta attribute="eclassName">Child</meta> |
| <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> |
| <id name="testId" type="long"> |
| <column not-null="true" unique="true" name="`testid`"/> |
| </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="false" unique="false" type="java.lang.String"> |
| <column not-null="false" unique="false" name="`name`"/> |
| </property> |
| <many-to-one name="someReference" entity-name="SomeReference" cascade="merge,persist,save-update,lock,refresh" lazy="false" 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> |
| <joined-subclass name="testinheritance.impl.Child2Impl" entity-name="Child2" abstract="false" lazy="false" extends="ParentOne" table="`child2`"> |
| <meta attribute="eclassName">Child2</meta> |
| <meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta> |
| <key> |
| <column name="`parentzero_e_id`"/> |
| </key> |
| <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" cascade="merge,persist,save-update,lock,refresh" lazy="false" 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> |
| </joined-subclass> |
| <class name="testinheritance.impl.SomeReferenceImpl" entity-name="SomeReference" abstract="false" lazy="false" 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="true" name="`name`"/> |
| </id> |
| <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> |