blob: ab81108c8e0234b423efd2c394c3ba30a84842b0 [file] [log] [blame]
<?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.emf.sample.dynamic.impl.PersonImpl" entity-name="Person" abstract="false" lazy="true" table="`person`" proxy="org.eclipse.emf.teneo.samples.emf.sample.dynamic.Person">
<meta attribute="eclassName" inherit="false">Person</meta>
<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/dynamic</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId" inherit="false">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" inherit="false">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="group" table="`person_group`" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`person_group_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`person_group_idx`"/>
<one-to-many entity-name="Person_group"/>
</list>
</class>
<class entity-name="Person_group" lazy="false" table="`person_group`">
<meta attribute="featureMap" inherit="false">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" inherit="false">true</meta>
</version>
<property name="fme_feature" type="java.lang.String"/>
<property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
<column not-null="false" unique="false" name="`group_age`"/>
</property>
<property name="length" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
<column not-null="false" unique="false" name="`group_length`"/>
</property>
</class>
<joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.dynamic.impl.PersonImpl" entity-name="Employee" abstract="false" lazy="true" extends="Person" table="`employee`" proxy="org.eclipse.emf.teneo.samples.emf.sample.dynamic.impl.PersonImpl">
<meta attribute="eclassName" inherit="false">Employee</meta>
<meta attribute="epackage" inherit="false">http:///www.elver.org/DynamicTest</meta>
<key>
<column name="`person_e_id`"/>
</key>
<property name="manager" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
<column not-null="false" unique="false" name="`manager`"/>
</property>
<many-to-one name="department" entity-name="Department" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="employee_department" insert="true" update="true" not-null="false">
<column not-null="false" unique="false" name="`department_department_e_id`"/>
</many-to-one>
</joined-subclass>
<joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.dynamic.impl.PersonImpl" entity-name="SpecialEmployee" abstract="false" lazy="true" extends="Employee" table="`specialemployee`" proxy="org.eclipse.emf.teneo.samples.emf.sample.dynamic.impl.PersonImpl">
<meta attribute="eclassName" inherit="false">SpecialEmployee</meta>
<meta attribute="epackage" inherit="false">http:///www.elver.org/DynamicTest</meta>
<key>
<column name="`employee_e_id`"/>
</key>
<list name="offices" lazy="true" cascade="merge,persist,save-update,lock,refresh">
<key update="true" foreign-key="specialemployee_offices">
<column name="`specialemployee_offices_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`specialemployee_offices_idx`"/>
<one-to-many entity-name="Office"/>
</list>
</joined-subclass>
<class entity-name="Department" abstract="false" lazy="true" table="`department`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl">
<meta attribute="eclassName" inherit="false">Department</meta>
<meta attribute="epackage" inherit="false">http:///www.elver.org/DynamicTest</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId" inherit="false">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" 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>
<list name="manager" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="department_manager">
<column name="`department_manager_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`department_manager_idx`"/>
<one-to-many entity-name="Employee"/>
</list>
<many-to-one name="office" entity-name="Office" lazy="proxy" cascade="all" foreign-key="department_office" insert="true" update="true" not-null="false">
<column not-null="false" unique="false" name="`office_office_name`"/>
</many-to-one>
<property name="departmentType" lazy="false" not-null="false" insert="true" update="true" unique="false">
<column not-null="false" unique="false" name="`departmenttype`"/>
<type name="org.eclipse.emf.teneo.hibernate.mapping.DynamicENumUserType">
<param name="eclassifier">DepartmentType</param>
<param name="epackage">http:///www.elver.org/DynamicTest</param>
</type>
</property>
</class>
<class entity-name="Office" abstract="false" lazy="true" table="`office`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl">
<meta attribute="eclassName" inherit="false">Office</meta>
<meta attribute="epackage" inherit="false">http:///www.elver.org/DynamicTest</meta>
<id name="name" type="java.lang.String">
<column not-null="true" unique="false" name="`name`"/>
</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>
<many-to-one name="address" entity-name="Address" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="office_address" insert="true" update="true" not-null="false">
<column not-null="false" unique="false" name="`address_address_e_id`"/>
</many-to-one>
</class>
<class entity-name="Address" abstract="false" lazy="true" table="`address`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl">
<meta attribute="eclassName" inherit="false">Address</meta>
<meta attribute="epackage" inherit="false">http:///www.elver.org/DynamicTest</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId" inherit="false">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" 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>
</class>
</hibernate-mapping>