Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 63fc309bf250912b46823c97c9d6dff4915ca8e6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                                                                                                             
                                                              

                                                                                                                       
                                                                             


                                                                                                                               
                                                                             



                                                                                                       
                                                                                


































                                                                                                                                                
                                                                                



















                                                                                                                                                                          
                                                                                                    




                                                                                                                      
                                                                                
































                                                                                                                                                
                                                                                






























                                                                                                                                                                               
                                                                                























                                                                                                                                                                             
                                                                                

































                                                                                                                                                
                                                                                            


























                                                                                                                           
<?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 Thu Feb 01 13:04:34 CET 2007 -->
<hibernate-mapping>
	<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 entity-name="Map" abstract="false" lazy="false" discriminator-value="Map" 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>
		<discriminator column="`dtype`" type="string"/>
		<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_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_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_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 entity-name="Relationship" abstract="false" lazy="false" discriminator-value="Relationship" 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>
		<discriminator column="`dtype`" type="string"/>
		<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_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_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 entity-name="Resource" abstract="false" lazy="false" discriminator-value="Resource" 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>
		<discriminator column="`dtype`" type="string"/>
		<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_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_id`" not-null="true" unique="false"/>
			</key>
			<list-index column="`resource_topics_idx`"/>
			<many-to-many entity-name="Topic" unique="false">
				<column name="`topic_id`" not-null="true" unique="false"/>
			</many-to-many>
		</list>
	</class>
	<class entity-name="Thread" abstract="false" lazy="false" discriminator-value="Thread" 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>
		<discriminator column="`dtype`" type="string"/>
		<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_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_id`"/>
		</many-to-one>
		<property name="postDate" lazy="false" insert="true" update="true" not-null="false" unique="false">
			<column not-null="false" unique="false" name="`postdate`"/>
			<type name="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType">
				<param name="edatatype">Date</param>
				<param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param>
			</type>
		</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 entity-name="ThreadItem" abstract="false" lazy="false" discriminator-value="ThreadItem" 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>
		<discriminator column="`dtype`" type="string"/>
		<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_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">
			<column not-null="false" unique="false" name="`itempostdate`"/>
			<type name="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType">
				<param name="edatatype">Date</param>
				<param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param>
			</type>
		</property>
	</class>
	<class entity-name="Topic" abstract="false" lazy="false" discriminator-value="Topic" 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>
		<discriminator column="`dtype`" type="string"/>
		<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_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">
			<column not-null="false" unique="false" name="`enddate`"/>
			<type name="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType">
				<param name="edatatype">Date</param>
				<param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param>
			</type>
		</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_id`" not-null="true" unique="false"/>
			</key>
			<list-index column="`topic_resources_idx`"/>
			<many-to-many entity-name="Resource" unique="false">
				<column name="`resource_id`" not-null="true" unique="false"/>
			</many-to-many>
		</list>
		<property name="startDate" lazy="false" insert="true" update="true" not-null="false" unique="false">
			<column not-null="false" unique="false" name="`startdate`"/>
			<type name="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType">
				<param name="edatatype">Date</param>
				<param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param>
			</type>
		</property>
		<list name="subtopics" lazy="true" cascade="merge,persist,save-update,lock,refresh">
			<key update="true">
				<column name="`topic_subtopics_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`topic_subtopics_idx`"/>
			<one-to-many entity-name="Topic"/>
		</list>
	</class>
</hibernate-mapping>

Back to the top