Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2010-04-05 06:03:37 +0000
committermtaal2010-04-05 06:03:37 +0000
commitbf893eb8091f2697bb6071d7f5fc4b0bfd4b888a (patch)
tree5b1f5a5a8e0dfc1178825d3340d32f4801339684 /tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations
parent87bca9e9e3d2eba298f6405d9b49dd3b53a98b79 (diff)
downloadorg.eclipse.emf.teneo-bf893eb8091f2697bb6071d7f5fc4b0bfd4b888a.tar.gz
org.eclipse.emf.teneo-bf893eb8091f2697bb6071d7f5fc4b0bfd4b888a.tar.xz
org.eclipse.emf.teneo-bf893eb8091f2697bb6071d7f5fc4b0bfd4b888a.zip
New and updated generated mapping files
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations')
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdBagAction_mysql_s_o_hibernate.hbm.xml23
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetResourceAction_mysql_s_o_hibernate.hbm.xml2
2 files changed, 24 insertions, 1 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdBagAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdBagAction_mysql_s_o_hibernate.hbm.xml
index 26a9bfb13..2c7ab85db 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdBagAction_mysql_s_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/IdBagAction_mysql_s_o_hibernate.hbm.xml
@@ -2,6 +2,20 @@
<!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">
+ <class name="org.eclipse.emf.teneo.samples.emf.annotations.idbag.impl.AddressImpl" entity-name="Address" abstract="false" lazy="false" table="`address`">
+ <meta attribute="eclassName">Address</meta>
+ <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/idbag</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="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>
+ </class>
<class name="org.eclipse.emf.teneo.samples.emf.annotations.idbag.impl.UserImpl" entity-name="User" abstract="false" lazy="false" table="`user`">
<meta attribute="eclassName">User</meta>
<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/idbag</meta>
@@ -24,5 +38,14 @@
</key>
<element type="java.lang.String"/>
</idbag>
+ <idbag name="addresses" lazy="true" cascade="all,delete-orphan">
+ <collection-id column="ID" type="long">
+ <generator class="increment"/>
+ </collection-id>
+ <key update="true" foreign-key="user_addresses">
+ <column name="`user_addresses_e_id`" not-null="false" unique="false"/>
+ </key>
+ <many-to-many entity-name="Address"/>
+ </idbag>
</class>
</hibernate-mapping> \ No newline at end of file
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetResourceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetResourceAction_mysql_s_o_hibernate.hbm.xml
index e128fa42b..c114afa60 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetResourceAction_mysql_s_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/SetResourceAction_mysql_s_o_hibernate.hbm.xml
@@ -52,7 +52,7 @@
</key>
<one-to-many entity-name="ContainedItem"/>
</bag>
- <bag name="item" order-by="`name` desc" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <bag name="item" order-by="`name` desc" inverse="true" lazy="extra" cascade="merge,persist,save-update,lock,refresh">
<key update="true">
<column name="`item_itemlist_e_id`" not-null="false" unique="false"/>
</key>

Back to the top