Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2008-08-04 12:39:21 +0000
committermtaal2008-08-04 12:39:21 +0000
commita8a5771ba8649453ab9782db31577e4d34270b90 (patch)
tree313e4538a785ab7ab5111fa6392babc54c774a9b /tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HibernateAction_mysql_s_o_hibernate.hbm.xml
parent40fcabacc9d36e44d60610dc72e4cc13d0a640ec (diff)
downloadorg.eclipse.emf.teneo-a8a5771ba8649453ab9782db31577e4d34270b90.tar.gz
org.eclipse.emf.teneo-a8a5771ba8649453ab9782db31577e4d34270b90.tar.xz
org.eclipse.emf.teneo-a8a5771ba8649453ab9782db31577e4d34270b90.zip
[242479]
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HibernateAction_mysql_s_o_hibernate.hbm.xml')
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HibernateAction_mysql_s_o_hibernate.hbm.xml20
1 files changed, 9 insertions, 11 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HibernateAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HibernateAction_mysql_s_o_hibernate.hbm.xml
index 61136e2ba..d25a9f14c 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HibernateAction_mysql_s_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.annotations/HibernateAction_mysql_s_o_hibernate.hbm.xml
@@ -5,23 +5,18 @@
<class name="org.eclipse.emf.teneo.samples.emf.annotations.hibernate.impl.CityImpl" entity-name="Stad" abstract="false" lazy="false" table="`stad`">
<meta attribute="eclassName">City</meta>
<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/hibernate</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 name="name" type="java.lang.String">
+ <column not-null="true" unique="false" name="`name`"/>
</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="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
- <column not-null="true" unique="false" name="`name`"/>
- </property>
- <list name="streets" inverse="true" lazy="true" cascade="all,delete-orphan">
- <key update="true" foreign-key="stad_streets">
- <column name="`city_streets_e_id`" not-null="false" unique="false"/>
+ <bag name="streets" inverse="true" lazy="true" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`city_fk`" not-null="true" unique="false"/>
</key>
- <list-index column="`city_streets_idx`"/>
<one-to-many entity-name="Street" not-found="ignore"/>
- </list>
+ </bag>
</class>
<class name="org.eclipse.emf.teneo.samples.emf.annotations.hibernate.impl.StreetImpl" entity-name="Street" abstract="false" lazy="false" table="`street`">
<meta attribute="eclassName">Street</meta>
@@ -36,5 +31,8 @@
<property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`name`"/>
</property>
+ <many-to-one name="city" entity-name="Stad" cascade="merge,persist,save-update,lock,refresh" foreign-key="street_city" lazy="false" insert="true" update="true" not-null="true">
+ <column not-null="true" unique="false" name="`city_fk`"/>
+ </many-to-one>
</class>
</hibernate-mapping> \ No newline at end of file

Back to the top