Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_hsqldb_h_o_hibernate.hbm.xml')
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_hsqldb_h_o_hibernate.hbm.xml231
1 files changed, 231 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_hsqldb_h_o_hibernate.hbm.xml
new file mode 100644
index 000000000..e08e098eb
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_hsqldb_h_o_hibernate.hbm.xml
@@ -0,0 +1,231 @@
+<?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">
+ <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" discriminator-value="Map" table="`MAP`">
+ <meta attribute="eclassName" inherit="false">Map</meta>
+ <meta attribute="epackage" inherit="false">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" inherit="false">true</meta>
+ <generator class="native"/>
+ </id>
+ <discriminator type="string">
+ <column name="`DTYPE`" index="MAPDTYPE" length="255" not-null="true"/>
+ </discriminator>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion" inherit="false">true</meta>
+ </version>
+ <list name="rootTopics" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="MAP_ROOTTOPICS">
+ <column name="`MAP_ROOTTOPICS_E_ID`" 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" foreign-key="MAP_RELATIONS">
+ <column name="`MAP_RELATIONS_E_ID`" 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" foreign-key="MAP_RESOURCES">
+ <column name="`MAP_RESOURCES_E_ID`" 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" discriminator-value="Relationship" table="`RELATIONSHIP`">
+ <meta attribute="eclassName" inherit="false">Relationship</meta>
+ <meta attribute="epackage" inherit="false">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" inherit="false">true</meta>
+ <generator class="native"/>
+ </id>
+ <discriminator type="string">
+ <column name="`DTYPE`" index="RELATIONSHIPDTYPE" length="255" not-null="true"/>
+ </discriminator>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion" inherit="false">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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="RELATIONSHIP_SOURCE" 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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="RELATIONSHIP_TARGET" 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>
+ <param name="eclassifier">RelationshipType</param>
+ <param name="epackage">http://www.example.org/mindmap</param>
+ </type>
+ </property>
+ </class>
+ <class name="org.example.mindmap.impl.ResourceImpl" entity-name="Resource" abstract="false" lazy="false" discriminator-value="Resource" table="`RESOURCE`">
+ <meta attribute="eclassName" inherit="false">Resource</meta>
+ <meta attribute="epackage" inherit="false">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" inherit="false">true</meta>
+ <generator class="native"/>
+ </id>
+ <discriminator type="string">
+ <column name="`DTYPE`" index="RESOURCEDTYPE" length="255" not-null="true"/>
+ </discriminator>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion" inherit="false">true</meta>
+ </version>
+ <list name="comments" lazy="true" cascade="persist,merge,refresh,save-update,lock">
+ <key update="true">
+ <column name="`THREAD_AUTHOR_E_ID`" 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`" unique="false"/>
+ </key>
+ <list-index column="`RESOURCE_TOPICS_IDX`"/>
+ <many-to-many entity-name="Topic" unique="false" foreign-key="RESOURCE_TOPICS">
+ <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" discriminator-value="Thread" table="`THREAD`">
+ <meta attribute="eclassName" inherit="false">Thread</meta>
+ <meta attribute="epackage" inherit="false">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" inherit="false">true</meta>
+ <generator class="native"/>
+ </id>
+ <discriminator type="string">
+ <column name="`DTYPE`" index="THREADDTYPE" length="255" not-null="true"/>
+ </discriminator>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion" inherit="false">true</meta>
+ </version>
+ <list name="items" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="THREAD_ITEMS">
+ <column name="`THREAD_ITEMS_E_ID`" unique="false"/>
+ </key>
+ <list-index column="`THREAD_ITEMS_IDX`"/>
+ <one-to-many entity-name="ThreadItem"/>
+ </list>
+ <many-to-one name="author" entity-name="Resource" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="THREAD_AUTHOR" 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" discriminator-value="ThreadItem" table="`THREADITEM`">
+ <meta attribute="eclassName" inherit="false">ThreadItem</meta>
+ <meta attribute="epackage" inherit="false">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" inherit="false">true</meta>
+ <generator class="native"/>
+ </id>
+ <discriminator type="string">
+ <column name="`DTYPE`" index="THREADITEMDTYPE" length="255" not-null="true"/>
+ </discriminator>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion" inherit="false">true</meta>
+ </version>
+ <many-to-one name="author" entity-name="Resource" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="THREADITEM_AUTHOR" 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" discriminator-value="Topic" table="`TOPIC`">
+ <meta attribute="eclassName" inherit="false">Topic</meta>
+ <meta attribute="epackage" inherit="false">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" inherit="false">true</meta>
+ <generator class="native"/>
+ </id>
+ <discriminator type="string">
+ <column name="`DTYPE`" index="TOPICDTYPE" length="255" not-null="true"/>
+ </discriminator>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion" inherit="false">true</meta>
+ </version>
+ <list name="comments" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="TOPIC_COMMENTS">
+ <column name="`TOPIC_COMMENTS_E_ID`" 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>
+ <param name="eclassifier">Priority</param>
+ <param name="epackage">http://www.example.org/mindmap</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`" unique="false"/>
+ </key>
+ <list-index column="`TOPIC_RESOURCES_IDX`"/>
+ <many-to-many entity-name="Resource" unique="false" foreign-key="TOPIC_RESOURCES">
+ <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="persist,merge,refresh,save-update,lock">
+ <key update="true" foreign-key="TOPIC_SUBTOPICS">
+ <column name="`TOPIC_SUBTOPICS_E_ID`" unique="false"/>
+ </key>
+ <list-index column="`TOPIC_SUBTOPICS_IDX`"/>
+ <one-to-many entity-name="Topic"/>
+ </list>
+ </class>
+</hibernate-mapping> \ No newline at end of file

Back to the top