Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.CatalogTest$1/mssql_a_o/hibernate.hbm.xml')
-rwxr-xr-xtests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.CatalogTest$1/mssql_a_o/hibernate.hbm.xml71
1 files changed, 71 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.CatalogTest$1/mssql_a_o/hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.CatalogTest$1/mssql_a_o/hibernate.hbm.xml
new file mode 100755
index 000000000..708cc2596
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.CatalogTest$1/mssql_a_o/hibernate.hbm.xml
@@ -0,0 +1,71 @@
+<?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 Tue Oct 17 11:31:34 CEST 2006 -->
+<hibernate-mapping>
+ <class entity-name="CatalogType" abstract="false" lazy="false" discriminator-value="CatalogType" table="`catalogtype`">
+ <id name="name" type="java.lang.String" column="`name`"/>
+ <discriminator column="`dtype`" type="string"/>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
+ <property name="description" type="java.lang.String" lazy="false" column="`description`" not-null="true"/>
+ <list name="subCatalog" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true">
+ <column name="`catalogtype_subcatalog_name`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`catalogtype_subcatalog_idx`"/>
+ <one-to-many entity-name="CatalogType"/>
+ </list>
+ <list name="product" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true">
+ <column name="`catalogtype_product_name`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`catalogtype_product_idx`"/>
+ <one-to-many entity-name="ProductType"/>
+ </list>
+ </class>
+ <class entity-name="PriceType" abstract="false" lazy="false" discriminator-value="PriceType" table="`pricetype`">
+ <id type="long" name="e_id" column="e_id">
+ <generator class="native"/>
+ </id>
+ <discriminator column="`dtype`" type="string"/>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
+ <property name="price" type="double" lazy="false" column="`price`" not-null="false"/>
+ <property name="quantityTo" type="double" lazy="false" column="`quantityto`" not-null="false"/>
+ <many-to-one name="supplier" entity-name="SupplierType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true">
+ <column not-null="true" unique="false" name="`suppliertype_supplier_id`"/>
+ </many-to-one>
+ </class>
+ <class entity-name="ProductType" abstract="false" lazy="false" discriminator-value="ProductType" table="`producttype`">
+ <id name="code" type="java.lang.String" column="`code`"/>
+ <discriminator column="`dtype`" type="string"/>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
+ <property name="description" type="java.lang.String" lazy="false" column="`description`" not-null="false"/>
+ <list name="remark" lazy="true" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`producttype_remark_code`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`producttype_remark_idx`"/>
+ <one-to-many entity-name="StringType"/>
+ </list>
+ <many-to-one name="price" entity-name="PriceType" cascade="all" lazy="false" insert="true" update="true" not-null="true">
+ <column not-null="true" unique="false" name="`pricetype_price_id`"/>
+ </many-to-one>
+ </class>
+ <class entity-name="StringType" abstract="false" lazy="false" discriminator-value="StringType" table="`stringtype`">
+ <id type="long" name="e_id" column="e_id">
+ <generator class="native"/>
+ </id>
+ <discriminator column="`dtype`" type="string"/>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
+ <property name="value" type="java.lang.String" lazy="false" column="`value`" not-null="true"/>
+ </class>
+ <class entity-name="SupplierType" abstract="false" lazy="false" discriminator-value="SupplierType" table="`suppliertype`">
+ <id type="long" name="e_id" column="e_id">
+ <generator class="native"/>
+ </id>
+ <discriminator column="`dtype`" type="string"/>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
+ <property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="true"/>
+ <property name="noOfEmployees" type="int" lazy="false" column="`noofemployees`" not-null="false"/>
+ </class>
+</hibernate-mapping> \ No newline at end of file

Back to the top