Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.annotations.SetNMAction/mssql_a_o/hibernate.hbm.xml')
-rwxr-xr-xtests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.annotations.SetNMAction/mssql_a_o/hibernate.hbm.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.annotations.SetNMAction/mssql_a_o/hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.annotations.SetNMAction/mssql_a_o/hibernate.hbm.xml
new file mode 100755
index 000000000..dd071996a
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.test.emf.annotations.SetNMAction/mssql_a_o/hibernate.hbm.xml
@@ -0,0 +1,38 @@
+<?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 Oct 17 11:29:10 CEST 2006 -->
+<hibernate-mapping>
+ <class entity-name="MyItem" abstract="false" lazy="false" discriminator-value="MyItem" table="`myitem`">
+ <id type="long" name="e_id" column="e_id">
+ <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"/>
+ <property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="true"/>
+ <bag name="yourItem" lazy="true" cascade="merge,persist,save-update,lock,refresh" inverse="true" table="youritem_myitem">
+ <key update="true">
+ <column name="`myitem_id`" not-null="true" unique="false"/>
+ </key>
+ <many-to-many entity-name="YourItem" unique="false">
+ <column name="`youritem_id`" not-null="true" unique="false"/>
+ </many-to-many>
+ </bag>
+ </class>
+ <class entity-name="YourItem" abstract="false" lazy="false" discriminator-value="YourItem" table="`youritem`">
+ <id type="long" name="e_id" column="e_id">
+ <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"/>
+ <property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="true"/>
+ <bag name="myItem" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="youritem_myitem">
+ <key update="true">
+ <column name="`youritem_id`" not-null="true" unique="false"/>
+ </key>
+ <many-to-many entity-name="MyItem" unique="false">
+ <column name="`myitem_id`" not-null="true" unique="false"/>
+ </many-to-many>
+ </bag>
+ </class>
+</hibernate-mapping> \ No newline at end of file

Back to the top