| <?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 entity-name="ComType" abstract="false" lazy="true" table="`comtype`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl"> |
| <meta attribute="eclassName" inherit="false">ComType</meta> |
| <meta attribute="epackage" inherit="false">http://www.tech.com/tech/test/UploadNewXSDTest</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> |
| <list name="employees" lazy="true" cascade="all,delete-orphan"> |
| <key update="true" foreign-key="comtype_employees"> |
| <column name="`comtype_employees_e_id`" not-null="false" unique="false"/> |
| </key> |
| <list-index column="`comtype_employees_idx`"/> |
| <one-to-many entity-name="PersonType"/> |
| </list> |
| <many-to-one name="location" entity-name="LocationType" lazy="proxy" cascade="all" foreign-key="comtype_location" insert="true" update="true" not-null="true" unique="true"> |
| <column not-null="true" unique="false" name="`locationtype_location_e_id`"/> |
| </many-to-one> |
| <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> |
| <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.tech.com/tech/test/UploadNewXSDTest</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="booktype" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> |
| <column not-null="true" unique="false" name="`booktype`"/> |
| </property> |
| <property name="bookname" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> |
| <column not-null="true" unique="false" name="`bookname`"/> |
| </property> |
| </class> |
| <class entity-name="LocationType" abstract="false" lazy="true" table="`locationtype`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl"> |
| <meta attribute="eclassName" inherit="false">LocationType</meta> |
| <meta attribute="epackage" inherit="false">http://www.tech.com/tech/test/UploadNewXSDTest</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> |
| <many-to-one name="zip" entity-name="Department" lazy="proxy" cascade="all" foreign-key="locationtype_zip" insert="true" update="true" not-null="true" unique="true"> |
| <column not-null="true" unique="false" name="`department_zip_e_id`"/> |
| </many-to-one> |
| <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> |
| <column not-null="false" unique="false" name="`address`"/> |
| </property> |
| </class> |
| <class entity-name="PersonType" abstract="false" lazy="true" table="`persontype`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl"> |
| <meta attribute="eclassName" inherit="false">PersonType</meta> |
| <meta attribute="epackage" inherit="false">http://www.tech.com/tech/test/UploadNewXSDTest</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="lastName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> |
| <column not-null="true" unique="false" name="`lastname`"/> |
| </property> |
| <property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> |
| <column not-null="false" unique="false" name="`age`"/> |
| </property> |
| <property name="firstName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> |
| <column not-null="false" unique="false" name="`firstname`"/> |
| </property> |
| </class> |
| </hibernate-mapping> |