diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.annotations.InheritanceAnnotationAction/mssql_s_o/hibernate.hbm.xml')
-rwxr-xr-x | tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.annotations.InheritanceAnnotationAction/mssql_s_o/hibernate.hbm.xml | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.annotations.InheritanceAnnotationAction/mssql_s_o/hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.annotations.InheritanceAnnotationAction/mssql_s_o/hibernate.hbm.xml new file mode 100755 index 000000000..424890b9f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.annotations.InheritanceAnnotationAction/mssql_s_o/hibernate.hbm.xml @@ -0,0 +1,65 @@ +<?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:10:34 CEST 2006 --> +<hibernate-mapping> + <class entity-name="Address" abstract="true" lazy="false" table="`address`"> + <id name="name" type="java.lang.String" column="`name`"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/> + <property name="street" type="java.lang.String" lazy="false" column="`street`" not-null="true"/> + <property name="city" type="java.lang.String" lazy="false" column="`city`" not-null="true"/> + </class> + <class entity-name="ContentList" abstract="false" lazy="false" table="`contentlist`"> + <id name="name" type="java.lang.String" column="`name`"/> + <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/> + <list name="address" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contentlist_address_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_address_idx`"/> + <one-to-many entity-name="Address"/> + </list> + <list name="price" lazy="true" cascade="merge,persist,save-update,lock,refresh"> + <key update="true"> + <column name="`contentlist_price_name`" not-null="false" unique="false"/> + </key> + <list-index column="`contentlist_price_idx`"/> + <one-to-many entity-name="Price"/> + </list> + </class> + <joined-subclass entity-name="UKAddress" abstract="false" lazy="false" extends="Address" table="`ukaddress`"> + <key> + <column name="`address_name`"/> + </key> + <property name="postcode" type="java.lang.String" lazy="false" column="`postcode`" not-null="true"/> + </joined-subclass> + <joined-subclass entity-name="DistrictUKAddress" abstract="false" lazy="false" extends="UKAddress" table="`districtukaddress`"> + <key> + <column name="`ukaddress_name`"/> + </key> + <property name="district" type="java.lang.String" lazy="false" column="`district`" not-null="false"/> + </joined-subclass> + <class entity-name="Price" abstract="false" lazy="false" discriminator-value="myPrice" table="`myprice`"> + <id type="long" name="e_id" column="e_id"> + <generator class="native"/> + </id> + <discriminator column="`discriminator`" 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="value" type="java.math.BigDecimal" lazy="false" column="`value`" not-null="true"/> + </class> + <subclass entity-name="InternationalPrice" abstract="false" lazy="false" extends="Price" discriminator-value="myInternationalPrice"> + <property name="currency" type="java.lang.String" lazy="false" column="`currency`" not-null="false"/> + </subclass> + <joined-subclass entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`usaddress`"> + <key> + <column name="`address_name`"/> + </key> + <property name="state" lazy="false" access="org.eclipse.emf.teneo.hibernate.mapping.EFeatureAccessor" column="`state`" not-null="false" unique="false"> + <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> + <param name="enumClass">org.eclipse.emf.teneo.samples.emf.annotations.inheritancemapping.USState</param> + </type> + </property> + <property name="zip" type="java.math.BigInteger" lazy="false" column="`zip`" not-null="false"/> + </joined-subclass> +</hibernate-mapping>
\ No newline at end of file |