blob: f8b9851e197b8f69776180f4c1fa3480ffe1bee3 [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.annotations.joincolumns.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`PERSON`">
<meta attribute="eclassName" inherit="false">Person</meta>
<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumns</meta>
<composite-id class="org.eclipse.emf.teneo.samples.emf.annotations.compositeid.PersonID" mapped="true">
<key-property name="firstName" type="java.lang.String">
<column not-null="true" unique="false" name="`FIRSTNAME`"/>
</key-property>
<key-property name="lastName" type="java.lang.String">
<column not-null="true" unique="false" name="`LASTNAME`"/>
</key-property>
</composite-id>
<discriminator type="string">
<column name="`DTYPE`" index="PERSONDTYPE" length="255" not-null="true"/>
</discriminator>
<version name="myversion" column="myversion" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion" inherit="false">true</meta>
</version>
<bag name="friends" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`PERSON_PERSON`">
<key foreign-key="PERSON_FRIENDS_KEY" update="true">
<column name="`PERSON_FRIENDS_FIRSTNAME`" unique="false"/>
<column name="`PERSON_FRIENDS_LASTNAME`" unique="false"/>
</key>
<many-to-many entity-name="Person" unique="false" foreign-key="PERSON_FRIENDS">
<column name="`PERSON_OPPOSITEFRIENDS_FIRSTNAME`" not-null="true" unique="false"/>
<column name="`PERSON_OPPOSITEFRIENDS_LASTNAME`" not-null="true" unique="false"/>
</many-to-many>
</bag>
<bag name="oppositeFriends" lazy="true" cascade="merge,persist,save-update,lock,refresh" inverse="true" table="`PERSON_PERSON`">
<key foreign-key="PERSON_OPPOSITEFRIENDS_KEY" update="true">
<column name="`PERSON_OPPOSITEFRIENDS_FIRSTNAME`" unique="false"/>
<column name="`PERSON_OPPOSITEFRIENDS_LASTNAME`" unique="false"/>
</key>
<many-to-many entity-name="Person" unique="false" foreign-key="PERSON_OPPOSITEFRIENDS">
<column name="`PERSON_FRIENDS_FIRSTNAME`" not-null="true" unique="false"/>
<column name="`PERSON_FRIENDS_LASTNAME`" not-null="true" unique="false"/>
</many-to-many>
</bag>
</class>
<subclass name="org.eclipse.emf.teneo.samples.emf.annotations.joincolumns.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" extends="Person" discriminator-value="Parent">
<meta attribute="eclassName" inherit="false">Parent</meta>
<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumns</meta>
<list name="children" lazy="true" cascade="all,delete-orphan">
<key foreign-key="PARENT_CHILDREN_KEY" update="true">
<column name="`MYPARENTFIRSTNAME`" unique="false"/>
<column name="`MYPARENTLASTNAME`" unique="false"/>
</key>
<list-index column="`PARENT_CHILDREN_IDX`"/>
<one-to-many entity-name="Child"/>
</list>
</subclass>
<subclass name="org.eclipse.emf.teneo.samples.emf.annotations.joincolumns.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" extends="Person" discriminator-value="Child">
<meta attribute="eclassName" inherit="false">Child</meta>
<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumns</meta>
</subclass>
<class name="org.eclipse.emf.teneo.samples.emf.annotations.joincolumns.impl.HouseImpl" entity-name="House" abstract="false" lazy="false" discriminator-value="House" table="`HOUSE`">
<meta attribute="eclassName" inherit="false">House</meta>
<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumns</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>
<discriminator type="string">
<column name="`DTYPE`" index="HOUSEDTYPE" length="255" not-null="true"/>
</discriminator>
<version name="myversion" column="myversion" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion" inherit="false">true</meta>
</version>
<many-to-one name="owner" entity-name="Parent" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="HOUSE_OWNER" insert="true" update="true" not-null="false">
<column not-null="false" unique="false" name="`PARENT_OWNER_FIRSTNAME`"/>
<column not-null="false" unique="false" name="`PARENT_OWNER_LASTNAME`"/>
</many-to-one>
<list name="visitors" table="`HOUSE_PERSON`" lazy="true" cascade="persist,merge,refresh,save-update,lock">
<key foreign-key="HOUSE_VISITORS_KEY" update="true">
<column name="`RIGHTCOLUMN`" unique="false"/>
</key>
<list-index column="`HOUSE_VISITORS_IDX`"/>
<many-to-many entity-name="Person" unique="true" foreign-key="HOUSE_VISITORS">
<column name="`PERSON_FIRSTNAME`" unique="false"/>
<column name="`PERSON_LASTNAME`" unique="false"/>
</many-to-many>
</list>
</class>
<class name="org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl" entity-name="TeneoAuditCommitInfo" abstract="false" lazy="false" discriminator-value="TeneoAuditCommitInfo" table="`TENEOAUDITCOMMITINFO`">
<meta attribute="eclassName" inherit="false">TeneoAuditCommitInfo</meta>
<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/hibernate/auditing</meta>
<id name="id" type="long" unsaved-value="0">
<column not-null="true" unique="false" name="`ID`"/>
<generator class="native"/>
</id>
<discriminator type="string">
<column name="`DTYPE`" index="TENEOAUDITCOMMITINFODTYPE" length="255" not-null="true"/>
</discriminator>
<version name="version" type="long">
<column not-null="true" unique="false" name="`VERSION`"/>
</version>
<property name="user" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`USER`"/>
</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`" length="2000"/>
</property>
<property name="commitTime" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
<column not-null="false" unique="false" name="`COMMITTIME`"/>
</property>
</class>
<class name="org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl" entity-name="PersonAuditing" abstract="false" lazy="false" discriminator-value="PersonAuditing" table="`PERSONAUDITING`">
<meta attribute="eclassName" inherit="false">PersonAuditing</meta>
<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumnsAuditing</meta>
<id name="teneo_audit_id" type="long" unsaved-value="0">
<column not-null="true" unique="false" name="`TENEO_AUDIT_ID`"/>
<generator class="native"/>
</id>
<discriminator type="string">
<column name="`DTYPE`" index="PERSONAUDITINGDTYPE" length="255" not-null="true"/>
</discriminator>
<version name="teneo_version" type="long">
<column not-null="true" unique="false" name="`TENEO_VERSION`"/>
</version>
<property name="teneo_object_id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`TENEO_OBJECT_ID`" unique-key="c0,c1,c2"/>
</property>
<property name="teneo_owner_object_id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`TENEO_OWNER_OBJECT_ID`"/>
</property>
<property name="teneo_start" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
<column not-null="false" unique="false" name="`TENEO_START`" unique-key="c0"/>
</property>
<property name="teneo_end" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
<column not-null="false" unique="false" name="`TENEO_END`" unique-key="c1"/>
</property>
<many-to-one name="teneo_commit_info" entity-name="TeneoAuditCommitInfo" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="PERSONAUDITING_TENEO_COMMIT_INFO" insert="true" update="true" not-null="true">
<column not-null="true" unique="false" name="`TENEOAUDITCOMMITINFO_TENEO_COMMIT_INFO_ID`"/>
</many-to-one>
<property name="teneo_audit_kind" lazy="false" not-null="true" insert="true" update="true" unique="false">
<column not-null="true" unique="false" name="`TENEO_AUDIT_KIND`"/>
<type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType">
<param name="enumClass">org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditKind</param>
<param name="eclassifier">TeneoAuditKind</param>
<param name="epackage">http://www.eclipse.org/emf/teneo/hibernate/auditing</param>
</type>
</property>
<property name="teneo_container_id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`TENEO_CONTAINER_ID`"/>
</property>
<property name="teneo_container_feature_id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
<column not-null="false" unique="false" name="`TENEO_CONTAINER_FEATURE_ID`"/>
</property>
<property name="teneo_previous_start" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
<column not-null="false" unique="false" name="`TENEO_PREVIOUS_START`" unique-key="c2"/>
</property>
<property name="teneo_object_version" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
<column not-null="false" unique="false" name="`TENEO_OBJECT_VERSION`"/>
</property>
<property name="teneo_resourceid" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`TENEO_RESOURCEID`"/>
</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>
<property name="lastName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`LASTNAME`"/>
</property>
<list name="friends" table="`PERSONAUDITING_FRIENDSAUDITING`" lazy="true" cascade="all">
<key foreign-key="PERSONAUDITING_FRIENDS_KEY" update="true">
<column name="`PERSONAUDITING_FRIENDS_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`PERSONAUDITING_FRIENDS_IDX`"/>
<element type="java.lang.String"/>
</list>
<list name="oppositeFriends" table="`PERSONAUDITING_OPPOSITEFRIENDSAUDITING`" lazy="true" cascade="all">
<key foreign-key="PERSONAUDITING_OPPOSITEFRIENDS_KEY" update="true">
<column name="`PERSONAUDITING_OPPOSITEFRIENDS_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`PERSONAUDITING_OPPOSITEFRIENDS_IDX`"/>
<element type="java.lang.String"/>
</list>
</class>
<subclass name="org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl" entity-name="ParentAuditing" abstract="false" lazy="false" extends="PersonAuditing" discriminator-value="ParentAuditing">
<meta attribute="eclassName" inherit="false">ParentAuditing</meta>
<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumnsAuditing</meta>
<list name="children" table="`PARENTAUDITING_CHILDRENAUDITING`" lazy="true" cascade="all">
<key foreign-key="PARENTAUDITING_CHILDREN_KEY" update="true">
<column name="`PARENTAUDITING_CHILDREN_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`PARENTAUDITING_CHILDREN_IDX`"/>
<element type="java.lang.String"/>
</list>
</subclass>
<subclass name="org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl" entity-name="ChildAuditing" abstract="false" lazy="false" extends="PersonAuditing" discriminator-value="ChildAuditing">
<meta attribute="eclassName" inherit="false">ChildAuditing</meta>
<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumnsAuditing</meta>
</subclass>
<class name="org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl" entity-name="HouseAuditing" abstract="false" lazy="false" discriminator-value="HouseAuditing" table="`HOUSEAUDITING`">
<meta attribute="eclassName" inherit="false">HouseAuditing</meta>
<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/annotations/joincolumnsAuditing</meta>
<id name="teneo_audit_id" type="long" unsaved-value="0">
<column not-null="true" unique="false" name="`TENEO_AUDIT_ID`"/>
<generator class="native"/>
</id>
<discriminator type="string">
<column name="`DTYPE`" index="HOUSEAUDITINGDTYPE" length="255" not-null="true"/>
</discriminator>
<version name="teneo_version" type="long">
<column not-null="true" unique="false" name="`TENEO_VERSION`"/>
</version>
<property name="teneo_object_id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`TENEO_OBJECT_ID`" unique-key="c0,c1,c2"/>
</property>
<property name="teneo_owner_object_id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`TENEO_OWNER_OBJECT_ID`"/>
</property>
<property name="teneo_start" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
<column not-null="false" unique="false" name="`TENEO_START`" unique-key="c0"/>
</property>
<property name="teneo_end" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
<column not-null="false" unique="false" name="`TENEO_END`" unique-key="c1"/>
</property>
<many-to-one name="teneo_commit_info" entity-name="TeneoAuditCommitInfo" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="HOUSEAUDITING_TENEO_COMMIT_INFO" insert="true" update="true" not-null="true">
<column not-null="true" unique="false" name="`TENEOAUDITCOMMITINFO_TENEO_COMMIT_INFO_ID`"/>
</many-to-one>
<property name="teneo_audit_kind" lazy="false" not-null="true" insert="true" update="true" unique="false">
<column not-null="true" unique="false" name="`TENEO_AUDIT_KIND`"/>
<type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType">
<param name="enumClass">org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditKind</param>
<param name="eclassifier">TeneoAuditKind</param>
<param name="epackage">http://www.eclipse.org/emf/teneo/hibernate/auditing</param>
</type>
</property>
<property name="teneo_container_id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`TENEO_CONTAINER_ID`"/>
</property>
<property name="teneo_container_feature_id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
<column not-null="false" unique="false" name="`TENEO_CONTAINER_FEATURE_ID`"/>
</property>
<property name="teneo_previous_start" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
<column not-null="false" unique="false" name="`TENEO_PREVIOUS_START`" unique-key="c2"/>
</property>
<property name="teneo_object_version" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
<column not-null="false" unique="false" name="`TENEO_OBJECT_VERSION`"/>
</property>
<property name="teneo_resourceid" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`TENEO_RESOURCEID`"/>
</property>
<property name="owner" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`OWNER`"/>
</property>
<list name="visitors" table="`HOUSEAUDITING_VISITORSAUDITING`" lazy="true" cascade="all">
<key foreign-key="HOUSEAUDITING_VISITORS_KEY" update="true">
<column name="`HOUSEAUDITING_VISITORS_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`HOUSEAUDITING_VISITORS_IDX`"/>
<element type="java.lang.String"/>
</list>
</class>
</hibernate-mapping>