Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2008-04-17 11:33:28 +0000
committermtaal2008-04-17 11:33:28 +0000
commita026a80123f5bd61d921f1ff69f897b53f700131 (patch)
treed38d220262ee4f8c88847f6a581ca148f2bfcb30 /tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample
parent41ea1f2353d953ad8c568014af08a8acb2db0865 (diff)
downloadorg.eclipse.emf.teneo-a026a80123f5bd61d921f1ff69f897b53f700131.tar.gz
org.eclipse.emf.teneo-a026a80123f5bd61d921f1ff69f897b53f700131.tar.xz
org.eclipse.emf.teneo-a026a80123f5bd61d921f1ff69f897b53f700131.zip
[227447]
[227234] [227528]
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample')
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/FleetAction_mysql_a_o_hibernate.hbm.xml407
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/FleetAction_mysql_e_o_hibernate.hbm.xml422
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/FleetAction_mysql_s_o_hibernate.hbm.xml422
3 files changed, 1251 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/FleetAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/FleetAction_mysql_a_o_hibernate.hbm.xml
new file mode 100644
index 000000000..9f789f0e1
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/FleetAction_mysql_a_o_hibernate.hbm.xml
@@ -0,0 +1,407 @@
+<?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 entity-name="Vehicle" abstract="false" lazy="false" discriminator-value="Vehicle" table="`vehicle`">
+ <meta attribute="eclassName">Vehicle</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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>
+ <discriminator column="`dtype`" type="string"/>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion">true</meta>
+ </version>
+ <property name="brand" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`brand`"/>
+ </property>
+ <property name="model" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`model`"/>
+ </property>
+ <property name="make" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`make`"/>
+ </property>
+ <property name="color" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`color`"/>
+ </property>
+ <property name="plate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`plate`"/>
+ </property>
+ <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <property name="year" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`year`"/>
+ </property>
+ <property name="length" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
+ <column not-null="false" unique="false" name="`length`"/>
+ </property>
+ <list name="availableColors" table="`vehicle_availablecolors`" lazy="true" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`vehicle_availablecolors_e_id`" not-null="true" unique="false"/>
+ </key>
+ <list-index column="`vehicle_availablecolors_idx`"/>
+ <element type="java.lang.String"/>
+ </list>
+ <many-to-one name="owner" entity-name="Person" cascade="all" foreign-key="vehicle_owner" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`person_owner_e_id`"/>
+ </many-to-one>
+ <list name="manufacturedAt" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true" foreign-key="vehicle_manufacturedat">
+ <column name="`vehicle_manufacturedat_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`vehicle_manufacturedat_idx`"/>
+ <one-to-many entity-name="ManufacturingPlant"/>
+ </list>
+ <many-to-one name="tireSpec" entity-name="Tire" cascade="merge,persist,save-update,lock,refresh" foreign-key="vehicle_tirespec" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`tire_tirespec_e_id`"/>
+ </many-to-one>
+ </class>
+ <class entity-name="Temporal" abstract="false" lazy="false" discriminator-value="Temporal" table="`temporal`">
+ <meta attribute="eclassName">Temporal</meta>
+ <meta attribute="epackage">http:///temporal.ecore</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>
+ <discriminator column="`dtype`" type="string"/>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion">true</meta>
+ </version>
+ <property name="date" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp">
+ <column not-null="false" unique="false" name="`date`"/>
+ </property>
+ <array name="touchedAttributes" table="`temporal_touchedattributes`" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`temporal_touchedattributes_e_id`" not-null="true" unique="false"/>
+ </key>
+ <list-index column="`temporal_touchedattributes_idx`"/>
+ <element type="byte"/>
+ </array>
+ <property name="continuity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`continuity`"/>
+ </property>
+ <many-to-one name="versionHolder" entity-name="VersionHolder" cascade="merge,persist,save-update,lock,refresh" foreign-key="temporal_versionholder" lazy="false" insert="false" update="false" not-null="false">
+ <column not-null="false" unique="false" name="`temporal_versionholder_e_id`"/>
+ </many-to-one>
+ <many-to-one name="versionHolderContainment" entity-name="VersionHolder" cascade="all" foreign-key="temporal_versionholdercontainment" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`versionholder_versionholdercontainment_e_id`"/>
+ </many-to-one>
+ </class>
+ <subclass entity-name="Person" abstract="false" lazy="false" extends="Temporal" discriminator-value="Person">
+ <meta attribute="eclassName">Person</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <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>
+ <property name="employed" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`employed`"/>
+ </property>
+ <list name="addresses" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="person_addresses">
+ <column name="`person_addresses_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`person_addresses_idx`"/>
+ <one-to-many entity-name="Address"/>
+ </list>
+ <list name="ownedVehicles" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true" foreign-key="person_ownedvehicles">
+ <column name="`person_ownedvehicles_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`person_ownedvehicles_idx`"/>
+ <one-to-many entity-name="VehicleInfo"/>
+ </list>
+ <many-to-one name="birthAddress" entity-name="Address" cascade="all" foreign-key="person_birthaddress" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`address_birthaddress_e_id`"/>
+ </many-to-one>
+ </subclass>
+ <subclass entity-name="Address" abstract="false" lazy="false" extends="Temporal" discriminator-value="Address">
+ <meta attribute="eclassName">Address</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <property name="streetName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`streetname`"/>
+ </property>
+ <property name="streetNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`streetnumber`"/>
+ </property>
+ <property name="city" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`city`"/>
+ </property>
+ <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`country`"/>
+ </property>
+ </subclass>
+ <class entity-name="VehicleInfo" abstract="false" lazy="false" discriminator-value="VehicleInfo" table="`vehicleinfo`">
+ <meta attribute="eclassName">VehicleInfo</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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>
+ <discriminator column="`dtype`" type="string"/>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion">true</meta>
+ </version>
+ <property name="acquisitionDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp">
+ <column not-null="true" unique="false" name="`acquisitiondate`"/>
+ </property>
+ <many-to-one name="vehicle" entity-name="Vehicle" cascade="merge,persist,save-update,lock,refresh" foreign-key="vehicleinfo_vehicle" lazy="false" insert="true" update="true" not-null="true">
+ <column not-null="true" unique="false" name="`vehicle_vehicle_e_id`"/>
+ </many-to-one>
+ </class>
+ <class entity-name="ManufacturingPlant" abstract="false" lazy="false" discriminator-value="ManufacturingPlant" table="`manufacturingplant`">
+ <meta attribute="eclassName">ManufacturingPlant</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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>
+ <discriminator column="`dtype`" type="string"/>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion">true</meta>
+ </version>
+ <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <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>
+ <many-to-one name="address" entity-name="Address" cascade="merge,persist,save-update,lock,refresh" foreign-key="manufacturingplant_address" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`address_address_e_id`"/>
+ </many-to-one>
+ <many-to-one name="transportFleet" entity-name="Fleet" cascade="merge,persist,save-update,lock,refresh" foreign-key="manufacturingplant_transportfleet" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`fleet_transportfleet_e_id`"/>
+ </many-to-one>
+ </class>
+ <subclass entity-name="Fleet" abstract="false" lazy="false" extends="Temporal" discriminator-value="Fleet">
+ <meta attribute="eclassName">Fleet</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <list name="vehicles" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true" foreign-key="fleet_vehicles">
+ <column name="`fleet_vehicles_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`fleet_vehicles_idx`"/>
+ <one-to-many entity-name="Vehicle"/>
+ </list>
+ <list name="vehicleInformation" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="fleet_vehicleinformation">
+ <column name="`fleet_vehicleinformation_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`fleet_vehicleinformation_idx`"/>
+ <one-to-many entity-name="VehicleInfo"/>
+ </list>
+ <many-to-one name="serviceGarage" entity-name="Garage" cascade="merge,persist,save-update,lock,refresh" foreign-key="fleet_servicegarage" lazy="false" insert="false" update="false" not-null="false">
+ <column not-null="false" unique="false" name="`fleet_servicegarage_e_id`"/>
+ </many-to-one>
+ </subclass>
+ <subclass entity-name="Garage" abstract="false" lazy="false" extends="Temporal" discriminator-value="Garage">
+ <meta attribute="eclassName">Garage</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <list name="vehicles" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true" foreign-key="garage_vehicles">
+ <column name="`garage_vehicles_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`garage_vehicles_idx`"/>
+ <one-to-many entity-name="Vehicle"/>
+ </list>
+ <many-to-one name="customerShuttles" entity-name="Fleet" cascade="all" foreign-key="garage_customershuttles" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`fleet_customershuttles_e_id`"/>
+ </many-to-one>
+ <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="garage_address" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`address_address_e_id`"/>
+ </many-to-one>
+ <list name="fleetsUsingGarage" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true">
+ <column name="`fleet_servicegarage_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`garage_fleetsusinggarage_idx`"/>
+ <one-to-many entity-name="Fleet"/>
+ </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>
+ </subclass>
+ <class entity-name="Tire" abstract="false" lazy="false" discriminator-value="Tire" table="`tire`">
+ <meta attribute="eclassName">Tire</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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>
+ <discriminator column="`dtype`" type="string"/>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion">true</meta>
+ </version>
+ <property name="radius" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`radius`"/>
+ </property>
+ <property name="width" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`width`"/>
+ </property>
+ <property name="profile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`profile`"/>
+ </property>
+ <property name="make" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`make`"/>
+ </property>
+ <property name="model" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`model`"/>
+ </property>
+ </class>
+ <subclass entity-name="Car" abstract="false" lazy="false" extends="Vehicle" discriminator-value="Car">
+ <meta attribute="eclassName">Car</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <property name="passengerName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`passengername`"/>
+ </property>
+ <property name="date" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp">
+ <column not-null="false" unique="false" name="`date`"/>
+ </property>
+ <array name="touchedAttributes" table="`car_touchedattributes`" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`car_touchedattributes_e_id`" not-null="true" unique="false"/>
+ </key>
+ <list-index column="`car_touchedattributes_idx`"/>
+ <element type="byte"/>
+ </array>
+ <property name="continuity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`continuity`"/>
+ </property>
+ <many-to-one name="versionHolder" entity-name="VersionHolder" cascade="merge,persist,save-update,lock,refresh" foreign-key="temporal_versionholder" lazy="false" insert="false" update="false" not-null="false">
+ <column not-null="false" unique="false" name="`car_versionholder_e_id`"/>
+ </many-to-one>
+ <many-to-one name="versionHolderContainment" entity-name="VersionHolder" cascade="all" foreign-key="temporal_versionholdercontainment" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`versionholder_versionholdercontainment_e_id`"/>
+ </many-to-one>
+ <property name="numPassengers" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`numpassengers`"/>
+ </property>
+ <property name="numTires" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`numtires`"/>
+ </property>
+ <list name="tires" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="car_tires">
+ <column name="`car_tires_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`car_tires_idx`"/>
+ <one-to-many entity-name="Tire"/>
+ </list>
+ </subclass>
+ <subclass entity-name="Hybrid" abstract="false" lazy="false" extends="Car" discriminator-value="Hybrid">
+ <meta attribute="eclassName">Hybrid</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <property name="hasRechargePlug" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`hasrechargeplug`"/>
+ </property>
+ <property name="batteryLife" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`batterylife`"/>
+ </property>
+ </subclass>
+ <class name="fleet.PassengerVehicle" entity-name="PassengerVehicle" abstract="true" lazy="false" discriminator-value="PassengerVehicle" table="`passengervehicle`">
+ <meta attribute="eclassName">PassengerVehicle</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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>
+ <discriminator column="`dtype`" type="string"/>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion">true</meta>
+ </version>
+ <property name="passengerName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`passengername`"/>
+ </property>
+ </class>
+ <subclass entity-name="EngineFactory" abstract="false" lazy="false" extends="ManufacturingPlant" discriminator-value="EngineFactory">
+ <meta attribute="eclassName">EngineFactory</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <property name="makesDieselEngines" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`makesdieselengines`"/>
+ </property>
+ <list name="brands" table="`enginefactory_brands`" lazy="true" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`enginefactory_brands_e_id`" not-null="true" unique="false"/>
+ </key>
+ <list-index column="`enginefactory_brands_idx`"/>
+ <element type="java.lang.String"/>
+ </list>
+ </subclass>
+ <subclass entity-name="USAddress" abstract="false" lazy="false" extends="Address" discriminator-value="USAddress">
+ <meta attribute="eclassName">USAddress</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <property name="zipCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`zipcode`"/>
+ </property>
+ <property name="state" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`state`"/>
+ </property>
+ </subclass>
+ <class entity-name="Vin" abstract="false" lazy="false" discriminator-value="Vin" table="`vin`">
+ <meta attribute="eclassName">Vin</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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>
+ <discriminator column="`dtype`" type="string"/>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion">true</meta>
+ </version>
+ <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <property name="installationDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp">
+ <column not-null="false" unique="false" name="`installationdate`"/>
+ </property>
+ <many-to-one name="vehicle" entity-name="Vehicle" cascade="merge,persist,save-update,lock,refresh" foreign-key="vin_vehicle" lazy="false" insert="true" update="true" not-null="true">
+ <column not-null="true" unique="false" name="`vehicle_vehicle_e_id`"/>
+ </many-to-one>
+ </class>
+ <class entity-name="TransportationDevice" abstract="false" lazy="false" discriminator-value="TransportationDevice" table="`transportationdevice`">
+ <meta attribute="eclassName">TransportationDevice</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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>
+ <discriminator column="`dtype`" type="string"/>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion">true</meta>
+ </version>
+ <property name="manufacturedBy" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`manufacturedby`"/>
+ </property>
+ <property name="year" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`year`"/>
+ </property>
+ </class>
+ <class entity-name="VersionHolder" abstract="false" lazy="false" discriminator-value="VersionHolder" table="`versionholder`">
+ <meta attribute="eclassName">VersionHolder</meta>
+ <meta attribute="epackage">http:///temporal.ecore</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>
+ <discriminator column="`dtype`" type="string"/>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion">true</meta>
+ </version>
+ <list name="versions" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true">
+ <column name="`temporal_versionholder_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`versionholder_versions_idx`"/>
+ <one-to-many entity-name="Temporal"/>
+ </list>
+ <property name="indexOfContinuity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`indexofcontinuity`"/>
+ </property>
+ </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.sample/FleetAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/FleetAction_mysql_e_o_hibernate.hbm.xml
new file mode 100644
index 000000000..cbf0a96be
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/FleetAction_mysql_e_o_hibernate.hbm.xml
@@ -0,0 +1,422 @@
+<?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 entity-name="Vehicle" abstract="false" lazy="false" table="`vehicle`">
+ <meta attribute="eclassName">Vehicle</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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="brand" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`brand`"/>
+ </property>
+ <property name="model" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`model`"/>
+ </property>
+ <property name="make" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`make`"/>
+ </property>
+ <property name="color" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`color`"/>
+ </property>
+ <property name="plate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`plate`"/>
+ </property>
+ <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <property name="year" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`year`"/>
+ </property>
+ <property name="length" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
+ <column not-null="false" unique="false" name="`length`"/>
+ </property>
+ <list name="availableColors" table="`vehicle_availablecolors`" lazy="true" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`vehicle_availablecolors_e_id`" not-null="true" unique="false"/>
+ </key>
+ <list-index column="`vehicle_availablecolors_idx`"/>
+ <element type="java.lang.String"/>
+ </list>
+ <many-to-one name="owner" entity-name="Person" cascade="all" foreign-key="vehicle_owner" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`person_owner_e_id`"/>
+ </many-to-one>
+ <list name="manufacturedAt" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true" foreign-key="vehicle_manufacturedat">
+ <column name="`vehicle_manufacturedat_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`vehicle_manufacturedat_idx`"/>
+ <one-to-many entity-name="ManufacturingPlant"/>
+ </list>
+ <many-to-one name="tireSpec" entity-name="Tire" cascade="merge,persist,save-update,lock,refresh" foreign-key="vehicle_tirespec" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`tire_tirespec_e_id`"/>
+ </many-to-one>
+ </class>
+ <class entity-name="Temporal" abstract="false" lazy="false" table="`temporal`">
+ <meta attribute="eclassName">Temporal</meta>
+ <meta attribute="epackage">http:///temporal.ecore</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="date" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp">
+ <column not-null="false" unique="false" name="`date`"/>
+ </property>
+ <array name="touchedAttributes" table="`temporal_touchedattributes`" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`temporal_touchedattributes_e_id`" not-null="true" unique="false"/>
+ </key>
+ <list-index column="`temporal_touchedattributes_idx`"/>
+ <element type="byte"/>
+ </array>
+ <property name="continuity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`continuity`"/>
+ </property>
+ <many-to-one name="versionHolder" entity-name="VersionHolder" cascade="merge,persist,save-update,lock,refresh" foreign-key="temporal_versionholder" lazy="false" insert="false" update="false" not-null="false">
+ <column not-null="false" unique="false" name="`temporal_versionholder_e_id`"/>
+ </many-to-one>
+ <many-to-one name="versionHolderContainment" entity-name="VersionHolder" cascade="all" foreign-key="temporal_versionholdercontainment" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`versionholder_versionholdercontainment_e_id`"/>
+ </many-to-one>
+ </class>
+ <joined-subclass entity-name="Person" abstract="false" lazy="false" extends="Temporal" table="`person`">
+ <meta attribute="eclassName">Person</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`temporal_e_id`"/>
+ </key>
+ <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <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>
+ <property name="employed" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`employed`"/>
+ </property>
+ <list name="addresses" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="person_addresses">
+ <column name="`person_addresses_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`person_addresses_idx`"/>
+ <one-to-many entity-name="Address"/>
+ </list>
+ <list name="ownedVehicles" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true" foreign-key="person_ownedvehicles">
+ <column name="`person_ownedvehicles_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`person_ownedvehicles_idx`"/>
+ <one-to-many entity-name="VehicleInfo"/>
+ </list>
+ <many-to-one name="birthAddress" entity-name="Address" cascade="all" foreign-key="person_birthaddress" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`address_birthaddress_e_id`"/>
+ </many-to-one>
+ </joined-subclass>
+ <joined-subclass entity-name="Address" abstract="false" lazy="false" extends="Temporal" table="`address`">
+ <meta attribute="eclassName">Address</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`temporal_e_id`"/>
+ </key>
+ <property name="streetName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`streetname`"/>
+ </property>
+ <property name="streetNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`streetnumber`"/>
+ </property>
+ <property name="city" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`city`"/>
+ </property>
+ <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`country`"/>
+ </property>
+ </joined-subclass>
+ <class entity-name="VehicleInfo" abstract="false" lazy="false" table="`vehicleinfo`">
+ <meta attribute="eclassName">VehicleInfo</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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="acquisitionDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp">
+ <column not-null="true" unique="false" name="`acquisitiondate`"/>
+ </property>
+ <many-to-one name="vehicle" entity-name="Vehicle" cascade="merge,persist,save-update,lock,refresh" foreign-key="vehicleinfo_vehicle" lazy="false" insert="true" update="true" not-null="true">
+ <column not-null="true" unique="false" name="`vehicle_vehicle_e_id`"/>
+ </many-to-one>
+ </class>
+ <class entity-name="ManufacturingPlant" abstract="false" lazy="false" table="`manufacturingplant`">
+ <meta attribute="eclassName">ManufacturingPlant</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <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>
+ <many-to-one name="address" entity-name="Address" cascade="merge,persist,save-update,lock,refresh" foreign-key="manufacturingplant_address" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`address_address_e_id`"/>
+ </many-to-one>
+ <many-to-one name="transportFleet" entity-name="Fleet" cascade="merge,persist,save-update,lock,refresh" foreign-key="manufacturingplant_transportfleet" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`fleet_transportfleet_e_id`"/>
+ </many-to-one>
+ </class>
+ <joined-subclass entity-name="Fleet" abstract="false" lazy="false" extends="Temporal" table="`fleet`">
+ <meta attribute="eclassName">Fleet</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`temporal_e_id`"/>
+ </key>
+ <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <list name="vehicles" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true" foreign-key="fleet_vehicles">
+ <column name="`fleet_vehicles_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`fleet_vehicles_idx`"/>
+ <one-to-many entity-name="Vehicle"/>
+ </list>
+ <list name="vehicleInformation" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="fleet_vehicleinformation">
+ <column name="`fleet_vehicleinformation_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`fleet_vehicleinformation_idx`"/>
+ <one-to-many entity-name="VehicleInfo"/>
+ </list>
+ <many-to-one name="serviceGarage" entity-name="Garage" cascade="merge,persist,save-update,lock,refresh" foreign-key="fleet_servicegarage" lazy="false" insert="false" update="false" not-null="false">
+ <column not-null="false" unique="false" name="`fleet_servicegarage_e_id`"/>
+ </many-to-one>
+ </joined-subclass>
+ <joined-subclass entity-name="Garage" abstract="false" lazy="false" extends="Temporal" table="`garage`">
+ <meta attribute="eclassName">Garage</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`temporal_e_id`"/>
+ </key>
+ <list name="vehicles" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true" foreign-key="garage_vehicles">
+ <column name="`garage_vehicles_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`garage_vehicles_idx`"/>
+ <one-to-many entity-name="Vehicle"/>
+ </list>
+ <many-to-one name="customerShuttles" entity-name="Fleet" cascade="all" foreign-key="garage_customershuttles" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`fleet_customershuttles_e_id`"/>
+ </many-to-one>
+ <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="garage_address" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`address_address_e_id`"/>
+ </many-to-one>
+ <list name="fleetsUsingGarage" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true">
+ <column name="`fleet_servicegarage_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`garage_fleetsusinggarage_idx`"/>
+ <one-to-many entity-name="Fleet"/>
+ </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>
+ </joined-subclass>
+ <class entity-name="Tire" abstract="false" lazy="false" table="`tire`">
+ <meta attribute="eclassName">Tire</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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="radius" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`radius`"/>
+ </property>
+ <property name="width" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`width`"/>
+ </property>
+ <property name="profile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`profile`"/>
+ </property>
+ <property name="make" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`make`"/>
+ </property>
+ <property name="model" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`model`"/>
+ </property>
+ </class>
+ <joined-subclass entity-name="Car" abstract="false" lazy="false" extends="Vehicle" table="`car`">
+ <meta attribute="eclassName">Car</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`passengervehicle_e_id`"/>
+ </key>
+ <property name="passengerName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`passengername`"/>
+ </property>
+ <property name="date" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp">
+ <column not-null="false" unique="false" name="`date`"/>
+ </property>
+ <array name="touchedAttributes" table="`car_touchedattributes`" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`car_touchedattributes_e_id`" not-null="true" unique="false"/>
+ </key>
+ <list-index column="`car_touchedattributes_idx`"/>
+ <element type="byte"/>
+ </array>
+ <property name="continuity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`continuity`"/>
+ </property>
+ <many-to-one name="versionHolder" entity-name="VersionHolder" cascade="merge,persist,save-update,lock,refresh" foreign-key="temporal_versionholder" lazy="false" insert="false" update="false" not-null="false">
+ <column not-null="false" unique="false" name="`car_versionholder_e_id`"/>
+ </many-to-one>
+ <many-to-one name="versionHolderContainment" entity-name="VersionHolder" cascade="all" foreign-key="temporal_versionholdercontainment" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`versionholder_versionholdercontainment_e_id`"/>
+ </many-to-one>
+ <property name="numPassengers" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`numpassengers`"/>
+ </property>
+ <property name="numTires" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`numtires`"/>
+ </property>
+ <list name="tires" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="car_tires">
+ <column name="`car_tires_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`car_tires_idx`"/>
+ <one-to-many entity-name="Tire"/>
+ </list>
+ </joined-subclass>
+ <joined-subclass entity-name="Hybrid" abstract="false" lazy="false" extends="Car" table="`hybrid`">
+ <meta attribute="eclassName">Hybrid</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`car_e_id`"/>
+ </key>
+ <property name="hasRechargePlug" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`hasrechargeplug`"/>
+ </property>
+ <property name="batteryLife" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`batterylife`"/>
+ </property>
+ </joined-subclass>
+ <class name="fleet.PassengerVehicle" entity-name="PassengerVehicle" abstract="true" lazy="false" table="`passengervehicle`">
+ <meta attribute="eclassName">PassengerVehicle</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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="passengerName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`passengername`"/>
+ </property>
+ </class>
+ <joined-subclass entity-name="EngineFactory" abstract="false" lazy="false" extends="ManufacturingPlant" table="`enginefactory`">
+ <meta attribute="eclassName">EngineFactory</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`manufacturingplant_e_id`"/>
+ </key>
+ <property name="makesDieselEngines" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`makesdieselengines`"/>
+ </property>
+ <list name="brands" table="`enginefactory_brands`" lazy="true" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`enginefactory_brands_e_id`" not-null="true" unique="false"/>
+ </key>
+ <list-index column="`enginefactory_brands_idx`"/>
+ <element type="java.lang.String"/>
+ </list>
+ </joined-subclass>
+ <joined-subclass entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`usaddress`">
+ <meta attribute="eclassName">USAddress</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`address_e_id`"/>
+ </key>
+ <property name="zipCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`zipcode`"/>
+ </property>
+ <property name="state" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`state`"/>
+ </property>
+ </joined-subclass>
+ <class entity-name="Vin" abstract="false" lazy="false" table="`vin`">
+ <meta attribute="eclassName">Vin</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <property name="installationDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp">
+ <column not-null="false" unique="false" name="`installationdate`"/>
+ </property>
+ <many-to-one name="vehicle" entity-name="Vehicle" cascade="merge,persist,save-update,lock,refresh" foreign-key="vin_vehicle" lazy="false" insert="true" update="true" not-null="true">
+ <column not-null="true" unique="false" name="`vehicle_vehicle_e_id`"/>
+ </many-to-one>
+ </class>
+ <class entity-name="TransportationDevice" abstract="false" lazy="false" table="`transportationdevice`">
+ <meta attribute="eclassName">TransportationDevice</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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="manufacturedBy" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`manufacturedby`"/>
+ </property>
+ <property name="year" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`year`"/>
+ </property>
+ </class>
+ <class entity-name="VersionHolder" abstract="false" lazy="false" table="`versionholder`">
+ <meta attribute="eclassName">VersionHolder</meta>
+ <meta attribute="epackage">http:///temporal.ecore</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>
+ <list name="versions" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true">
+ <column name="`temporal_versionholder_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`versionholder_versions_idx`"/>
+ <one-to-many entity-name="Temporal"/>
+ </list>
+ <property name="indexOfContinuity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`indexofcontinuity`"/>
+ </property>
+ </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.sample/FleetAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/FleetAction_mysql_s_o_hibernate.hbm.xml
new file mode 100644
index 000000000..cbf0a96be
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/FleetAction_mysql_s_o_hibernate.hbm.xml
@@ -0,0 +1,422 @@
+<?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 entity-name="Vehicle" abstract="false" lazy="false" table="`vehicle`">
+ <meta attribute="eclassName">Vehicle</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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="brand" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`brand`"/>
+ </property>
+ <property name="model" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`model`"/>
+ </property>
+ <property name="make" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`make`"/>
+ </property>
+ <property name="color" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`color`"/>
+ </property>
+ <property name="plate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`plate`"/>
+ </property>
+ <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <property name="year" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`year`"/>
+ </property>
+ <property name="length" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
+ <column not-null="false" unique="false" name="`length`"/>
+ </property>
+ <list name="availableColors" table="`vehicle_availablecolors`" lazy="true" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`vehicle_availablecolors_e_id`" not-null="true" unique="false"/>
+ </key>
+ <list-index column="`vehicle_availablecolors_idx`"/>
+ <element type="java.lang.String"/>
+ </list>
+ <many-to-one name="owner" entity-name="Person" cascade="all" foreign-key="vehicle_owner" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`person_owner_e_id`"/>
+ </many-to-one>
+ <list name="manufacturedAt" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true" foreign-key="vehicle_manufacturedat">
+ <column name="`vehicle_manufacturedat_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`vehicle_manufacturedat_idx`"/>
+ <one-to-many entity-name="ManufacturingPlant"/>
+ </list>
+ <many-to-one name="tireSpec" entity-name="Tire" cascade="merge,persist,save-update,lock,refresh" foreign-key="vehicle_tirespec" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`tire_tirespec_e_id`"/>
+ </many-to-one>
+ </class>
+ <class entity-name="Temporal" abstract="false" lazy="false" table="`temporal`">
+ <meta attribute="eclassName">Temporal</meta>
+ <meta attribute="epackage">http:///temporal.ecore</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="date" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp">
+ <column not-null="false" unique="false" name="`date`"/>
+ </property>
+ <array name="touchedAttributes" table="`temporal_touchedattributes`" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`temporal_touchedattributes_e_id`" not-null="true" unique="false"/>
+ </key>
+ <list-index column="`temporal_touchedattributes_idx`"/>
+ <element type="byte"/>
+ </array>
+ <property name="continuity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`continuity`"/>
+ </property>
+ <many-to-one name="versionHolder" entity-name="VersionHolder" cascade="merge,persist,save-update,lock,refresh" foreign-key="temporal_versionholder" lazy="false" insert="false" update="false" not-null="false">
+ <column not-null="false" unique="false" name="`temporal_versionholder_e_id`"/>
+ </many-to-one>
+ <many-to-one name="versionHolderContainment" entity-name="VersionHolder" cascade="all" foreign-key="temporal_versionholdercontainment" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`versionholder_versionholdercontainment_e_id`"/>
+ </many-to-one>
+ </class>
+ <joined-subclass entity-name="Person" abstract="false" lazy="false" extends="Temporal" table="`person`">
+ <meta attribute="eclassName">Person</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`temporal_e_id`"/>
+ </key>
+ <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <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>
+ <property name="employed" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`employed`"/>
+ </property>
+ <list name="addresses" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="person_addresses">
+ <column name="`person_addresses_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`person_addresses_idx`"/>
+ <one-to-many entity-name="Address"/>
+ </list>
+ <list name="ownedVehicles" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true" foreign-key="person_ownedvehicles">
+ <column name="`person_ownedvehicles_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`person_ownedvehicles_idx`"/>
+ <one-to-many entity-name="VehicleInfo"/>
+ </list>
+ <many-to-one name="birthAddress" entity-name="Address" cascade="all" foreign-key="person_birthaddress" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`address_birthaddress_e_id`"/>
+ </many-to-one>
+ </joined-subclass>
+ <joined-subclass entity-name="Address" abstract="false" lazy="false" extends="Temporal" table="`address`">
+ <meta attribute="eclassName">Address</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`temporal_e_id`"/>
+ </key>
+ <property name="streetName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`streetname`"/>
+ </property>
+ <property name="streetNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`streetnumber`"/>
+ </property>
+ <property name="city" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`city`"/>
+ </property>
+ <property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`country`"/>
+ </property>
+ </joined-subclass>
+ <class entity-name="VehicleInfo" abstract="false" lazy="false" table="`vehicleinfo`">
+ <meta attribute="eclassName">VehicleInfo</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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="acquisitionDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp">
+ <column not-null="true" unique="false" name="`acquisitiondate`"/>
+ </property>
+ <many-to-one name="vehicle" entity-name="Vehicle" cascade="merge,persist,save-update,lock,refresh" foreign-key="vehicleinfo_vehicle" lazy="false" insert="true" update="true" not-null="true">
+ <column not-null="true" unique="false" name="`vehicle_vehicle_e_id`"/>
+ </many-to-one>
+ </class>
+ <class entity-name="ManufacturingPlant" abstract="false" lazy="false" table="`manufacturingplant`">
+ <meta attribute="eclassName">ManufacturingPlant</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <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>
+ <many-to-one name="address" entity-name="Address" cascade="merge,persist,save-update,lock,refresh" foreign-key="manufacturingplant_address" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`address_address_e_id`"/>
+ </many-to-one>
+ <many-to-one name="transportFleet" entity-name="Fleet" cascade="merge,persist,save-update,lock,refresh" foreign-key="manufacturingplant_transportfleet" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`fleet_transportfleet_e_id`"/>
+ </many-to-one>
+ </class>
+ <joined-subclass entity-name="Fleet" abstract="false" lazy="false" extends="Temporal" table="`fleet`">
+ <meta attribute="eclassName">Fleet</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`temporal_e_id`"/>
+ </key>
+ <property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <list name="vehicles" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true" foreign-key="fleet_vehicles">
+ <column name="`fleet_vehicles_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`fleet_vehicles_idx`"/>
+ <one-to-many entity-name="Vehicle"/>
+ </list>
+ <list name="vehicleInformation" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="fleet_vehicleinformation">
+ <column name="`fleet_vehicleinformation_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`fleet_vehicleinformation_idx`"/>
+ <one-to-many entity-name="VehicleInfo"/>
+ </list>
+ <many-to-one name="serviceGarage" entity-name="Garage" cascade="merge,persist,save-update,lock,refresh" foreign-key="fleet_servicegarage" lazy="false" insert="false" update="false" not-null="false">
+ <column not-null="false" unique="false" name="`fleet_servicegarage_e_id`"/>
+ </many-to-one>
+ </joined-subclass>
+ <joined-subclass entity-name="Garage" abstract="false" lazy="false" extends="Temporal" table="`garage`">
+ <meta attribute="eclassName">Garage</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`temporal_e_id`"/>
+ </key>
+ <list name="vehicles" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true" foreign-key="garage_vehicles">
+ <column name="`garage_vehicles_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`garage_vehicles_idx`"/>
+ <one-to-many entity-name="Vehicle"/>
+ </list>
+ <many-to-one name="customerShuttles" entity-name="Fleet" cascade="all" foreign-key="garage_customershuttles" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`fleet_customershuttles_e_id`"/>
+ </many-to-one>
+ <many-to-one name="address" entity-name="Address" cascade="all" foreign-key="garage_address" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`address_address_e_id`"/>
+ </many-to-one>
+ <list name="fleetsUsingGarage" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true">
+ <column name="`fleet_servicegarage_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`garage_fleetsusinggarage_idx`"/>
+ <one-to-many entity-name="Fleet"/>
+ </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>
+ </joined-subclass>
+ <class entity-name="Tire" abstract="false" lazy="false" table="`tire`">
+ <meta attribute="eclassName">Tire</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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="radius" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`radius`"/>
+ </property>
+ <property name="width" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`width`"/>
+ </property>
+ <property name="profile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`profile`"/>
+ </property>
+ <property name="make" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`make`"/>
+ </property>
+ <property name="model" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`model`"/>
+ </property>
+ </class>
+ <joined-subclass entity-name="Car" abstract="false" lazy="false" extends="Vehicle" table="`car`">
+ <meta attribute="eclassName">Car</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`passengervehicle_e_id`"/>
+ </key>
+ <property name="passengerName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`passengername`"/>
+ </property>
+ <property name="date" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp">
+ <column not-null="false" unique="false" name="`date`"/>
+ </property>
+ <array name="touchedAttributes" table="`car_touchedattributes`" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`car_touchedattributes_e_id`" not-null="true" unique="false"/>
+ </key>
+ <list-index column="`car_touchedattributes_idx`"/>
+ <element type="byte"/>
+ </array>
+ <property name="continuity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`continuity`"/>
+ </property>
+ <many-to-one name="versionHolder" entity-name="VersionHolder" cascade="merge,persist,save-update,lock,refresh" foreign-key="temporal_versionholder" lazy="false" insert="false" update="false" not-null="false">
+ <column not-null="false" unique="false" name="`car_versionholder_e_id`"/>
+ </many-to-one>
+ <many-to-one name="versionHolderContainment" entity-name="VersionHolder" cascade="all" foreign-key="temporal_versionholdercontainment" lazy="false" insert="true" update="true" not-null="false">
+ <column not-null="false" unique="false" name="`versionholder_versionholdercontainment_e_id`"/>
+ </many-to-one>
+ <property name="numPassengers" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`numpassengers`"/>
+ </property>
+ <property name="numTires" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`numtires`"/>
+ </property>
+ <list name="tires" lazy="true" cascade="all,delete-orphan">
+ <key update="true" foreign-key="car_tires">
+ <column name="`car_tires_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`car_tires_idx`"/>
+ <one-to-many entity-name="Tire"/>
+ </list>
+ </joined-subclass>
+ <joined-subclass entity-name="Hybrid" abstract="false" lazy="false" extends="Car" table="`hybrid`">
+ <meta attribute="eclassName">Hybrid</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`car_e_id`"/>
+ </key>
+ <property name="hasRechargePlug" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`hasrechargeplug`"/>
+ </property>
+ <property name="batteryLife" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`batterylife`"/>
+ </property>
+ </joined-subclass>
+ <class name="fleet.PassengerVehicle" entity-name="PassengerVehicle" abstract="true" lazy="false" table="`passengervehicle`">
+ <meta attribute="eclassName">PassengerVehicle</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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="passengerName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`passengername`"/>
+ </property>
+ </class>
+ <joined-subclass entity-name="EngineFactory" abstract="false" lazy="false" extends="ManufacturingPlant" table="`enginefactory`">
+ <meta attribute="eclassName">EngineFactory</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`manufacturingplant_e_id`"/>
+ </key>
+ <property name="makesDieselEngines" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
+ <column not-null="false" unique="false" name="`makesdieselengines`"/>
+ </property>
+ <list name="brands" table="`enginefactory_brands`" lazy="true" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`enginefactory_brands_e_id`" not-null="true" unique="false"/>
+ </key>
+ <list-index column="`enginefactory_brands_idx`"/>
+ <element type="java.lang.String"/>
+ </list>
+ </joined-subclass>
+ <joined-subclass entity-name="USAddress" abstract="false" lazy="false" extends="Address" table="`usaddress`">
+ <meta attribute="eclassName">USAddress</meta>
+ <meta attribute="epackage">http:///fleet.ecore</meta>
+ <key>
+ <column name="`address_e_id`"/>
+ </key>
+ <property name="zipCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`zipcode`"/>
+ </property>
+ <property name="state" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`state`"/>
+ </property>
+ </joined-subclass>
+ <class entity-name="Vin" abstract="false" lazy="false" table="`vin`">
+ <meta attribute="eclassName">Vin</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`id`"/>
+ </property>
+ <property name="installationDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp">
+ <column not-null="false" unique="false" name="`installationdate`"/>
+ </property>
+ <many-to-one name="vehicle" entity-name="Vehicle" cascade="merge,persist,save-update,lock,refresh" foreign-key="vin_vehicle" lazy="false" insert="true" update="true" not-null="true">
+ <column not-null="true" unique="false" name="`vehicle_vehicle_e_id`"/>
+ </many-to-one>
+ </class>
+ <class entity-name="TransportationDevice" abstract="false" lazy="false" table="`transportationdevice`">
+ <meta attribute="eclassName">TransportationDevice</meta>
+ <meta attribute="epackage">http:///fleet.ecore</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="manufacturedBy" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <column not-null="false" unique="false" name="`manufacturedby`"/>
+ </property>
+ <property name="year" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`year`"/>
+ </property>
+ </class>
+ <class entity-name="VersionHolder" abstract="false" lazy="false" table="`versionholder`">
+ <meta attribute="eclassName">VersionHolder</meta>
+ <meta attribute="epackage">http:///temporal.ecore</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>
+ <list name="versions" lazy="true" cascade="merge,persist,save-update,lock,refresh">
+ <key update="true">
+ <column name="`temporal_versionholder_e_id`" not-null="false" unique="false"/>
+ </key>
+ <list-index column="`versionholder_versions_idx`"/>
+ <one-to-many entity-name="Temporal"/>
+ </list>
+ <property name="indexOfContinuity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
+ <column not-null="false" unique="false" name="`indexofcontinuity`"/>
+ </property>
+ </class>
+</hibernate-mapping> \ No newline at end of file

Back to the top