blob: 33e37fcec2ace3c456b083184b5ccbda5f9f10bb [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.schemaconstructs.anytype.impl.AImpl" entity-name="A" abstract="false" lazy="false" table="`a`">
<meta attribute="eclassName">A</meta>
<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/anytype</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="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`name`"/>
</property>
<property name="doub" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double">
<column not-null="false" unique="false" name="`doub`"/>
</property>
<property name="lon" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
<column not-null="false" unique="false" name="`lon`"/>
</property>
<many-to-one name="myB" entity-name="B" cascade="merge,persist,save-update,lock,refresh" foreign-key="a_myb" lazy="false" insert="true" update="true" not-null="true">
<column not-null="true" unique="false" name="`b_myb_e_id`"/>
</many-to-one>
</class>
<class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.anytype.impl.BImpl" entity-name="B" abstract="false" lazy="false" table="`b`">
<meta attribute="eclassName">B</meta>
<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/anytype</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="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`name`"/>
</property>
</class>
<class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.anytype.impl.TestAnyImpl" entity-name="TestAny" abstract="false" lazy="false" table="`testany`">
<meta attribute="eclassName">TestAny</meta>
<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/anytype</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="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`name`"/>
</property>
<any name="singleAnyType" id-type="long" cascade="all">
<column not-null="false" unique="false" name="`singleanytype_type`"/>
<column not-null="false" unique="false" name="`singleanytype_id`"/>
</any>
<list name="multiAnyType" table="`testany_multianytype`" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="testany_multianytype">
<column name="`testany_e_id`" not-null="true" unique="false"/>
</key>
<list-index column="`testany_multianytype_idx`"/>
<many-to-any id-type="long">
<column not-null="true" unique="false" name="`multianytype_type`"/>
<column not-null="true" unique="false" name="`multianytype_id`"/>
</many-to-any>
</list>
<list name="myAny" table="`testany_myany`" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`testany_myany_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`testany_myany_idx`"/>
<one-to-many entity-name="TestAny_myAny"/>
</list>
<list name="any" table="`testany_any`" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`testany_any_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`testany_any_idx`"/>
<one-to-many entity-name="TestAny_any"/>
</list>
</class>
<class entity-name="TestAny_myAny" lazy="false" table="`testany_myany`">
<meta attribute="featureMap">TestAny</meta>
<id type="long">
<generator class="native"/>
</id>
<version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion">true</meta>
</version>
<property name="fme_feature" type="java.lang.String"/>
<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="`myany_name`"/>
</property>
<any name="singleAnyType" id-type="long" cascade="all">
<column not-null="false" unique="false" name="`myany_`myany_singleanytype_type``"/>
<column not-null="false" unique="false" name="`myany_`myany_singleanytype_id``"/>
</any>
<list name="multiAnyType" table="`myany_testany_multianytype`" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="testany_multianytype">
<column name="`myany_testany_e_id`" not-null="true" unique="false"/>
</key>
<list-index column="`myany_testany_multianytype_idx`"/>
<many-to-any id-type="long">
<column not-null="true" unique="false" name="`myany_`myany_multianytype_type``"/>
<column not-null="true" unique="false" name="`myany_`myany_multianytype_id``"/>
</many-to-any>
</list>
<list name="any" table="`myany_testany_any`" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`myany_testany_any_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`myany_testany_any_idx`"/>
<one-to-many entity-name="TestAny_any"/>
</list>
<property name="fme_mixed_text" type="java.lang.String"/>
<property name="fme_mixed_cdata" type="java.lang.String"/>
<property name="fme_mixed_comment" type="java.lang.String"/>
</class>
<class entity-name="TestAny_any" lazy="false" table="`testany_any`">
<meta attribute="featureMap">TestAny</meta>
<id type="long">
<generator class="native"/>
</id>
<version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion">true</meta>
</version>
<property name="fme_feature" type="java.lang.String"/>
<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="`any_name`"/>
</property>
<any name="singleAnyType" id-type="long" cascade="all">
<column not-null="false" unique="false" name="`any_`any_singleanytype_type``"/>
<column not-null="false" unique="false" name="`any_`any_singleanytype_id``"/>
</any>
<list name="multiAnyType" table="`any_testany_multianytype`" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="testany_multianytype">
<column name="`any_testany_e_id`" not-null="true" unique="false"/>
</key>
<list-index column="`any_testany_multianytype_idx`"/>
<many-to-any id-type="long">
<column not-null="true" unique="false" name="`any_`any_multianytype_type``"/>
<column not-null="true" unique="false" name="`any_`any_multianytype_id``"/>
</many-to-any>
</list>
<list name="myAny" table="`any_testany_myany`" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`any_testany_myany_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`any_testany_myany_idx`"/>
<one-to-many entity-name="TestAny_myAny"/>
</list>
<property name="fme_mixed_text" type="java.lang.String"/>
<property name="fme_mixed_cdata" type="java.lang.String"/>
<property name="fme_mixed_comment" type="java.lang.String"/>
</class>
</hibernate-mapping>