diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_hsqldb_e_o_hibernate.hbm.xml')
-rw-r--r-- | tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_hsqldb_e_o_hibernate.hbm.xml | 115 |
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_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..0e583cadf --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_hsqldb_e_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`" 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`" 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`" 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`" 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`" 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 |