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/CarAction_mysql_s_o_hibernate.hbm.xml')
-rwxr-xr-xtests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_mysql_s_o_hibernate.hbm.xml115
1 files changed, 115 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_mysql_s_o_hibernate.hbm.xml
new file mode 100755
index 000000000..4239ed1c3
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_mysql_s_o_hibernate.hbm.xml
@@ -0,0 +1,115 @@
+<?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">
+ <class name="com.example.car.impl.CarFrameImpl" entity-name="CarFrame" abstract="false" lazy="false" table="`carframe`">
+ <meta attribute="eclassName" inherit="false">CarFrame</meta>
+ <meta attribute="epackage" inherit="false">http://www.example.com/car.xsd</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>
+ <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="carWheel" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="carframe_carwheel">
+ <column name="`carframe_carwheel_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`carframe_carwheel_idx`"/>
+ <one-to-many entity-name="CarWheel"/>
+ </list>
+ <many-to-one name="carLinkRef" entity-name="CarLink" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="carframe_carlinkref" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`carlink_carlinkref_e_id`"/>
+ </many-to-one>
+ <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>
+ </class>
+ <class name="com.example.car.impl.CarLinkImpl" entity-name="CarLink" abstract="false" lazy="false" table="`carlink`">
+ <meta attribute="eclassName" inherit="false">CarLink</meta>
+ <meta attribute="epackage" inherit="false">http://www.example.com/car.xsd</meta>
+ <id name="carLinkId" type="java.lang.String">
+ <column not-null="true" unique="false" name="`carlinkid`"/>
+ </id>
+ <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="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="com.example.car.impl.CarsListImpl" entity-name="CarsList" abstract="false" lazy="false" table="`carslist`">
+ <meta attribute="eclassName" inherit="false">CarsList</meta>
+ <meta attribute="epackage" inherit="false">http://www.example.com/car.xsd</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>
+ <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="carType" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="carslist_cartype">
+ <column name="`carslist_cartype_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`carslist_cartype_idx`"/>
+ <one-to-many entity-name="CarType"/>
+ </list>
+ <list name="carLink" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="carslist_carlink">
+ <column name="`carslist_carlink_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`carslist_carlink_idx`"/>
+ <one-to-many entity-name="CarLink"/>
+ </list>
+ </class>
+ <class name="com.example.car.impl.CarTireImpl" entity-name="CarTire" abstract="false" lazy="false" table="`cartire`">
+ <meta attribute="eclassName" inherit="false">CarTire</meta>
+ <meta attribute="epackage" inherit="false">http://www.example.com/car.xsd</meta>
+ <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" inherit="false">true</meta>
+ </version>
+ </class>
+ <class name="com.example.car.impl.CarTypeImpl" entity-name="CarType" abstract="false" lazy="false" table="`cartype`">
+ <meta attribute="eclassName" inherit="false">CarType</meta>
+ <meta attribute="epackage" inherit="false">http://www.example.com/car.xsd</meta>
+ <id name="carID" type="java.lang.String">
+ <column not-null="true" unique="false" name="`carid`"/>
+ </id>
+ <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="carFrame" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="cartype_carframe">
+ <column name="`cartype_carframe_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`cartype_carframe_idx`"/>
+ <one-to-many entity-name="CarFrame"/>
+ </list>
+ </class>
+ <class name="com.example.car.impl.CarWheelImpl" entity-name="CarWheel" abstract="false" lazy="false" table="`carwheel`">
+ <meta attribute="eclassName" inherit="false">CarWheel</meta>
+ <meta attribute="epackage" inherit="false">http://www.example.com/car.xsd</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>
+ <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="carTire" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="carwheel_cartire">
+ <column name="`carwheel_cartire_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`carwheel_cartire_idx`"/>
+ <one-to-many entity-name="CarTire"/>
+ </list>
+ <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>
+ </class>
+</hibernate-mapping> \ No newline at end of file

Back to the top