blob: 5ca8265680273f14beb567f4e3989ca88ab523ba [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">
<!-- Generated by Teneo on Wed Jul 18 20:42:12 CEST 2007 -->
<hibernate-mapping auto-import="false">
<typedef name="mindmap.PriorityObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType">
<param name="epackage">http://www.example.org/mindmap</param>
<param name="edatatype">PriorityObject</param>
</typedef>
<typedef name="mindmap.RelationshipTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType">
<param name="epackage">http://www.example.org/mindmap</param>
<param name="edatatype">RelationshipTypeObject</param>
</typedef>
<class name="org.example.mindmap.impl.MapImpl" entity-name="Map" abstract="false" lazy="false" table="`map`">
<meta attribute="eclassName">Map</meta>
<meta attribute="epackage">http://www.example.org/mindmap</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="rootTopics" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`map_roottopics_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`map_roottopics_idx`"/>
<one-to-many entity-name="Topic"/>
</list>
<list name="relations" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`map_relations_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`map_relations_idx`"/>
<one-to-many entity-name="Relationship"/>
</list>
<list name="resources" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`map_resources_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`map_resources_idx`"/>
<one-to-many entity-name="Resource"/>
</list>
<property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`title`"/>
</property>
</class>
<class name="org.example.mindmap.impl.RelationshipImpl" entity-name="Relationship" abstract="false" lazy="false" table="`relationship`">
<meta attribute="eclassName">Relationship</meta>
<meta attribute="epackage">http://www.example.org/mindmap</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="label" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`label`"/>
</property>
<many-to-one name="source" entity-name="Topic" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false">
<column not-null="false" unique="false" name="`topic_source_e_id`"/>
</many-to-one>
<many-to-one name="target" entity-name="Topic" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false">
<column not-null="false" unique="false" name="`topic_target_e_id`"/>
</many-to-one>
<property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false">
<column not-null="false" unique="false" name="`type`"/>
<type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType">
<param name="enumClass">org.example.mindmap.RelationshipType</param>
</type>
</property>
</class>
<class name="org.example.mindmap.impl.ResourceImpl" entity-name="Resource" abstract="false" lazy="false" table="`resource`">
<meta attribute="eclassName">Resource</meta>
<meta attribute="epackage">http://www.example.org/mindmap</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="comments" lazy="true" cascade="merge,persist,save-update,lock,refresh">
<key update="true">
<column name="`thread_author_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`resource_comments_idx`"/>
<one-to-many entity-name="Thread"/>
</list>
<property name="email" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`email`"/>
</property>
<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="topics" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`resource_topic`">
<key update="true">
<column name="`resource_e_id`" not-null="true" unique="false"/>
</key>
<list-index column="`resource_topics_idx`"/>
<many-to-many entity-name="Topic" unique="false">
<column name="`topic_e_id`" not-null="true" unique="false"/>
</many-to-many>
</list>
</class>
<class name="org.example.mindmap.impl.ThreadImpl" entity-name="Thread" abstract="false" lazy="false" table="`thread`">
<meta attribute="eclassName">Thread</meta>
<meta attribute="epackage">http://www.example.org/mindmap</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="`thread_items_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`thread_items_idx`"/>
<one-to-many entity-name="ThreadItem"/>
</list>
<many-to-one name="author" entity-name="Resource" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false">
<column not-null="false" unique="false" name="`thread_author_e_id`"/>
</many-to-one>
<property name="postDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate">
<column not-null="false" unique="false" name="`postdate`"/>
</property>
<property name="subject" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`subject`"/>
</property>
</class>
<class name="org.example.mindmap.impl.ThreadItemImpl" entity-name="ThreadItem" abstract="false" lazy="false" table="`threaditem`">
<meta attribute="eclassName">ThreadItem</meta>
<meta attribute="epackage">http://www.example.org/mindmap</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="author" entity-name="Resource" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false">
<column not-null="false" unique="false" name="`resource_author_e_id`"/>
</many-to-one>
<property name="body" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`body`"/>
</property>
<property name="itemPostDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate">
<column not-null="false" unique="false" name="`itempostdate`"/>
</property>
</class>
<class name="org.example.mindmap.impl.TopicImpl" entity-name="Topic" abstract="false" lazy="false" table="`topic`">
<meta attribute="eclassName">Topic</meta>
<meta attribute="epackage">http://www.example.org/mindmap</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="comments" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`topic_comments_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`topic_comments_idx`"/>
<one-to-many entity-name="Thread"/>
</list>
<property name="duration" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float">
<column not-null="false" unique="false" name="`duration`"/>
</property>
<property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate">
<column not-null="false" unique="false" name="`enddate`"/>
</property>
<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="percentComplete" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float">
<column not-null="false" unique="false" name="`percentcomplete`"/>
</property>
<property name="priority" lazy="false" not-null="false" insert="true" update="true" unique="false">
<column not-null="false" unique="false" name="`priority`"/>
<type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType">
<param name="enumClass">org.example.mindmap.Priority</param>
</type>
</property>
<list name="resources" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`topic_resource`">
<key update="true">
<column name="`topic_e_id`" not-null="true" unique="false"/>
</key>
<list-index column="`topic_resources_idx`"/>
<many-to-many entity-name="Resource" unique="false">
<column name="`resource_e_id`" not-null="true" unique="false"/>
</many-to-many>
</list>
<property name="startDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate">
<column not-null="false" unique="false" name="`startdate`"/>
</property>
<list name="subtopics" lazy="true" cascade="merge,persist,save-update,lock,refresh">
<key update="true">
<column name="`topic_subtopics_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`topic_subtopics_idx`"/>
<one-to-many entity-name="Topic"/>
</list>
</class>
</hibernate-mapping>