| <?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 16:47:46 CEST 2007 --> |
| <hibernate-mapping auto-import="false"> |
| <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> |
| <meta attribute="eclassName">Item</meta> |
| <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</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> |
| <many-to-one name="order" entity-name="PurchaseOrder" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> |
| <column not-null="false" unique="false" name="`item_order_e_id`"/> |
| </many-to-one> |
| <property name="productName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> |
| <column not-null="false" unique="false" name="`productname`"/> |
| </property> |
| <property name="quantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> |
| <column not-null="false" unique="false" name="`quantity`"/> |
| </property> |
| <property name="USPrice" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> |
| <column not-null="false" unique="false" name="`usprice`"/> |
| </property> |
| <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> |
| <column not-null="false" unique="false" name="`comment`"/> |
| </property> |
| <property name="shipDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> |
| <column not-null="false" unique="false" name="`shipdate`"/> |
| </property> |
| <property name="partNum" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> |
| <column not-null="false" unique="false" name="`partnum`"/> |
| </property> |
| </class> |
| <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.AddressImpl" entity-name="Address" abstract="true" lazy="false" table="`address`"> |
| <meta attribute="eclassName">Address</meta> |
| <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</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="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> |
| <column not-null="false" unique="false" name="`country`"/> |
| </property> |
| </class> |
| <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`usaddress`"> |
| <meta attribute="eclassName">USAddress</meta> |
| <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> |
| <key> |
| <column name="`address_e_id`"/> |
| </key> |
| <property name="street" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> |
| <column not-null="false" unique="false" name="`street`"/> |
| </property> |
| <property name="city" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> |
| <column not-null="false" unique="false" name="`city`"/> |
| </property> |
| <property name="state" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> |
| <column not-null="false" unique="false" name="`state`"/> |
| </property> |
| <property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> |
| <column not-null="false" unique="false" name="`zip`"/> |
| </property> |
| </joined-subclass> |
| <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.PurchaseOrderImpl" entity-name="PurchaseOrder" abstract="false" lazy="false" table="`purchaseorder`"> |
| <meta attribute="eclassName">PurchaseOrder</meta> |
| <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</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> |
| <list name="items" lazy="true" cascade="all,delete-orphan"> |
| <key update="true"> |
| <column name="`item_order_e_id`" not-null="false" unique="false"/> |
| </key> |
| <list-index column="`purchaseorder_items_idx`"/> |
| <one-to-many entity-name="Item"/> |
| </list> |
| <many-to-one name="billTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="true"> |
| <column not-null="true" unique="false" name="`address_billto_e_id`"/> |
| </many-to-one> |
| <many-to-one name="shipTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false"> |
| <column not-null="false" unique="false" name="`address_shipto_e_id`"/> |
| </many-to-one> |
| <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> |
| <column not-null="false" unique="false" name="`comment`"/> |
| </property> |
| <property name="orderDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> |
| <column not-null="false" unique="false" name="`orderdate`"/> |
| </property> |
| <property name="status" lazy="false" not-null="false" insert="true" update="true" unique="false"> |
| <column not-null="false" unique="false" name="`status`"/> |
| <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> |
| <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.epo2.OrderStatus</param> |
| </type> |
| </property> |
| <many-to-one name="customer" entity-name="Customer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false"> |
| <column not-null="false" unique="false" name="`purchaseorder_customer_e_id`"/> |
| </many-to-one> |
| <many-to-one name="previousOrder" entity-name="PurchaseOrder" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false"> |
| <column not-null="false" unique="false" name="`purchaseorder_previousorder_e_id`"/> |
| </many-to-one> |
| </class> |
| <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.SupplierImpl" entity-name="Supplier" abstract="false" lazy="false" table="`supplier`"> |
| <meta attribute="eclassName">Supplier</meta> |
| <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</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> |
| <list name="customers" lazy="true" cascade="all,delete-orphan"> |
| <key update="true"> |
| <column name="`supplier_customers_e_id`" not-null="false" unique="false"/> |
| </key> |
| <list-index column="`supplier_customers_idx`"/> |
| <one-to-many entity-name="Customer"/> |
| </list> |
| <list name="orders" lazy="true" cascade="all,delete-orphan"> |
| <key update="true"> |
| <column name="`supplier_orders_e_id`" not-null="false" unique="false"/> |
| </key> |
| <list-index column="`supplier_orders_idx`"/> |
| <one-to-many entity-name="PurchaseOrder"/> |
| </list> |
| </class> |
| <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.CustomerImpl" entity-name="Customer" abstract="false" lazy="false" table="`customer`"> |
| <meta attribute="eclassName">Customer</meta> |
| <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</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="customerID" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> |
| <column not-null="false" unique="false" name="`customerid`"/> |
| </property> |
| <list name="orders" lazy="true" cascade="merge,persist,save-update,lock,refresh"> |
| <key update="true"> |
| <column name="`purchaseorder_customer_e_id`" not-null="false" unique="false"/> |
| </key> |
| <list-index column="`customer_orders_idx`"/> |
| <one-to-many entity-name="PurchaseOrder"/> |
| </list> |
| </class> |
| <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.GlobalAddressImpl" entity-name="GlobalAddress" abstract="false" lazy="false" extends="Address" table="`globaladdress`"> |
| <meta attribute="eclassName">GlobalAddress</meta> |
| <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</meta> |
| <key> |
| <column name="`address_e_id`"/> |
| </key> |
| <property name="countryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> |
| <column not-null="false" unique="false" name="`countrycode`"/> |
| </property> |
| <list name="location" table="`globaladdress_location`" lazy="true" cascade="all,delete-orphan"> |
| <key update="true"> |
| <column name="`globaladdress_location_e_id`" not-null="true" unique="false"/> |
| </key> |
| <list-index column="`globaladdress_location_idx`"/> |
| <element type="java.lang.String"/> |
| </list> |
| </joined-subclass> |
| <class name="org.eclipse.emf.teneo.samples.emf.sample.epo2.impl.GlobalLocationImpl" entity-name="GlobalLocation" abstract="false" lazy="false" table="`globallocation`"> |
| <meta attribute="eclassName">GlobalLocation</meta> |
| <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2</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="countryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> |
| <column not-null="false" unique="false" name="`countrycode`"/> |
| </property> |
| </class> |
| </hibernate-mapping> |