diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_e_o_hibernate.hbm.xml')
-rw-r--r-- | tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_e_o_hibernate.hbm.xml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_e_o_hibernate.hbm.xml index 423239929..59acf0f86 100644 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_e_o_hibernate.hbm.xml +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_e_o_hibernate.hbm.xml @@ -1,7 +1,7 @@ <?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 Tue Jul 17 15:53:37 CEST 2007 --> +<!-- Generated by Teneo on Tue Jul 17 19:30:08 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> @@ -95,15 +95,14 @@ <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`"> + <bag name="topics" lazy="true" cascade="merge,persist,save-update,lock,refresh" inverse="true" 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> + </bag> </class> <class name="org.example.mindmap.impl.ThreadImpl" entity-name="Thread" abstract="false" lazy="false" table="`thread`"> <meta attribute="eclassName">Thread</meta> @@ -187,15 +186,14 @@ <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`"> + <bag name="resources" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`resource_topic`"> <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> + </bag> <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> |