diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample')
131 files changed, 0 insertions, 15510 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 3106c4758..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,133 +0,0 @@ -<?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" discriminator-value="CarFrame" table="`carframe`"> - <meta attribute="eclassName">CarFrame</meta> - <meta attribute="epackage">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">true</meta> - <generator class="native"/> - </id> - <discriminator type="string"> - <column name="dtype" index="carframedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">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" discriminator-value="CarLink" table="`carlink`"> - <meta attribute="eclassName">CarLink</meta> - <meta attribute="epackage">http://www.example.com/car.xsd</meta> - <id name="carLinkId" type="java.lang.String"> - <column not-null="true" unique="false" name="`carlinkid`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="carlinkdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - </class> - <class name="com.example.car.impl.CarsListImpl" entity-name="CarsList" abstract="false" lazy="false" discriminator-value="CarsList" table="`carslist`"> - <meta attribute="eclassName">CarsList</meta> - <meta attribute="epackage">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">true</meta> - <generator class="native"/> - </id> - <discriminator type="string"> - <column name="dtype" index="carslistdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">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" discriminator-value="CarTire" table="`cartire`"> - <meta attribute="eclassName">CarTire</meta> - <meta attribute="epackage">http://www.example.com/car.xsd</meta> - <id name="name" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="cartiredtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - </class> - <class name="com.example.car.impl.CarTypeImpl" entity-name="CarType" abstract="false" lazy="false" discriminator-value="CarType" table="`cartype`"> - <meta attribute="eclassName">CarType</meta> - <meta attribute="epackage">http://www.example.com/car.xsd</meta> - <id name="carID" type="java.lang.String"> - <column not-null="true" unique="false" name="`carid`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="cartypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">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" discriminator-value="CarWheel" table="`carwheel`"> - <meta attribute="eclassName">CarWheel</meta> - <meta attribute="epackage">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">true</meta> - <generator class="native"/> - </id> - <discriminator type="string"> - <column name="dtype" index="carwheeldtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">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 diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 4239ed1c3..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,115 +0,0 @@ -<?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 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 deleted file mode 100755 index 4239ed1c3..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CarAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,115 +0,0 @@ -<?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 diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CatalogResourceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CatalogResourceAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index ae02795c3..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CatalogResourceAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,121 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.CatalogTypeImpl" entity-name="CatalogType" abstract="false" lazy="false" discriminator-value="CatalogType" table="`catalogtype`"> - <meta attribute="eclassName">CatalogType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> - <id name="name" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="catalogtypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="description" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </property> - <list name="subCatalog" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="catalogtype_subcatalog"> - <column name="`catalogtype_subcatalog_name`" not-null="false" unique="false"/> - </key> - <list-index column="`catalogtype_subcatalog_idx`"/> - <one-to-many entity-name="CatalogType"/> - </list> - <list name="product" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="catalogtype_product"> - <column name="`catalogtype_product_name`" not-null="false" unique="false"/> - </key> - <list-index column="`catalogtype_product_idx`"/> - <one-to-many entity-name="ProductType"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.PriceTypeImpl" entity-name="PriceType" abstract="false" lazy="false" discriminator-value="PriceType" table="`pricetype`"> - <meta attribute="eclassName">PriceType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</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 type="string"> - <column name="dtype" index="pricetypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="price" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> - <column not-null="false" unique="false" name="`price`"/> - </property> - <property name="quantityTo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> - <column not-null="false" unique="false" name="`quantityto`"/> - </property> - <many-to-one name="supplier" entity-name="SupplierType" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="pricetype_supplier" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" discriminator-value="ProductType" table="`producttype`"> - <meta attribute="eclassName">ProductType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> - <id name="code" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="producttypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="description" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`description`"/> - </property> - <list name="remark" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="producttype_remark"> - <column name="`producttype_remark_code`" not-null="false" unique="false"/> - </key> - <list-index column="`producttype_remark_idx`"/> - <one-to-many entity-name="StringType"/> - </list> - <many-to-one name="price" entity-name="PriceType" lazy="false" cascade="all" foreign-key="producttype_price" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`pricetype_price_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.StringTypeImpl" entity-name="StringType" abstract="false" lazy="false" discriminator-value="StringType" table="`stringtype`"> - <meta attribute="eclassName">StringType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</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 type="string"> - <column name="dtype" index="stringtypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`value`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" discriminator-value="SupplierType" table="`suppliertype`"> - <meta attribute="eclassName">SupplierType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</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 type="string"> - <column name="dtype" index="suppliertypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`noofemployees`"/> - </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/CatalogResourceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CatalogResourceAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index f2f4a71b7..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CatalogResourceAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,106 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.CatalogTypeImpl" entity-name="CatalogType" abstract="false" lazy="false" table="`catalogtype`"> - <meta attribute="eclassName" inherit="false">CatalogType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</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> - <property name="description" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </property> - <list name="subCatalog" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="catalogtype_subcatalog"> - <column name="`catalogtype_subcatalog_name`" not-null="false" unique="false"/> - </key> - <list-index column="`catalogtype_subcatalog_idx`"/> - <one-to-many entity-name="CatalogType"/> - </list> - <list name="product" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="catalogtype_product"> - <column name="`catalogtype_product_name`" not-null="false" unique="false"/> - </key> - <list-index column="`catalogtype_product_idx`"/> - <one-to-many entity-name="ProductType"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.PriceTypeImpl" entity-name="PriceType" abstract="false" lazy="false" table="`pricetype`"> - <meta attribute="eclassName" inherit="false">PriceType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</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> - <property name="price" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> - <column not-null="false" unique="false" name="`price`"/> - </property> - <property name="quantityTo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> - <column not-null="false" unique="false" name="`quantityto`"/> - </property> - <many-to-one name="supplier" entity-name="SupplierType" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="pricetype_supplier" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" table="`producttype`"> - <meta attribute="eclassName" inherit="false">ProductType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> - <id name="code" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </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="description" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`description`"/> - </property> - <list name="remark" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="producttype_remark"> - <column name="`producttype_remark_code`" not-null="false" unique="false"/> - </key> - <list-index column="`producttype_remark_idx`"/> - <one-to-many entity-name="StringType"/> - </list> - <many-to-one name="price" entity-name="PriceType" lazy="false" cascade="all" foreign-key="producttype_price" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`pricetype_price_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.StringTypeImpl" entity-name="StringType" abstract="false" lazy="false" table="`stringtype`"> - <meta attribute="eclassName" inherit="false">StringType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</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> - <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`value`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" table="`suppliertype`"> - <meta attribute="eclassName" inherit="false">SupplierType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</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> - <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> - <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`noofemployees`"/> - </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/CatalogResourceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CatalogResourceAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index f2f4a71b7..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/CatalogResourceAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,106 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.CatalogTypeImpl" entity-name="CatalogType" abstract="false" lazy="false" table="`catalogtype`"> - <meta attribute="eclassName" inherit="false">CatalogType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</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> - <property name="description" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </property> - <list name="subCatalog" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="catalogtype_subcatalog"> - <column name="`catalogtype_subcatalog_name`" not-null="false" unique="false"/> - </key> - <list-index column="`catalogtype_subcatalog_idx`"/> - <one-to-many entity-name="CatalogType"/> - </list> - <list name="product" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="catalogtype_product"> - <column name="`catalogtype_product_name`" not-null="false" unique="false"/> - </key> - <list-index column="`catalogtype_product_idx`"/> - <one-to-many entity-name="ProductType"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.PriceTypeImpl" entity-name="PriceType" abstract="false" lazy="false" table="`pricetype`"> - <meta attribute="eclassName" inherit="false">PriceType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</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> - <property name="price" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> - <column not-null="false" unique="false" name="`price`"/> - </property> - <property name="quantityTo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> - <column not-null="false" unique="false" name="`quantityto`"/> - </property> - <many-to-one name="supplier" entity-name="SupplierType" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="pricetype_supplier" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" table="`producttype`"> - <meta attribute="eclassName" inherit="false">ProductType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</meta> - <id name="code" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </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="description" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`description`"/> - </property> - <list name="remark" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="producttype_remark"> - <column name="`producttype_remark_code`" not-null="false" unique="false"/> - </key> - <list-index column="`producttype_remark_idx`"/> - <one-to-many entity-name="StringType"/> - </list> - <many-to-one name="price" entity-name="PriceType" lazy="false" cascade="all" foreign-key="producttype_price" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`pricetype_price_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.StringTypeImpl" entity-name="StringType" abstract="false" lazy="false" table="`stringtype`"> - <meta attribute="eclassName" inherit="false">StringType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</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> - <property name="value" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`value`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.catalog.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" table="`suppliertype`"> - <meta attribute="eclassName" inherit="false">SupplierType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/catalog</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> - <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> - <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`noofemployees`"/> - </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/ClaimAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ClaimAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index e4730aa52..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ClaimAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,67 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.claim.impl.ClaimImpl" entity-name="Claim" abstract="false" lazy="false" discriminator-value="Claim" table="`pclm_nprc_clm`"> - <meta attribute="eclassName">Claim</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/claim</meta> - <composite-id name="claimCompositeKey" class="org.eclipse.emf.teneo.samples.emf.sample.claim.impl.ClaimCompositeKeyImpl"> - <key-property name="claimNumber" type="java.lang.String"> - <column not-null="false" unique="false" name="`clm_nbr`" unique-key="c0"/> - </key-property> - <key-property name="claimExtensionNumber" type="java.lang.String"> - <column not-null="false" unique="false" name="`clm_ext_nbr`" unique-key="c0"/> - </key-property> - </composite-id> - <discriminator type="string"> - <column name="dtype" index="PCLM_NPRC_CLMdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="billingName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`billing_name`" length="50"/> - </property> - <property name="claimGroupVSPId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`clm_grp_vsp_id`" length="3"/> - </property> - <property name="claimStatus" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`clm_status`" length="2"/> - </property> - <bag name="claimLine" inverse="true" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="claim_claimline"> - <column name="`clm_nbr`" not-null="false" unique="false"/> - <column name="`clm_ext_nbr`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="ClaimLine"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.claim.impl.ClaimLineImpl" entity-name="ClaimLine" abstract="false" lazy="false" discriminator-value="ClaimLine" table="`pclm_nprc_clmln`"> - <meta attribute="eclassName">ClaimLine</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/claim</meta> - <composite-id name="claimLineCompositeKey" class="org.eclipse.emf.teneo.samples.emf.sample.claim.impl.ClaimLineCompositeKeyImpl"> - <key-many-to-one name="claim" entity-name="Claim" foreign-key="claimlinecompositekey_claim" lazy="false"> - <column not-null="false" unique="false" name="`clm_nbr`" unique-key="c0"/> - <column not-null="false" unique="false" name="`clm_ext_nbr`" unique-key="c0"/> - </key-many-to-one> - <key-property name="claimLineNumber" type="java.lang.String"> - <column not-null="false" unique="false" name="`clmln_nbr`" unique-key="c0"/> - </key-property> - </composite-id> - <discriminator type="string"> - <column name="dtype" index="PCLM_NPRC_CLMLNdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="claimLineBilledAmount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal"> - <column not-null="false" unique="false" name="`clmln_bill_amt`"/> - </property> - <property name="serviceCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`svc_cd`"/> - </property> - <property name="claimLineStatus" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`clmln_status`" length="2"/> - </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/ClaimAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ClaimAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 1858a6aab..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ClaimAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,65 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.claim.impl.ClaimImpl" entity-name="Claim" abstract="false" lazy="false" table="`pclm_nprc_clm`"> - <meta attribute="eclassName" inherit="false">Claim</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/claim</meta> - <composite-id name="claimCompositeKey" class="org.eclipse.emf.teneo.samples.emf.sample.claim.impl.ClaimCompositeKeyImpl" access="org.eclipse.emf.teneo.hibernate.mapping.property.EReferencePropertyHandler"> - <meta attribute="eclassName" inherit="false">ClaimCompositeKey</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/claim</meta> - <key-property name="claimNumber" type="java.lang.String"> - <column not-null="false" unique="false" name="`clm_nbr`" unique-key="c0"/> - </key-property> - <key-property name="claimExtensionNumber" type="java.lang.String"> - <column not-null="false" unique="false" name="`clm_ext_nbr`" unique-key="c0"/> - </key-property> - </composite-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="billingName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`billing_name`" length="50"/> - </property> - <property name="claimGroupVSPId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`clm_grp_vsp_id`" length="3"/> - </property> - <property name="claimStatus" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`clm_status`" length="2"/> - </property> - <bag name="claimLine" inverse="true" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="claim_claimline"> - <column name="`clm_nbr`" not-null="false" unique="false"/> - <column name="`clm_ext_nbr`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="ClaimLine"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.claim.impl.ClaimLineImpl" entity-name="ClaimLine" abstract="false" lazy="false" table="`pclm_nprc_clmln`"> - <meta attribute="eclassName" inherit="false">ClaimLine</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/claim</meta> - <composite-id name="claimLineCompositeKey" class="org.eclipse.emf.teneo.samples.emf.sample.claim.impl.ClaimLineCompositeKeyImpl" access="org.eclipse.emf.teneo.hibernate.mapping.property.EReferencePropertyHandler"> - <meta attribute="eclassName" inherit="false">ClaimLineCompositeKey</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/claim</meta> - <key-many-to-one name="claim" entity-name="Claim" foreign-key="claimlinecompositekey_claim" lazy="false"> - <column not-null="false" unique="false" name="`clm_nbr`" unique-key="c0"/> - <column not-null="false" unique="false" name="`clm_ext_nbr`" unique-key="c0"/> - </key-many-to-one> - <key-property name="claimLineNumber" type="java.lang.String"> - <column not-null="false" unique="false" name="`clmln_nbr`" unique-key="c0"/> - </key-property> - </composite-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="claimLineBilledAmount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal"> - <column not-null="false" unique="false" name="`clmln_bill_amt`"/> - </property> - <property name="serviceCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`svc_cd`"/> - </property> - <property name="claimLineStatus" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`clmln_status`" length="2"/> - </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/ClaimAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ClaimAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 1858a6aab..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ClaimAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,65 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.claim.impl.ClaimImpl" entity-name="Claim" abstract="false" lazy="false" table="`pclm_nprc_clm`"> - <meta attribute="eclassName" inherit="false">Claim</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/claim</meta> - <composite-id name="claimCompositeKey" class="org.eclipse.emf.teneo.samples.emf.sample.claim.impl.ClaimCompositeKeyImpl" access="org.eclipse.emf.teneo.hibernate.mapping.property.EReferencePropertyHandler"> - <meta attribute="eclassName" inherit="false">ClaimCompositeKey</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/claim</meta> - <key-property name="claimNumber" type="java.lang.String"> - <column not-null="false" unique="false" name="`clm_nbr`" unique-key="c0"/> - </key-property> - <key-property name="claimExtensionNumber" type="java.lang.String"> - <column not-null="false" unique="false" name="`clm_ext_nbr`" unique-key="c0"/> - </key-property> - </composite-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="billingName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`billing_name`" length="50"/> - </property> - <property name="claimGroupVSPId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`clm_grp_vsp_id`" length="3"/> - </property> - <property name="claimStatus" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`clm_status`" length="2"/> - </property> - <bag name="claimLine" inverse="true" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="claim_claimline"> - <column name="`clm_nbr`" not-null="false" unique="false"/> - <column name="`clm_ext_nbr`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="ClaimLine"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.claim.impl.ClaimLineImpl" entity-name="ClaimLine" abstract="false" lazy="false" table="`pclm_nprc_clmln`"> - <meta attribute="eclassName" inherit="false">ClaimLine</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/claim</meta> - <composite-id name="claimLineCompositeKey" class="org.eclipse.emf.teneo.samples.emf.sample.claim.impl.ClaimLineCompositeKeyImpl" access="org.eclipse.emf.teneo.hibernate.mapping.property.EReferencePropertyHandler"> - <meta attribute="eclassName" inherit="false">ClaimLineCompositeKey</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/claim</meta> - <key-many-to-one name="claim" entity-name="Claim" foreign-key="claimlinecompositekey_claim" lazy="false"> - <column not-null="false" unique="false" name="`clm_nbr`" unique-key="c0"/> - <column not-null="false" unique="false" name="`clm_ext_nbr`" unique-key="c0"/> - </key-many-to-one> - <key-property name="claimLineNumber" type="java.lang.String"> - <column not-null="false" unique="false" name="`clmln_nbr`" unique-key="c0"/> - </key-property> - </composite-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="claimLineBilledAmount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal"> - <column not-null="false" unique="false" name="`clmln_bill_amt`"/> - </property> - <property name="serviceCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`svc_cd`"/> - </property> - <property name="claimLineStatus" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`clmln_status`" length="2"/> - </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/EcoreAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 727f0ce8c..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,533 +0,0 @@ -<?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"> - <typedef name="ecore.EDiagnosticChain" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EDiagnosticChain</param> - </typedef> - <typedef name="ecore.EEList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EEList</param> - </typedef> - <typedef name="ecore.EEnumerator" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EEnumerator</param> - </typedef> - <typedef name="ecore.EFeatureMap" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EFeatureMap</param> - </typedef> - <typedef name="ecore.EFeatureMapEntry" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EFeatureMapEntry</param> - </typedef> - <typedef name="ecore.EJavaClass" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EJavaClass</param> - </typedef> - <typedef name="ecore.EMap" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EMap</param> - </typedef> - <typedef name="ecore.EResource" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EResource</param> - </typedef> - <typedef name="ecore.EResourceSet" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EResourceSet</param> - </typedef> - <typedef name="ecore.ETreeIterator" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">ETreeIterator</param> - </typedef> - <typedef name="type.Duration" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">Duration</param> - </typedef> - <typedef name="type.ENTITIES" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">ENTITIES</param> - </typedef> - <typedef name="type.ENTITIESBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">ENTITIESBase</param> - </typedef> - <typedef name="type.IDREFS" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">IDREFS</param> - </typedef> - <typedef name="type.IDREFSBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">IDREFSBase</param> - </typedef> - <typedef name="type.NMTOKENS" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">NMTOKENS</param> - </typedef> - <typedef name="type.NMTOKENSBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">NMTOKENSBase</param> - </typedef> - <typedef name="type.NOTATION" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">NOTATION</param> - </typedef> - <typedef name="type.QName" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">QName</param> - </typedef> - <typedef name="type.ShortObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">ShortObject</param> - </typedef> - <typedef name="type.UnsignedByteObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">UnsignedByteObject</param> - </typedef> - <class name="org.eclipse.emf.ecore.impl.BasicEObjectImpl" entity-name="ecore_EObject" abstract="false" lazy="false" discriminator-value="ecore_EObject" table="`ecore_eobject`"> - <meta attribute="eclassName">EObject</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/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 type="string"> - <column name="dtype" index="ecore_eobjectdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - </class> - <subclass name="org.eclipse.emf.ecore.impl.EModelElementImpl" entity-name="EModelElement" abstract="true" lazy="false" extends="ecore_EObject" discriminator-value="EModelElement"> - <meta attribute="eclassName">EModelElement</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <list name="eAnnotations" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="emodelelement_eannotations"> - <column name="`eannotation_emodelelement_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`emodelelement_eannotations_idx`"/> - <one-to-many entity-name="EAnnotation"/> - </list> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.ENamedElementImpl" entity-name="ENamedElement" abstract="true" lazy="false" extends="EModelElement" discriminator-value="ENamedElement"> - <meta attribute="eclassName">ENamedElement</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <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> - <subclass name="org.eclipse.emf.ecore.impl.ETypedElementImpl" entity-name="ETypedElement" abstract="true" lazy="false" extends="ENamedElement" discriminator-value="ETypedElement"> - <meta attribute="eclassName">ETypedElement</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <property name="ordered" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`ordered`"/> - </property> - <property name="unique" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`unique`"/> - </property> - <property name="lowerBound" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`lowerbound`"/> - </property> - <property name="upperBound" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`upperbound`"/> - </property> - <many-to-one name="eType" entity-name="EClassifier" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="etypedelement_etype" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`eclassifier_etype_e_id`"/> - </many-to-one> - <many-to-one name="eGenericType" entity-name="EGenericType" lazy="false" cascade="all" foreign-key="etypedelement_egenerictype" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`egenerictype_egenerictype_e_id`"/> - </many-to-one> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.EStructuralFeatureImpl" entity-name="EStructuralFeature" abstract="true" lazy="false" extends="ETypedElement" discriminator-value="EStructuralFeature"> - <meta attribute="eclassName">EStructuralFeature</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <property name="changeable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`changeable`"/> - </property> - <property name="volatile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`volatile`"/> - </property> - <property name="transient" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`transient`"/> - </property> - <property name="defaultValueLiteral" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`defaultvalueliteral`"/> - </property> - <property name="unsettable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`unsettable`"/> - </property> - <property name="derived" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`derived`"/> - </property> - <many-to-one name="eContainingClass" entity-name="EClass" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="estructuralfeature_econtainingclass" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`estructuralfeature_econtainingclass_e_id`"/> - </many-to-one> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.EAttributeImpl" entity-name="EAttribute" abstract="false" lazy="false" extends="EStructuralFeature" discriminator-value="EAttribute"> - <meta attribute="eclassName">EAttribute</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <property name="iD" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`id`"/> - </property> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.EAnnotationImpl" entity-name="EAnnotation" abstract="false" lazy="false" extends="EModelElement" discriminator-value="EAnnotation"> - <meta attribute="eclassName">EAnnotation</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <property name="source" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`source`"/> - </property> - <map name="details" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`eannotation_details_e_id`" not-null="false" unique="false"/> - </key> - <map-key type="java.lang.String"/> - <element type="java.lang.String"/> - </map> - <many-to-one name="eModelElement" entity-name="EModelElement" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eannotation_emodelelement" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eannotation_emodelelement_e_id`"/> - </many-to-one> - <list name="contents" table="`eannotation_contents`" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eannotation_contents"> - <column name="`eannotation_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`eannotation_contents_idx`"/> - <many-to-any id-type="long" meta-type="string"> - <column not-null="false" unique="false" name="`contents_type`"/> - <column not-null="false" unique="false" name="`contents_id`"/> - </many-to-any> - </list> - <list name="references" table="`eannotation_references`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="eannotation_references"> - <column name="`eannotation_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`eannotation_references_idx`"/> - <many-to-any id-type="long" meta-type="string"> - <column not-null="false" unique="false" name="`references_type`"/> - <column not-null="false" unique="false" name="`references_id`"/> - </many-to-any> - </list> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.EClassifierImpl" entity-name="EClassifier" abstract="true" lazy="false" extends="ENamedElement" discriminator-value="EClassifier"> - <meta attribute="eclassName">EClassifier</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <property name="instanceClassName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`instanceclassname`"/> - </property> - <property name="instanceTypeName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`instancetypename`"/> - </property> - <many-to-one name="ePackage" entity-name="EPackage" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eclassifier_epackage" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eclassifier_epackage_e_id`"/> - </many-to-one> - <list name="eTypeParameters" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eclassifier_etypeparameters"> - <column name="`eclassifier_etypeparameters_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eclassifier_etypeparameters_idx`"/> - <one-to-many entity-name="ETypeParameter"/> - </list> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.EClassImpl" entity-name="EClass" abstract="false" lazy="false" extends="EClassifier" discriminator-value="EClass"> - <meta attribute="eclassName">EClass</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <property name="abstract" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`abstract`"/> - </property> - <property name="interface" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`interface`"/> - </property> - <list name="eSuperTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`eclass_eclass`"> - <key/> - <list-index column="`eclass_esupertypes_idx`"/> - <many-to-many entity-name="EClass" unique="false" foreign-key="eclass_esupertypes"/> - </list> - <list name="eOperations" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eclass_eoperations"> - <column name="`eoperation_econtainingclass_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eclass_eoperations_idx`"/> - <one-to-many entity-name="EOperation"/> - </list> - <list name="eStructuralFeatures" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eclass_estructuralfeatures"> - <column name="`estructuralfeature_econtainingclass_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eclass_estructuralfeatures_idx`"/> - <one-to-many entity-name="EStructuralFeature"/> - </list> - <list name="eGenericSuperTypes" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eclass_egenericsupertypes"> - <column name="`eclass_egenericsupertypes_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eclass_egenericsupertypes_idx`"/> - <one-to-many entity-name="EGenericType"/> - </list> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.EDataTypeImpl" entity-name="EDataType" abstract="false" lazy="false" extends="EClassifier" discriminator-value="EDataType"> - <meta attribute="eclassName">EDataType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <property name="serializable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`serializable`"/> - </property> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.EEnumImpl" entity-name="EEnum" abstract="false" lazy="false" extends="EDataType" discriminator-value="EEnum"> - <meta attribute="eclassName">EEnum</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <list name="eLiterals" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eenum_eliterals"> - <column name="`eenumliteral_eenum_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eenum_eliterals_idx`"/> - <one-to-many entity-name="EEnumLiteral"/> - </list> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.EEnumLiteralImpl" entity-name="EEnumLiteral" abstract="false" lazy="false" extends="ENamedElement" discriminator-value="EEnumLiteral"> - <meta attribute="eclassName">EEnumLiteral</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`value`"/> - </property> - <property name="literal" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`literal`"/> - </property> - <many-to-one name="eEnum" entity-name="EEnum" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eenumliteral_eenum" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eenumliteral_eenum_e_id`"/> - </many-to-one> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.EFactoryImpl" entity-name="EFactory" abstract="false" lazy="false" extends="EModelElement" discriminator-value="EFactory"> - <meta attribute="eclassName">EFactory</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.EOperationImpl" entity-name="EOperation" abstract="false" lazy="false" extends="ETypedElement" discriminator-value="EOperation"> - <meta attribute="eclassName">EOperation</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <many-to-one name="eContainingClass" entity-name="EClass" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eoperation_econtainingclass" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eoperation_econtainingclass_e_id`"/> - </many-to-one> - <list name="eTypeParameters" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eoperation_etypeparameters"> - <column name="`eoperation_etypeparameters_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eoperation_etypeparameters_idx`"/> - <one-to-many entity-name="ETypeParameter"/> - </list> - <list name="eParameters" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eoperation_eparameters"> - <column name="`eparameter_eoperation_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eoperation_eparameters_idx`"/> - <one-to-many entity-name="EParameter"/> - </list> - <list name="eExceptions" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="eoperation_eexceptions"> - <column name="`eoperation_eexceptions_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eoperation_eexceptions_idx`"/> - <one-to-many entity-name="EClassifier"/> - </list> - <list name="eGenericExceptions" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eoperation_egenericexceptions"> - <column name="`eoperation_egenericexceptions_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eoperation_egenericexceptions_idx`"/> - <one-to-many entity-name="EGenericType"/> - </list> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.EPackageImpl" entity-name="EPackage" abstract="false" lazy="false" extends="ENamedElement" discriminator-value="EPackage"> - <meta attribute="eclassName">EPackage</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <property name="nsURI" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`nsuri`"/> - </property> - <property name="nsPrefix" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`nsprefix`"/> - </property> - <list name="eClassifiers" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="epackage_eclassifiers"> - <column name="`eclassifier_epackage_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`epackage_eclassifiers_idx`"/> - <one-to-many entity-name="EClassifier"/> - </list> - <list name="eSubpackages" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="epackage_esubpackages"> - <column name="`epackage_esuperpackage_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`epackage_esubpackages_idx`"/> - <one-to-many entity-name="EPackage"/> - </list> - <many-to-one name="eSuperPackage" entity-name="EPackage" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="epackage_esuperpackage" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`epackage_esuperpackage_e_id`"/> - </many-to-one> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.EParameterImpl" entity-name="EParameter" abstract="false" lazy="false" extends="ETypedElement" discriminator-value="EParameter"> - <meta attribute="eclassName">EParameter</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <many-to-one name="eOperation" entity-name="EOperation" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eparameter_eoperation" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eparameter_eoperation_e_id`"/> - </many-to-one> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.EReferenceImpl" entity-name="EReference" abstract="false" lazy="false" extends="EStructuralFeature" discriminator-value="EReference"> - <meta attribute="eclassName">EReference</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <property name="containment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`containment`"/> - </property> - <property name="resolveProxies" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`resolveproxies`"/> - </property> - <many-to-one name="eOpposite" entity-name="EReference" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="ereference_eopposite" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`ereference_eopposite_e_id`"/> - </many-to-one> - <list name="eKeys" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="ereference_ekeys"> - <column name="`ereference_ekeys_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`ereference_ekeys_idx`"/> - <one-to-many entity-name="EAttribute"/> - </list> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.EGenericTypeImpl" entity-name="EGenericType" abstract="false" lazy="false" extends="ecore_EObject" discriminator-value="EGenericType"> - <meta attribute="eclassName">EGenericType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <many-to-one name="eUpperBound" entity-name="EGenericType" lazy="false" cascade="all" foreign-key="egenerictype_eupperbound" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`egenerictype_eupperbound_e_id`"/> - </many-to-one> - <list name="eTypeArguments" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="egenerictype_etypearguments"> - <column name="`egenerictype_etypearguments_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`egenerictype_etypearguments_idx`"/> - <one-to-many entity-name="EGenericType"/> - </list> - <many-to-one name="eLowerBound" entity-name="EGenericType" lazy="false" cascade="all" foreign-key="egenerictype_elowerbound" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`egenerictype_elowerbound_e_id`"/> - </many-to-one> - <many-to-one name="eTypeParameter" entity-name="ETypeParameter" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="egenerictype_etypeparameter" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`etypeparameter_etypeparameter_e_id`"/> - </many-to-one> - <many-to-one name="eClassifier" entity-name="EClassifier" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="egenerictype_eclassifier" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`eclassifier_eclassifier_e_id`"/> - </many-to-one> - </subclass> - <subclass name="org.eclipse.emf.ecore.impl.ETypeParameterImpl" entity-name="ETypeParameter" abstract="false" lazy="false" extends="ENamedElement" discriminator-value="ETypeParameter"> - <meta attribute="eclassName">ETypeParameter</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <list name="eBounds" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="etypeparameter_ebounds"> - <column name="`etypeparameter_ebounds_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`etypeparameter_ebounds_idx`"/> - <one-to-many entity-name="EGenericType"/> - </list> - </subclass> - <class name="org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl" entity-name="AnyType" abstract="false" lazy="false" discriminator-value="AnyType" table="`anytype`"> - <meta attribute="eclassName">AnyType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</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 type="string"> - <column name="dtype" index="anytypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="mixed" table="`anytype_mixed`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`anytype_mixed_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`anytype_mixed_idx`"/> - <one-to-many entity-name="AnyType_mixed"/> - </list> - <list name="anyAttribute" table="`anytype_anyattribute`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`anytype_anyattribute_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`anytype_anyattribute_idx`"/> - <one-to-many entity-name="AnyType_anyAttribute"/> - </list> - </class> - <class entity-name="AnyType_mixed" lazy="false" table="`anytype_mixed`"> - <meta attribute="featureMap">AnyType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <list name="any" table="`mixed_anytype_any`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`mixed_anytype_any_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`mixed_anytype_any_idx`"/> - <one-to-many entity-name="AnyType_any"/> - </list> - <list name="anyAttribute" table="`mixed_anytype_anyattribute`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`mixed_anytype_anyattribute_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`mixed_anytype_anyattribute_idx`"/> - <one-to-many entity-name="AnyType_anyAttribute"/> - </list> - <property name="fme_mixed_text" type="java.lang.String"/> - <property name="fme_mixed_cdata" type="java.lang.String"/> - <property name="fme_mixed_comment" type="java.lang.String"/> - </class> - <class entity-name="AnyType_anyAttribute" lazy="false" table="`anytype_anyattribute`"> - <meta attribute="featureMap">AnyType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - </class> - <class entity-name="AnyType_any" lazy="false" table="`anytype_any`"> - <meta attribute="featureMap">AnyType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <property name="any_fme_any_data" type="java.lang.String"/> - <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> - <column not-null="false" unique="false" name="`any_type`"/> - <column not-null="false" unique="false" name="`any_id`"/> - </any> - </class> - <class name="org.eclipse.emf.ecore.xml.type.impl.ProcessingInstructionImpl" entity-name="ProcessingInstruction" abstract="false" lazy="false" discriminator-value="ProcessingInstruction" table="`processinginstruction`"> - <meta attribute="eclassName">ProcessingInstruction</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</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 type="string"> - <column name="dtype" index="processinginstructiondtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="data" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`data`"/> - </property> - <property name="target" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`target`"/> - </property> - </class> - <subclass name="org.eclipse.emf.ecore.xml.type.impl.SimpleAnyTypeImpl" entity-name="SimpleAnyType" abstract="false" lazy="false" extends="AnyType" discriminator-value="SimpleAnyType"> - <meta attribute="eclassName">SimpleAnyType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> - <many-to-one name="instanceType" entity-name="EDataType" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="simpleanytype_instancetype" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`edatatype_instancetype_e_id`"/> - </many-to-one> - </subclass> -</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/EcoreAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 6b441b3aa..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,581 +0,0 @@ -<?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"> - <typedef name="ecore.EDiagnosticChain" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EDiagnosticChain</param> - </typedef> - <typedef name="ecore.EEList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EEList</param> - </typedef> - <typedef name="ecore.EEnumerator" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EEnumerator</param> - </typedef> - <typedef name="ecore.EFeatureMap" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EFeatureMap</param> - </typedef> - <typedef name="ecore.EFeatureMapEntry" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EFeatureMapEntry</param> - </typedef> - <typedef name="ecore.EJavaClass" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EJavaClass</param> - </typedef> - <typedef name="ecore.EMap" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EMap</param> - </typedef> - <typedef name="ecore.EResource" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EResource</param> - </typedef> - <typedef name="ecore.EResourceSet" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EResourceSet</param> - </typedef> - <typedef name="ecore.ETreeIterator" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">ETreeIterator</param> - </typedef> - <typedef name="type.Duration" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">Duration</param> - </typedef> - <typedef name="type.ENTITIES" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">ENTITIES</param> - </typedef> - <typedef name="type.ENTITIESBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">ENTITIESBase</param> - </typedef> - <typedef name="type.IDREFS" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">IDREFS</param> - </typedef> - <typedef name="type.IDREFSBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">IDREFSBase</param> - </typedef> - <typedef name="type.NMTOKENS" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">NMTOKENS</param> - </typedef> - <typedef name="type.NMTOKENSBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">NMTOKENSBase</param> - </typedef> - <typedef name="type.NOTATION" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">NOTATION</param> - </typedef> - <typedef name="type.QName" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">QName</param> - </typedef> - <typedef name="type.ShortObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">ShortObject</param> - </typedef> - <typedef name="type.UnsignedByteObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">UnsignedByteObject</param> - </typedef> - <class name="org.eclipse.emf.ecore.impl.BasicEObjectImpl" entity-name="ecore_EObject" abstract="false" lazy="false" table="`ecore_eobject`"> - <meta attribute="eclassName">EObject</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/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> - </class> - <joined-subclass name="org.eclipse.emf.ecore.impl.EModelElementImpl" entity-name="EModelElement" abstract="true" lazy="false" extends="ecore_EObject" table="`emodelelement`"> - <meta attribute="eclassName">EModelElement</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`ecore_eobject_e_id`"/> - </key> - <list name="eAnnotations" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="emodelelement_eannotations"> - <column name="`eannotation_emodelelement_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`emodelelement_eannotations_idx`"/> - <one-to-many entity-name="EAnnotation"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.ENamedElementImpl" entity-name="ENamedElement" abstract="true" lazy="false" extends="EModelElement" table="`enamedelement`"> - <meta attribute="eclassName">ENamedElement</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`emodelelement_e_id`"/> - </key> - <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> - <joined-subclass name="org.eclipse.emf.ecore.impl.ETypedElementImpl" entity-name="ETypedElement" abstract="true" lazy="false" extends="ENamedElement" table="`etypedelement`"> - <meta attribute="eclassName">ETypedElement</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`enamedelement_e_id`"/> - </key> - <property name="ordered" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`ordered`"/> - </property> - <property name="unique" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`unique`"/> - </property> - <property name="lowerBound" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`lowerbound`"/> - </property> - <property name="upperBound" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`upperbound`"/> - </property> - <many-to-one name="eType" entity-name="EClassifier" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="etypedelement_etype" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`eclassifier_etype_e_id`"/> - </many-to-one> - <many-to-one name="eGenericType" entity-name="EGenericType" lazy="false" cascade="all" foreign-key="etypedelement_egenerictype" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`egenerictype_egenerictype_e_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EStructuralFeatureImpl" entity-name="EStructuralFeature" abstract="true" lazy="false" extends="ETypedElement" table="`estructuralfeature`"> - <meta attribute="eclassName">EStructuralFeature</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`etypedelement_e_id`"/> - </key> - <property name="changeable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`changeable`"/> - </property> - <property name="volatile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`volatile`"/> - </property> - <property name="transient" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`transient`"/> - </property> - <property name="defaultValueLiteral" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`defaultvalueliteral`"/> - </property> - <property name="unsettable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`unsettable`"/> - </property> - <property name="derived" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`derived`"/> - </property> - <many-to-one name="eContainingClass" entity-name="EClass" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="estructuralfeature_econtainingclass" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`estructuralfeature_econtainingclass_e_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EAttributeImpl" entity-name="EAttribute" abstract="false" lazy="false" extends="EStructuralFeature" table="`eattribute`"> - <meta attribute="eclassName">EAttribute</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`estructuralfeature_e_id`"/> - </key> - <property name="iD" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`id`"/> - </property> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EAnnotationImpl" entity-name="EAnnotation" abstract="false" lazy="false" extends="EModelElement" table="`eannotation`"> - <meta attribute="eclassName">EAnnotation</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`emodelelement_e_id`"/> - </key> - <property name="source" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`source`"/> - </property> - <map name="details" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`eannotation_details_e_id`" not-null="false" unique="false"/> - </key> - <map-key type="java.lang.String"/> - <element type="java.lang.String"/> - </map> - <many-to-one name="eModelElement" entity-name="EModelElement" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eannotation_emodelelement" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eannotation_emodelelement_e_id`"/> - </many-to-one> - <list name="contents" table="`eannotation_contents`" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eannotation_contents"> - <column name="`eannotation_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`eannotation_contents_idx`"/> - <many-to-any id-type="long" meta-type="string"> - <column not-null="false" unique="false" name="`contents_type`"/> - <column not-null="false" unique="false" name="`contents_id`"/> - </many-to-any> - </list> - <list name="references" table="`eannotation_references`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="eannotation_references"> - <column name="`eannotation_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`eannotation_references_idx`"/> - <many-to-any id-type="long" meta-type="string"> - <column not-null="false" unique="false" name="`references_type`"/> - <column not-null="false" unique="false" name="`references_id`"/> - </many-to-any> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EClassifierImpl" entity-name="EClassifier" abstract="true" lazy="false" extends="ENamedElement" table="`eclassifier`"> - <meta attribute="eclassName">EClassifier</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`enamedelement_e_id`"/> - </key> - <property name="instanceClassName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`instanceclassname`"/> - </property> - <property name="instanceTypeName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`instancetypename`"/> - </property> - <many-to-one name="ePackage" entity-name="EPackage" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eclassifier_epackage" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eclassifier_epackage_e_id`"/> - </many-to-one> - <list name="eTypeParameters" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eclassifier_etypeparameters"> - <column name="`eclassifier_etypeparameters_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eclassifier_etypeparameters_idx`"/> - <one-to-many entity-name="ETypeParameter"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EClassImpl" entity-name="EClass" abstract="false" lazy="false" extends="EClassifier" table="`eclass`"> - <meta attribute="eclassName">EClass</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`eclassifier_e_id`"/> - </key> - <property name="abstract" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`abstract`"/> - </property> - <property name="interface" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`interface`"/> - </property> - <list name="eSuperTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`eclass_eclass`"> - <key/> - <list-index column="`eclass_esupertypes_idx`"/> - <many-to-many entity-name="EClass" unique="false" foreign-key="eclass_esupertypes"/> - </list> - <list name="eOperations" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eclass_eoperations"> - <column name="`eoperation_econtainingclass_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eclass_eoperations_idx`"/> - <one-to-many entity-name="EOperation"/> - </list> - <list name="eStructuralFeatures" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eclass_estructuralfeatures"> - <column name="`estructuralfeature_econtainingclass_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eclass_estructuralfeatures_idx`"/> - <one-to-many entity-name="EStructuralFeature"/> - </list> - <list name="eGenericSuperTypes" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eclass_egenericsupertypes"> - <column name="`eclass_egenericsupertypes_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eclass_egenericsupertypes_idx`"/> - <one-to-many entity-name="EGenericType"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EDataTypeImpl" entity-name="EDataType" abstract="false" lazy="false" extends="EClassifier" table="`edatatype`"> - <meta attribute="eclassName">EDataType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`eclassifier_e_id`"/> - </key> - <property name="serializable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`serializable`"/> - </property> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EEnumImpl" entity-name="EEnum" abstract="false" lazy="false" extends="EDataType" table="`eenum`"> - <meta attribute="eclassName">EEnum</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`edatatype_e_id`"/> - </key> - <list name="eLiterals" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eenum_eliterals"> - <column name="`eenumliteral_eenum_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eenum_eliterals_idx`"/> - <one-to-many entity-name="EEnumLiteral"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EEnumLiteralImpl" entity-name="EEnumLiteral" abstract="false" lazy="false" extends="ENamedElement" table="`eenumliteral`"> - <meta attribute="eclassName">EEnumLiteral</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`enamedelement_e_id`"/> - </key> - <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`value`"/> - </property> - <property name="literal" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`literal`"/> - </property> - <many-to-one name="eEnum" entity-name="EEnum" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eenumliteral_eenum" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eenumliteral_eenum_e_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EFactoryImpl" entity-name="EFactory" abstract="false" lazy="false" extends="EModelElement" table="`efactory`"> - <meta attribute="eclassName">EFactory</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`emodelelement_e_id`"/> - </key> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EOperationImpl" entity-name="EOperation" abstract="false" lazy="false" extends="ETypedElement" table="`eoperation`"> - <meta attribute="eclassName">EOperation</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`etypedelement_e_id`"/> - </key> - <many-to-one name="eContainingClass" entity-name="EClass" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eoperation_econtainingclass" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eoperation_econtainingclass_e_id`"/> - </many-to-one> - <list name="eTypeParameters" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eoperation_etypeparameters"> - <column name="`eoperation_etypeparameters_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eoperation_etypeparameters_idx`"/> - <one-to-many entity-name="ETypeParameter"/> - </list> - <list name="eParameters" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eoperation_eparameters"> - <column name="`eparameter_eoperation_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eoperation_eparameters_idx`"/> - <one-to-many entity-name="EParameter"/> - </list> - <list name="eExceptions" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="eoperation_eexceptions"> - <column name="`eoperation_eexceptions_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eoperation_eexceptions_idx`"/> - <one-to-many entity-name="EClassifier"/> - </list> - <list name="eGenericExceptions" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eoperation_egenericexceptions"> - <column name="`eoperation_egenericexceptions_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eoperation_egenericexceptions_idx`"/> - <one-to-many entity-name="EGenericType"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EPackageImpl" entity-name="EPackage" abstract="false" lazy="false" extends="ENamedElement" table="`epackage`"> - <meta attribute="eclassName">EPackage</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`enamedelement_e_id`"/> - </key> - <property name="nsURI" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`nsuri`"/> - </property> - <property name="nsPrefix" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`nsprefix`"/> - </property> - <list name="eClassifiers" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="epackage_eclassifiers"> - <column name="`eclassifier_epackage_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`epackage_eclassifiers_idx`"/> - <one-to-many entity-name="EClassifier"/> - </list> - <list name="eSubpackages" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="epackage_esubpackages"> - <column name="`epackage_esuperpackage_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`epackage_esubpackages_idx`"/> - <one-to-many entity-name="EPackage"/> - </list> - <many-to-one name="eSuperPackage" entity-name="EPackage" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="epackage_esuperpackage" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`epackage_esuperpackage_e_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EParameterImpl" entity-name="EParameter" abstract="false" lazy="false" extends="ETypedElement" table="`eparameter`"> - <meta attribute="eclassName">EParameter</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`etypedelement_e_id`"/> - </key> - <many-to-one name="eOperation" entity-name="EOperation" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eparameter_eoperation" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eparameter_eoperation_e_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EReferenceImpl" entity-name="EReference" abstract="false" lazy="false" extends="EStructuralFeature" table="`ereference`"> - <meta attribute="eclassName">EReference</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`estructuralfeature_e_id`"/> - </key> - <property name="containment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`containment`"/> - </property> - <property name="resolveProxies" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`resolveproxies`"/> - </property> - <many-to-one name="eOpposite" entity-name="EReference" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="ereference_eopposite" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`ereference_eopposite_e_id`"/> - </many-to-one> - <list name="eKeys" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="ereference_ekeys"> - <column name="`ereference_ekeys_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`ereference_ekeys_idx`"/> - <one-to-many entity-name="EAttribute"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EGenericTypeImpl" entity-name="EGenericType" abstract="false" lazy="false" extends="ecore_EObject" table="`egenerictype`"> - <meta attribute="eclassName">EGenericType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`ecore_eobject_e_id`"/> - </key> - <many-to-one name="eUpperBound" entity-name="EGenericType" lazy="false" cascade="all" foreign-key="egenerictype_eupperbound" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`egenerictype_eupperbound_e_id`"/> - </many-to-one> - <list name="eTypeArguments" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="egenerictype_etypearguments"> - <column name="`egenerictype_etypearguments_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`egenerictype_etypearguments_idx`"/> - <one-to-many entity-name="EGenericType"/> - </list> - <many-to-one name="eLowerBound" entity-name="EGenericType" lazy="false" cascade="all" foreign-key="egenerictype_elowerbound" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`egenerictype_elowerbound_e_id`"/> - </many-to-one> - <many-to-one name="eTypeParameter" entity-name="ETypeParameter" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="egenerictype_etypeparameter" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`etypeparameter_etypeparameter_e_id`"/> - </many-to-one> - <many-to-one name="eClassifier" entity-name="EClassifier" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="egenerictype_eclassifier" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`eclassifier_eclassifier_e_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.ETypeParameterImpl" entity-name="ETypeParameter" abstract="false" lazy="false" extends="ENamedElement" table="`etypeparameter`"> - <meta attribute="eclassName">ETypeParameter</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`enamedelement_e_id`"/> - </key> - <list name="eBounds" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="etypeparameter_ebounds"> - <column name="`etypeparameter_ebounds_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`etypeparameter_ebounds_idx`"/> - <one-to-many entity-name="EGenericType"/> - </list> - </joined-subclass> - <class name="org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl" entity-name="AnyType" abstract="false" lazy="false" table="`anytype`"> - <meta attribute="eclassName">AnyType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</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="mixed" table="`anytype_mixed`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`anytype_mixed_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`anytype_mixed_idx`"/> - <one-to-many entity-name="AnyType_mixed"/> - </list> - <list name="anyAttribute" table="`anytype_anyattribute`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`anytype_anyattribute_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`anytype_anyattribute_idx`"/> - <one-to-many entity-name="AnyType_anyAttribute"/> - </list> - </class> - <class entity-name="AnyType_mixed" lazy="false" table="`anytype_mixed`"> - <meta attribute="featureMap">AnyType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <list name="any" table="`mixed_anytype_any`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`mixed_anytype_any_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`mixed_anytype_any_idx`"/> - <one-to-many entity-name="AnyType_any"/> - </list> - <list name="anyAttribute" table="`mixed_anytype_anyattribute`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`mixed_anytype_anyattribute_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`mixed_anytype_anyattribute_idx`"/> - <one-to-many entity-name="AnyType_anyAttribute"/> - </list> - <property name="fme_mixed_text" type="java.lang.String"/> - <property name="fme_mixed_cdata" type="java.lang.String"/> - <property name="fme_mixed_comment" type="java.lang.String"/> - </class> - <class entity-name="AnyType_anyAttribute" lazy="false" table="`anytype_anyattribute`"> - <meta attribute="featureMap">AnyType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - </class> - <class entity-name="AnyType_any" lazy="false" table="`anytype_any`"> - <meta attribute="featureMap">AnyType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <property name="any_fme_any_data" type="java.lang.String"/> - <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> - <column not-null="false" unique="false" name="`any_type`"/> - <column not-null="false" unique="false" name="`any_id`"/> - </any> - </class> - <class name="org.eclipse.emf.ecore.xml.type.impl.ProcessingInstructionImpl" entity-name="ProcessingInstruction" abstract="false" lazy="false" table="`processinginstruction`"> - <meta attribute="eclassName">ProcessingInstruction</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</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="data" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`data`"/> - </property> - <property name="target" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`target`"/> - </property> - </class> - <joined-subclass name="org.eclipse.emf.ecore.xml.type.impl.SimpleAnyTypeImpl" entity-name="SimpleAnyType" abstract="false" lazy="false" extends="AnyType" table="`simpleanytype`"> - <meta attribute="eclassName">SimpleAnyType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> - <key> - <column name="`anytype_e_id`"/> - </key> - <many-to-one name="instanceType" entity-name="EDataType" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="simpleanytype_instancetype" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`edatatype_instancetype_e_id`"/> - </many-to-one> - </joined-subclass> -</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/EcoreAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index f00ce5948..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,583 +0,0 @@ -<?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"> - <typedef name="ecore.EDiagnosticChain" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EDiagnosticChain</param> - </typedef> - <typedef name="ecore.EEList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EEList</param> - </typedef> - <typedef name="ecore.EEnumerator" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EEnumerator</param> - </typedef> - <typedef name="ecore.EFeatureMap" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EFeatureMap</param> - </typedef> - <typedef name="ecore.EFeatureMapEntry" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EFeatureMapEntry</param> - </typedef> - <typedef name="ecore.EJavaClass" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EJavaClass</param> - </typedef> - <typedef name="ecore.EMap" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EMap</param> - </typedef> - <typedef name="ecore.EResource" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EResource</param> - </typedef> - <typedef name="ecore.EResourceSet" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">EResourceSet</param> - </typedef> - <typedef name="ecore.ETreeIterator" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2002/Ecore</param> - <param name="edatatype">ETreeIterator</param> - </typedef> - <typedef name="type.Duration" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">Duration</param> - </typedef> - <typedef name="type.ENTITIES" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">ENTITIES</param> - </typedef> - <typedef name="type.ENTITIESBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">ENTITIESBase</param> - </typedef> - <typedef name="type.IDREFS" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">IDREFS</param> - </typedef> - <typedef name="type.IDREFSBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">IDREFSBase</param> - </typedef> - <typedef name="type.NMTOKENS" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">NMTOKENS</param> - </typedef> - <typedef name="type.NMTOKENSBase" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">NMTOKENSBase</param> - </typedef> - <typedef name="type.NOTATION" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">NOTATION</param> - </typedef> - <typedef name="type.QName" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">QName</param> - </typedef> - <typedef name="type.ShortObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">ShortObject</param> - </typedef> - <typedef name="type.UnsignedByteObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/2003/XMLType</param> - <param name="edatatype">UnsignedByteObject</param> - </typedef> - <class name="org.eclipse.emf.ecore.impl.BasicEObjectImpl" entity-name="ecore_EObject" abstract="false" lazy="false" table="`ecore_eobject`"> - <meta attribute="eclassName">EObject</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/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> - </class> - <joined-subclass name="org.eclipse.emf.ecore.impl.EModelElementImpl" entity-name="EModelElement" abstract="true" lazy="false" extends="ecore_EObject" table="`emodelelement`"> - <meta attribute="eclassName">EModelElement</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`ecore_eobject_e_id`"/> - </key> - <list name="eAnnotations" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="emodelelement_eannotations"> - <column name="`eannotation_emodelelement_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`emodelelement_eannotations_idx`"/> - <one-to-many entity-name="EAnnotation"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.ENamedElementImpl" entity-name="ENamedElement" abstract="true" lazy="false" extends="EModelElement" table="`enamedelement`"> - <meta attribute="eclassName">ENamedElement</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`emodelelement_e_id`"/> - </key> - <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> - <joined-subclass name="org.eclipse.emf.ecore.impl.ETypedElementImpl" entity-name="ETypedElement" abstract="true" lazy="false" extends="ENamedElement" table="`etypedelement`"> - <meta attribute="eclassName">ETypedElement</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`enamedelement_e_id`"/> - </key> - <property name="ordered" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`ordered`"/> - </property> - <property name="unique" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`unique`"/> - </property> - <property name="lowerBound" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`lowerbound`"/> - </property> - <property name="upperBound" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`upperbound`"/> - </property> - <many-to-one name="eType" entity-name="EClassifier" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="etypedelement_etype" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`eclassifier_etype_e_id`"/> - </many-to-one> - <many-to-one name="eGenericType" entity-name="EGenericType" lazy="false" cascade="all" foreign-key="etypedelement_egenerictype" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`egenerictype_egenerictype_e_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EStructuralFeatureImpl" entity-name="EStructuralFeature" abstract="true" lazy="false" extends="ETypedElement" table="`estructuralfeature`"> - <meta attribute="eclassName">EStructuralFeature</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`etypedelement_e_id`"/> - </key> - <property name="changeable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`changeable`"/> - </property> - <property name="volatile" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`volatile`"/> - </property> - <property name="transient" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`transient`"/> - </property> - <property name="defaultValueLiteral" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`defaultvalueliteral`"/> - </property> - <property name="unsettable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`unsettable`"/> - </property> - <property name="derived" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`derived`"/> - </property> - <many-to-one name="eContainingClass" entity-name="EClass" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="estructuralfeature_econtainingclass" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`estructuralfeature_econtainingclass_e_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EAttributeImpl" entity-name="EAttribute" abstract="false" lazy="false" extends="EStructuralFeature" table="`eattribute`"> - <meta attribute="eclassName">EAttribute</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`estructuralfeature_e_id`"/> - </key> - <property name="iD" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`id`"/> - </property> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EAnnotationImpl" entity-name="EAnnotation" abstract="false" lazy="false" extends="EModelElement" table="`eannotation`"> - <meta attribute="eclassName">EAnnotation</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`emodelelement_e_id`"/> - </key> - <property name="source" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`source`"/> - </property> - <map name="details" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`eannotation_details_e_id`" not-null="false" unique="false"/> - </key> - <map-key type="java.lang.String"/> - <element type="java.lang.String"/> - </map> - <many-to-one name="eModelElement" entity-name="EModelElement" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eannotation_emodelelement" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eannotation_emodelelement_e_id`"/> - </many-to-one> - <list name="contents" table="`eannotation_contents`" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eannotation_contents"> - <column name="`eannotation_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`eannotation_contents_idx`"/> - <many-to-any id-type="long" meta-type="string"> - <column not-null="false" unique="false" name="`contents_type`"/> - <column not-null="false" unique="false" name="`contents_id`"/> - </many-to-any> - </list> - <list name="references" table="`eannotation_references`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="eannotation_references"> - <column name="`eannotation_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`eannotation_references_idx`"/> - <many-to-any id-type="long" meta-type="string"> - <column not-null="false" unique="false" name="`references_type`"/> - <column not-null="false" unique="false" name="`references_id`"/> - </many-to-any> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EClassifierImpl" entity-name="EClassifier" abstract="true" lazy="false" extends="ENamedElement" table="`eclassifier`"> - <meta attribute="eclassName">EClassifier</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`enamedelement_e_id`"/> - </key> - <property name="instanceClassName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`instanceclassname`"/> - </property> - <property name="instanceTypeName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`instancetypename`"/> - </property> - <many-to-one name="ePackage" entity-name="EPackage" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eclassifier_epackage" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eclassifier_epackage_e_id`"/> - </many-to-one> - <list name="eTypeParameters" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eclassifier_etypeparameters"> - <column name="`eclassifier_etypeparameters_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eclassifier_etypeparameters_idx`"/> - <one-to-many entity-name="ETypeParameter"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EClassImpl" entity-name="EClass" abstract="false" lazy="false" extends="EClassifier" table="`eclass`"> - <meta attribute="eclassName">EClass</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`eclassifier_e_id`"/> - </key> - <property name="abstract" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`abstract`"/> - </property> - <property name="interface" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`interface`"/> - </property> - <list name="eSuperTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="eclass_esupertypes"> - <column name="`eclass_esupertypes_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eclass_esupertypes_idx`"/> - <one-to-many entity-name="EClass"/> - </list> - <list name="eOperations" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eclass_eoperations"> - <column name="`eoperation_econtainingclass_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eclass_eoperations_idx`"/> - <one-to-many entity-name="EOperation"/> - </list> - <list name="eStructuralFeatures" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eclass_estructuralfeatures"> - <column name="`estructuralfeature_econtainingclass_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eclass_estructuralfeatures_idx`"/> - <one-to-many entity-name="EStructuralFeature"/> - </list> - <list name="eGenericSuperTypes" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eclass_egenericsupertypes"> - <column name="`eclass_egenericsupertypes_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eclass_egenericsupertypes_idx`"/> - <one-to-many entity-name="EGenericType"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EDataTypeImpl" entity-name="EDataType" abstract="false" lazy="false" extends="EClassifier" table="`edatatype`"> - <meta attribute="eclassName">EDataType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`eclassifier_e_id`"/> - </key> - <property name="serializable" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`serializable`"/> - </property> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EEnumImpl" entity-name="EEnum" abstract="false" lazy="false" extends="EDataType" table="`eenum`"> - <meta attribute="eclassName">EEnum</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`edatatype_e_id`"/> - </key> - <list name="eLiterals" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eenum_eliterals"> - <column name="`eenumliteral_eenum_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eenum_eliterals_idx`"/> - <one-to-many entity-name="EEnumLiteral"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EEnumLiteralImpl" entity-name="EEnumLiteral" abstract="false" lazy="false" extends="ENamedElement" table="`eenumliteral`"> - <meta attribute="eclassName">EEnumLiteral</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`enamedelement_e_id`"/> - </key> - <property name="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`value`"/> - </property> - <property name="literal" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`literal`"/> - </property> - <many-to-one name="eEnum" entity-name="EEnum" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eenumliteral_eenum" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eenumliteral_eenum_e_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EFactoryImpl" entity-name="EFactory" abstract="false" lazy="false" extends="EModelElement" table="`efactory`"> - <meta attribute="eclassName">EFactory</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`emodelelement_e_id`"/> - </key> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EOperationImpl" entity-name="EOperation" abstract="false" lazy="false" extends="ETypedElement" table="`eoperation`"> - <meta attribute="eclassName">EOperation</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`etypedelement_e_id`"/> - </key> - <many-to-one name="eContainingClass" entity-name="EClass" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eoperation_econtainingclass" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eoperation_econtainingclass_e_id`"/> - </many-to-one> - <list name="eTypeParameters" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eoperation_etypeparameters"> - <column name="`eoperation_etypeparameters_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eoperation_etypeparameters_idx`"/> - <one-to-many entity-name="ETypeParameter"/> - </list> - <list name="eParameters" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eoperation_eparameters"> - <column name="`eparameter_eoperation_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eoperation_eparameters_idx`"/> - <one-to-many entity-name="EParameter"/> - </list> - <list name="eExceptions" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="eoperation_eexceptions"> - <column name="`eoperation_eexceptions_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eoperation_eexceptions_idx`"/> - <one-to-many entity-name="EClassifier"/> - </list> - <list name="eGenericExceptions" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="eoperation_egenericexceptions"> - <column name="`eoperation_egenericexceptions_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`eoperation_egenericexceptions_idx`"/> - <one-to-many entity-name="EGenericType"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EPackageImpl" entity-name="EPackage" abstract="false" lazy="false" extends="ENamedElement" table="`epackage`"> - <meta attribute="eclassName">EPackage</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`enamedelement_e_id`"/> - </key> - <property name="nsURI" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`nsuri`"/> - </property> - <property name="nsPrefix" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`nsprefix`"/> - </property> - <list name="eClassifiers" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="epackage_eclassifiers"> - <column name="`eclassifier_epackage_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`epackage_eclassifiers_idx`"/> - <one-to-many entity-name="EClassifier"/> - </list> - <list name="eSubpackages" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="epackage_esubpackages"> - <column name="`epackage_esuperpackage_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`epackage_esubpackages_idx`"/> - <one-to-many entity-name="EPackage"/> - </list> - <many-to-one name="eSuperPackage" entity-name="EPackage" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="epackage_esuperpackage" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`epackage_esuperpackage_e_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EParameterImpl" entity-name="EParameter" abstract="false" lazy="false" extends="ETypedElement" table="`eparameter`"> - <meta attribute="eclassName">EParameter</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`etypedelement_e_id`"/> - </key> - <many-to-one name="eOperation" entity-name="EOperation" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="eparameter_eoperation" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`eparameter_eoperation_e_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EReferenceImpl" entity-name="EReference" abstract="false" lazy="false" extends="EStructuralFeature" table="`ereference`"> - <meta attribute="eclassName">EReference</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`estructuralfeature_e_id`"/> - </key> - <property name="containment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`containment`"/> - </property> - <property name="resolveProxies" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`resolveproxies`"/> - </property> - <many-to-one name="eOpposite" entity-name="EReference" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="ereference_eopposite" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`ereference_eopposite_e_id`"/> - </many-to-one> - <list name="eKeys" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="ereference_ekeys"> - <column name="`ereference_ekeys_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`ereference_ekeys_idx`"/> - <one-to-many entity-name="EAttribute"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.EGenericTypeImpl" entity-name="EGenericType" abstract="false" lazy="false" extends="ecore_EObject" table="`egenerictype`"> - <meta attribute="eclassName">EGenericType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`ecore_eobject_e_id`"/> - </key> - <many-to-one name="eUpperBound" entity-name="EGenericType" lazy="false" cascade="all" foreign-key="egenerictype_eupperbound" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`egenerictype_eupperbound_e_id`"/> - </many-to-one> - <list name="eTypeArguments" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="egenerictype_etypearguments"> - <column name="`egenerictype_etypearguments_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`egenerictype_etypearguments_idx`"/> - <one-to-many entity-name="EGenericType"/> - </list> - <many-to-one name="eLowerBound" entity-name="EGenericType" lazy="false" cascade="all" foreign-key="egenerictype_elowerbound" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`egenerictype_elowerbound_e_id`"/> - </many-to-one> - <many-to-one name="eTypeParameter" entity-name="ETypeParameter" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="egenerictype_etypeparameter" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`etypeparameter_etypeparameter_e_id`"/> - </many-to-one> - <many-to-one name="eClassifier" entity-name="EClassifier" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="egenerictype_eclassifier" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`eclassifier_eclassifier_e_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.ecore.impl.ETypeParameterImpl" entity-name="ETypeParameter" abstract="false" lazy="false" extends="ENamedElement" table="`etypeparameter`"> - <meta attribute="eclassName">ETypeParameter</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2002/Ecore</meta> - <key> - <column name="`enamedelement_e_id`"/> - </key> - <list name="eBounds" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="etypeparameter_ebounds"> - <column name="`etypeparameter_ebounds_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`etypeparameter_ebounds_idx`"/> - <one-to-many entity-name="EGenericType"/> - </list> - </joined-subclass> - <class name="org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl" entity-name="AnyType" abstract="false" lazy="false" table="`anytype`"> - <meta attribute="eclassName">AnyType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</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="mixed" table="`anytype_mixed`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`anytype_mixed_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`anytype_mixed_idx`"/> - <one-to-many entity-name="AnyType_mixed"/> - </list> - <list name="anyAttribute" table="`anytype_anyattribute`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`anytype_anyattribute_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`anytype_anyattribute_idx`"/> - <one-to-many entity-name="AnyType_anyAttribute"/> - </list> - </class> - <class entity-name="AnyType_mixed" lazy="false" table="`anytype_mixed`"> - <meta attribute="featureMap">AnyType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <list name="any" table="`mixed_anytype_any`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`mixed_anytype_any_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`mixed_anytype_any_idx`"/> - <one-to-many entity-name="AnyType_any"/> - </list> - <list name="anyAttribute" table="`mixed_anytype_anyattribute`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`mixed_anytype_anyattribute_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`mixed_anytype_anyattribute_idx`"/> - <one-to-many entity-name="AnyType_anyAttribute"/> - </list> - <property name="fme_mixed_text" type="java.lang.String"/> - <property name="fme_mixed_cdata" type="java.lang.String"/> - <property name="fme_mixed_comment" type="java.lang.String"/> - </class> - <class entity-name="AnyType_anyAttribute" lazy="false" table="`anytype_anyattribute`"> - <meta attribute="featureMap">AnyType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - </class> - <class entity-name="AnyType_any" lazy="false" table="`anytype_any`"> - <meta attribute="featureMap">AnyType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <property name="any_fme_any_data" type="java.lang.String"/> - <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all"> - <column not-null="false" unique="false" name="`any_type`"/> - <column not-null="false" unique="false" name="`any_id`"/> - </any> - </class> - <class name="org.eclipse.emf.ecore.xml.type.impl.ProcessingInstructionImpl" entity-name="ProcessingInstruction" abstract="false" lazy="false" table="`processinginstruction`"> - <meta attribute="eclassName">ProcessingInstruction</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</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="data" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`data`"/> - </property> - <property name="target" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`target`"/> - </property> - </class> - <joined-subclass name="org.eclipse.emf.ecore.xml.type.impl.SimpleAnyTypeImpl" entity-name="SimpleAnyType" abstract="false" lazy="false" extends="AnyType" table="`simpleanytype`"> - <meta attribute="eclassName">SimpleAnyType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/2003/XMLType</meta> - <key> - <column name="`anytype_e_id`"/> - </key> - <many-to-one name="instanceType" entity-name="EDataType" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="simpleanytype_instancetype" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`edatatype_instancetype_e_id`"/> - </many-to-one> - </joined-subclass> -</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/EmployeeAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EmployeeAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index afde9f553..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EmployeeAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,65 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.employee.impl.DepartmentImpl" entity-name="Department" abstract="false" lazy="false" discriminator-value="Department" table="`department`"> - <meta attribute="eclassName">Department</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Employee</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="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> - <bag name="employees" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="department_employees"> - <column name="`department_employees_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Employee"/> - <filter name="ageRange" condition="age between :fromAge and :toAge"/> - <filter name="salaryHigherThan" condition="salary > :salary"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.employee.impl.EmployeeImpl" entity-name="Employee" abstract="false" lazy="false" discriminator-value="Employee" table="`employee`"> - <meta attribute="eclassName">Employee</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Employee</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="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> - <property name="salary" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`salary`"/> - </property> - <property name="age" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`age`"/> - </property> - <property name="hireDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`hiredate`"/> - </property> - <filter name="ageRange" condition="age between :fromAge and :toAge"/> - <filter name="salaryHigherThan" condition="salary > :salary"/> - <filter name="hireDate" condition="hireDate > :date"/> - </class> - <filter-def name="hireDate"> - <filter-param name="date" type="date"/> - </filter-def> - <filter-def name="ageRange"> - <filter-param name="fromAge" type="integer"/> - <filter-param name="toAge" type="integer"/> - </filter-def> - <filter-def name="salaryHigherThan"> - <filter-param name="salary" type="integer"/> - </filter-def> -</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/EmployeeAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EmployeeAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 784f8ed2c..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EmployeeAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,63 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.employee.impl.DepartmentImpl" entity-name="Department" abstract="false" lazy="false" table="`department`"> - <meta attribute="eclassName">Department</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Employee</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <bag name="employees" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="department_employees"> - <column name="`department_employees_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Employee"/> - <filter name="ageRange" condition="age between :fromAge and :toAge"/> - <filter name="salaryHigherThan" condition="salary > :salary"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.employee.impl.EmployeeImpl" entity-name="Employee" abstract="false" lazy="false" table="`employee`"> - <meta attribute="eclassName">Employee</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Employee</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <property name="salary" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`salary`"/> - </property> - <property name="age" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`age`"/> - </property> - <property name="hireDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`hiredate`"/> - </property> - <filter name="ageRange" condition="age between :fromAge and :toAge"/> - <filter name="salaryHigherThan" condition="salary > :salary"/> - <filter name="hireDate" condition="hireDate > :date"/> - </class> - <filter-def name="hireDate"> - <filter-param name="date" type="date"/> - </filter-def> - <filter-def name="ageRange"> - <filter-param name="fromAge" type="integer"/> - <filter-param name="toAge" type="integer"/> - </filter-def> - <filter-def name="salaryHigherThan"> - <filter-param name="salary" type="integer"/> - </filter-def> -</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/EmployeeAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EmployeeAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 784f8ed2c..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EmployeeAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,63 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.employee.impl.DepartmentImpl" entity-name="Department" abstract="false" lazy="false" table="`department`"> - <meta attribute="eclassName">Department</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Employee</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <bag name="employees" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="department_employees"> - <column name="`department_employees_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Employee"/> - <filter name="ageRange" condition="age between :fromAge and :toAge"/> - <filter name="salaryHigherThan" condition="salary > :salary"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.employee.impl.EmployeeImpl" entity-name="Employee" abstract="false" lazy="false" table="`employee`"> - <meta attribute="eclassName">Employee</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Employee</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <property name="salary" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`salary`"/> - </property> - <property name="age" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`age`"/> - </property> - <property name="hireDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`hiredate`"/> - </property> - <filter name="ageRange" condition="age between :fromAge and :toAge"/> - <filter name="salaryHigherThan" condition="salary > :salary"/> - <filter name="hireDate" condition="hireDate > :date"/> - </class> - <filter-def name="hireDate"> - <filter-param name="date" type="date"/> - </filter-def> - <filter-def name="ageRange"> - <filter-param name="fromAge" type="integer"/> - <filter-param name="toAge" type="integer"/> - </filter-def> - <filter-def name="salaryHigherThan"> - <filter-param name="salary" type="integer"/> - </filter-def> -</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_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 deleted file mode 100755 index 804fa4e0b..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/FleetAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,425 +0,0 @@ -<?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 type="string"> - <column name="dtype" index="vehicledtype" length="255" not-null="true"/> - </discriminator> - <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" lazy="false" cascade="all" foreign-key="vehicle_owner" 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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="vehicle_tirespec" 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 type="string"> - <column name="dtype" index="temporaldtype" length="255" not-null="true"/> - </discriminator> - <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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="temporal_versionholder" 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" lazy="false" cascade="all" foreign-key="temporal_versionholdercontainment" 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" lazy="false" cascade="all" foreign-key="person_birthaddress" 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 type="string"> - <column name="dtype" index="vehicleinfodtype" length="255" not-null="true"/> - </discriminator> - <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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="vehicleinfo_vehicle" 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 type="string"> - <column name="dtype" index="manufacturingplantdtype" length="255" not-null="true"/> - </discriminator> - <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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="manufacturingplant_address" 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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="manufacturingplant_transportfleet" 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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="fleet_servicegarage" 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" lazy="false" cascade="all" foreign-key="garage_customershuttles" 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" lazy="false" cascade="all" foreign-key="garage_address" 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 type="string"> - <column name="dtype" index="tiredtype" length="255" not-null="true"/> - </discriminator> - <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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="temporal_versionholder" 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" lazy="false" cascade="all" foreign-key="temporal_versionholdercontainment" 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 type="string"> - <column name="dtype" index="passengervehicledtype" length="255" not-null="true"/> - </discriminator> - <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 type="string"> - <column name="dtype" index="vindtype" length="255" not-null="true"/> - </discriminator> - <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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="vin_vehicle" 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 type="string"> - <column name="dtype" index="transportationdevicedtype" length="255" not-null="true"/> - </discriminator> - <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 type="string"> - <column name="dtype" index="versionholderdtype" length="255" not-null="true"/> - </discriminator> - <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 deleted file mode 100755 index 16885c2d9..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/FleetAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,422 +0,0 @@ -<?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" inherit="false">Vehicle</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" lazy="false" cascade="all" foreign-key="vehicle_owner" 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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="vehicle_tirespec" 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" inherit="false">Temporal</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="temporal_versionholder" 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" lazy="false" cascade="all" foreign-key="temporal_versionholdercontainment" 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" inherit="false">Person</meta> - <meta attribute="epackage" inherit="false">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" lazy="false" cascade="all" foreign-key="person_birthaddress" 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" inherit="false">Address</meta> - <meta attribute="epackage" inherit="false">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" inherit="false">VehicleInfo</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="vehicleinfo_vehicle" 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" inherit="false">ManufacturingPlant</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="manufacturingplant_address" 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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="manufacturingplant_transportfleet" 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" inherit="false">Fleet</meta> - <meta attribute="epackage" inherit="false">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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="fleet_servicegarage" 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" inherit="false">Garage</meta> - <meta attribute="epackage" inherit="false">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" lazy="false" cascade="all" foreign-key="garage_customershuttles" 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" lazy="false" cascade="all" foreign-key="garage_address" 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" inherit="false">Tire</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" inherit="false">Car</meta> - <meta attribute="epackage" inherit="false">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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="temporal_versionholder" 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" lazy="false" cascade="all" foreign-key="temporal_versionholdercontainment" 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" inherit="false">Hybrid</meta> - <meta attribute="epackage" inherit="false">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" inherit="false">PassengerVehicle</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" inherit="false">EngineFactory</meta> - <meta attribute="epackage" inherit="false">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" inherit="false">USAddress</meta> - <meta attribute="epackage" inherit="false">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" inherit="false">Vin</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="vin_vehicle" 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" inherit="false">TransportationDevice</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" inherit="false">VersionHolder</meta> - <meta attribute="epackage" inherit="false">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" 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="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 deleted file mode 100755 index 16885c2d9..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/FleetAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,422 +0,0 @@ -<?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" inherit="false">Vehicle</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" lazy="false" cascade="all" foreign-key="vehicle_owner" 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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="vehicle_tirespec" 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" inherit="false">Temporal</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="temporal_versionholder" 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" lazy="false" cascade="all" foreign-key="temporal_versionholdercontainment" 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" inherit="false">Person</meta> - <meta attribute="epackage" inherit="false">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" lazy="false" cascade="all" foreign-key="person_birthaddress" 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" inherit="false">Address</meta> - <meta attribute="epackage" inherit="false">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" inherit="false">VehicleInfo</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="vehicleinfo_vehicle" 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" inherit="false">ManufacturingPlant</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="manufacturingplant_address" 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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="manufacturingplant_transportfleet" 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" inherit="false">Fleet</meta> - <meta attribute="epackage" inherit="false">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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="fleet_servicegarage" 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" inherit="false">Garage</meta> - <meta attribute="epackage" inherit="false">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" lazy="false" cascade="all" foreign-key="garage_customershuttles" 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" lazy="false" cascade="all" foreign-key="garage_address" 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" inherit="false">Tire</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" inherit="false">Car</meta> - <meta attribute="epackage" inherit="false">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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="temporal_versionholder" 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" lazy="false" cascade="all" foreign-key="temporal_versionholdercontainment" 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" inherit="false">Hybrid</meta> - <meta attribute="epackage" inherit="false">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" inherit="false">PassengerVehicle</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" inherit="false">EngineFactory</meta> - <meta attribute="epackage" inherit="false">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" inherit="false">USAddress</meta> - <meta attribute="epackage" inherit="false">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" inherit="false">Vin</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="vin_vehicle" 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" inherit="false">TransportationDevice</meta> - <meta attribute="epackage" inherit="false">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" 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> - <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" inherit="false">VersionHolder</meta> - <meta attribute="epackage" inherit="false">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" 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="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/ForumAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index ad0610123..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,129 +0,0 @@ -<?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"> - <typedef name="forum.TopicCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</param> - <param name="edatatype">TopicCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.ForumImpl" entity-name="Forum" abstract="false" lazy="false" discriminator-value="Forum" table="`forum`"> - <meta attribute="eclassName">Forum</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</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 type="string"> - <column name="dtype" index="forumdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <list name="members" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="forum_members"> - <column name="`forum_members_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`forum_members_idx`"/> - <one-to-many entity-name="Member"/> - </list> - <list name="topics" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="forum_topics"> - <column name="`forum_topics_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`forum_topics_idx`"/> - <one-to-many entity-name="Topic"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.MemberImpl" entity-name="Member" abstract="false" lazy="false" discriminator-value="Member" table="`member`"> - <meta attribute="eclassName">Member</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</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 type="string"> - <column name="dtype" index="memberdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="nickname" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`nickname`"/> - </property> - <list name="posts" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`post_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`member_posts_idx`"/> - <one-to-many entity-name="Post"/> - </list> - <list name="created" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`topic_creator_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`member_created_idx`"/> - <one-to-many entity-name="Topic"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.PostImpl" entity-name="Post" abstract="false" lazy="false" discriminator-value="Post" table="`post`"> - <meta attribute="eclassName">Post</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</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 type="string"> - <column name="dtype" index="postdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="comment" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`comment`"/> - </property> - <many-to-one name="author" entity-name="Member" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="post_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`post_author_e_id`"/> - </many-to-one> - <many-to-one name="topic" entity-name="Topic" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="post_topic" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`post_topic_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.TopicImpl" entity-name="Topic" abstract="false" lazy="false" discriminator-value="Topic" table="`topic`"> - <meta attribute="eclassName">Topic</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</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 type="string"> - <column name="dtype" index="topicdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.forum.TopicCategory</param> - <param name="eclassifier">TopicCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</param> - </type> - </property> - <many-to-one name="creator" entity-name="Member" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="topic_creator" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`topic_creator_e_id`"/> - </many-to-one> - <list name="posts" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`post_topic_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`topic_posts_idx`"/> - <one-to-many entity-name="Post"/> - </list> - </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/ForumAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 271c9eba8..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,117 +0,0 @@ -<?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"> - <typedef name="forum.TopicCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</param> - <param name="edatatype">TopicCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.ForumImpl" entity-name="Forum" abstract="false" lazy="false" table="`forum`"> - <meta attribute="eclassName" inherit="false">Forum</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</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> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <list name="members" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="forum_members"> - <column name="`forum_members_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`forum_members_idx`"/> - <one-to-many entity-name="Member"/> - </list> - <list name="topics" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="forum_topics"> - <column name="`forum_topics_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`forum_topics_idx`"/> - <one-to-many entity-name="Topic"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.MemberImpl" entity-name="Member" abstract="false" lazy="false" table="`member`"> - <meta attribute="eclassName" inherit="false">Member</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</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> - <property name="nickname" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`nickname`"/> - </property> - <list name="posts" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`post_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`member_posts_idx`"/> - <one-to-many entity-name="Post"/> - </list> - <list name="created" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`topic_creator_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`member_created_idx`"/> - <one-to-many entity-name="Topic"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.PostImpl" entity-name="Post" abstract="false" lazy="false" table="`post`"> - <meta attribute="eclassName" inherit="false">Post</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</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> - <property name="comment" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`comment`"/> - </property> - <many-to-one name="author" entity-name="Member" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="post_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`post_author_e_id`"/> - </many-to-one> - <many-to-one name="topic" entity-name="Topic" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="post_topic" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`post_topic_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.TopicImpl" entity-name="Topic" abstract="false" lazy="false" table="`topic`"> - <meta attribute="eclassName" inherit="false">Topic</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</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> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.forum.TopicCategory</param> - <param name="eclassifier">TopicCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</param> - </type> - </property> - <many-to-one name="creator" entity-name="Member" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="topic_creator" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`topic_creator_e_id`"/> - </many-to-one> - <list name="posts" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`post_topic_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`topic_posts_idx`"/> - <one-to-many entity-name="Post"/> - </list> - </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/ForumAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 271c9eba8..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ForumAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,117 +0,0 @@ -<?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"> - <typedef name="forum.TopicCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</param> - <param name="edatatype">TopicCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.ForumImpl" entity-name="Forum" abstract="false" lazy="false" table="`forum`"> - <meta attribute="eclassName" inherit="false">Forum</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</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> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <list name="members" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="forum_members"> - <column name="`forum_members_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`forum_members_idx`"/> - <one-to-many entity-name="Member"/> - </list> - <list name="topics" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="forum_topics"> - <column name="`forum_topics_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`forum_topics_idx`"/> - <one-to-many entity-name="Topic"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.MemberImpl" entity-name="Member" abstract="false" lazy="false" table="`member`"> - <meta attribute="eclassName" inherit="false">Member</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</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> - <property name="nickname" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`nickname`"/> - </property> - <list name="posts" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`post_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`member_posts_idx`"/> - <one-to-many entity-name="Post"/> - </list> - <list name="created" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`topic_creator_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`member_created_idx`"/> - <one-to-many entity-name="Topic"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.PostImpl" entity-name="Post" abstract="false" lazy="false" table="`post`"> - <meta attribute="eclassName" inherit="false">Post</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</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> - <property name="comment" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`comment`"/> - </property> - <many-to-one name="author" entity-name="Member" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="post_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`post_author_e_id`"/> - </many-to-one> - <many-to-one name="topic" entity-name="Topic" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="post_topic" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`post_topic_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.forum.impl.TopicImpl" entity-name="Topic" abstract="false" lazy="false" table="`topic`"> - <meta attribute="eclassName" inherit="false">Topic</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</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> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.forum.TopicCategory</param> - <param name="eclassifier">TopicCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/forum</param> - </type> - </property> - <many-to-one name="creator" entity-name="Member" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="topic_creator" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`topic_creator_e_id`"/> - </many-to-one> - <list name="posts" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`post_topic_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`topic_posts_idx`"/> - <one-to-many entity-name="Post"/> - </list> - </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/InventoryAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/InventoryAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 01a2281d1..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/InventoryAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,60 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.inv.impl.PTypeImpl" entity-name="PType" abstract="false" lazy="false" discriminator-value="PType" table="`ptype`"> - <meta attribute="eclassName">PType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/inv</meta> - <id name="id" type="long" unsaved-value="0"> - <column not-null="true" unique="false" name="`id`"/> - <generator class="native"/> - </id> - <discriminator type="string"> - <column name="dtype" index="ptypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`name`"/> - </property> - <many-to-one name="base" entity-name="PType" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="ptype_base" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`ptype_base_id`"/> - </many-to-one> - <bag name="subTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`ptype_base_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="PType"/> - </bag> - <bag name="subNOTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="ptype_subnotypes"> - <column name="`ptype_subnotypes_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="PType"/> - </bag> - <bag name="infoReferences" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="ptype_inforeferences"> - <column name="`ptype_inforeferences_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="PDeclaration"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.inv.impl.PDeclarationImpl" entity-name="PDeclaration" abstract="false" lazy="false" discriminator-value="PDeclaration" table="`pdeclaration`"> - <meta attribute="eclassName">PDeclaration</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/inv</meta> - <id name="id" type="long" unsaved-value="0"> - <column not-null="true" unique="false" name="`id`"/> - <generator class="native"/> - </id> - <discriminator type="string"> - <column name="dtype" index="pdeclarationdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="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 diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/InventoryAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/InventoryAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index c83a1dea1..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/InventoryAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,54 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.inv.impl.PTypeImpl" entity-name="PType" abstract="false" lazy="false" table="`ptype`"> - <meta attribute="eclassName" inherit="false">PType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/inv</meta> - <id name="id" type="long" unsaved-value="0"> - <column not-null="true" unique="false" name="`id`"/> - <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> - <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="base" entity-name="PType" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="ptype_base" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`ptype_base_id`"/> - </many-to-one> - <bag name="subTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`ptype_base_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="PType"/> - </bag> - <bag name="subNOTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="ptype_subnotypes"> - <column name="`ptype_subnotypes_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="PType"/> - </bag> - <bag name="infoReferences" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="ptype_inforeferences"> - <column name="`ptype_inforeferences_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="PDeclaration"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.inv.impl.PDeclarationImpl" entity-name="PDeclaration" abstract="false" lazy="false" table="`pdeclaration`"> - <meta attribute="eclassName" inherit="false">PDeclaration</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/inv</meta> - <id name="id" type="long" unsaved-value="0"> - <column not-null="true" unique="false" name="`id`"/> - <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> - <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 diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/InventoryAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/InventoryAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index c83a1dea1..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/InventoryAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,54 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.inv.impl.PTypeImpl" entity-name="PType" abstract="false" lazy="false" table="`ptype`"> - <meta attribute="eclassName" inherit="false">PType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/inv</meta> - <id name="id" type="long" unsaved-value="0"> - <column not-null="true" unique="false" name="`id`"/> - <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> - <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="base" entity-name="PType" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="ptype_base" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`ptype_base_id`"/> - </many-to-one> - <bag name="subTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`ptype_base_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="PType"/> - </bag> - <bag name="subNOTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="ptype_subnotypes"> - <column name="`ptype_subnotypes_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="PType"/> - </bag> - <bag name="infoReferences" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="ptype_inforeferences"> - <column name="`ptype_inforeferences_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="PDeclaration"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.inv.impl.PDeclarationImpl" entity-name="PDeclaration" abstract="false" lazy="false" table="`pdeclaration`"> - <meta attribute="eclassName" inherit="false">PDeclaration</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/inv</meta> - <id name="id" type="long" unsaved-value="0"> - <column not-null="true" unique="false" name="`id`"/> - <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> - <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 diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/JuliaAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/JuliaAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index f691b0332..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/JuliaAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,148 +0,0 @@ -<?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.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.BookDefinitionImpl" entity-name="BookDefinition" abstract="true" lazy="false" discriminator-value="BookDefinition" table="`bookdefinition`"> - <meta attribute="eclassName">BookDefinition</meta> - <meta attribute="epackage">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <id name="uniqueName" type="java.lang.String"> - <column not-null="true" unique="false" name="`uniquename`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdefinitiondtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="description" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </property> - <property name="location" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`location`"/> - </property> - </class> - <subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.AdultBooksImpl" entity-name="AdultBooks" abstract="false" lazy="false" extends="BookDefinition" discriminator-value="AdultBooks"> - <meta attribute="eclassName">AdultBooks</meta> - <meta attribute="epackage">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`title`"/> - </property> - <property name="checkedout" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`checkedout`"/> - </property> - <property name="userid" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`userid`"/> - </property> - </subclass> - <class name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.ResourceLinkImpl" entity-name="ResourceLink" abstract="true" lazy="false" discriminator-value="ResourceLink" table="`resourcelink`"> - <meta attribute="eclassName">ResourceLink</meta> - <meta attribute="epackage">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</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 type="string"> - <column name="dtype" index="resourcelinkdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - </class> - <subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.BookDefinitionResourceLinkImpl" entity-name="BookDefinitionResourceLink" abstract="false" lazy="false" extends="ResourceLink" discriminator-value="BookDefinitionResourceLink"> - <meta attribute="eclassName">BookDefinitionResourceLink</meta> - <meta attribute="epackage">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <property name="bookSubject" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`booksubject`"/> - </property> - </subclass> - <class name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.BooksInLibImpl" entity-name="BooksInLib" abstract="false" lazy="false" discriminator-value="BooksInLib" table="`booksinlib`"> - <meta attribute="eclassName">BooksInLib</meta> - <meta attribute="epackage">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</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 type="string"> - <column name="dtype" index="booksinlibdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="library" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="booksinlib_library"> - <column name="`booksinlib_library_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`booksinlib_library_idx`"/> - <one-to-many entity-name="Library"/> - </list> - </class> - <subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.ChildrenBooksImpl" entity-name="ChildrenBooks" abstract="false" lazy="false" extends="BookDefinition" discriminator-value="ChildrenBooks"> - <meta attribute="eclassName">ChildrenBooks</meta> - <meta attribute="epackage">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`title`"/> - </property> - <property name="cartoon" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`cartoon`"/> - </property> - <property name="popup" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`popup`"/> - </property> - <many-to-one name="publisherDefinitionRef" entity-name="PublisherDefinition" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="childrenbooks_publisherdefinitionref" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`publisherdefinition_publisherdefinitionref_uniquename`"/> - </many-to-one> - </subclass> - <class name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <id name="uniqueName" type="java.lang.String"> - <column not-null="true" unique="false" name="`uniquename`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="library" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_library"> - <column name="`library_library_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_library_idx`"/> - <one-to-many entity-name="Library"/> - </list> - <list name="abstractBookDefinitionGroup" table="`library_abstractbookdefinitiongroup`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_abstractbookdefinitiongroup_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_abstractbookdefinitiongroup_idx`"/> - <one-to-many entity-name="Library_abstractBookDefinitionGroup"/> - </list> - </class> - <class entity-name="Library_abstractBookDefinitionGroup" lazy="false" table="`library_abstractbookdefinitiongroup`"> - <meta attribute="featureMap">Library</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <many-to-one name="abstractBookDefinition" entity-name="BookDefinition" lazy="false" cascade="all" foreign-key="library_abstractbookdefinition" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`abstractbookdefinitiongroup_bookdefinition_abstractbookdefinition_uniquename`"/> - </many-to-one> - </class> - <subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.PublisherDefinitionImpl" entity-name="PublisherDefinition" abstract="false" lazy="false" extends="BookDefinition" discriminator-value="PublisherDefinition"> - <meta attribute="eclassName">PublisherDefinition</meta> - <meta attribute="epackage">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`title`"/> - </property> - <many-to-one name="resourceLink" entity-name="BookDefinitionResourceLink" lazy="false" cascade="all" foreign-key="publisherdefinition_resourcelink" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`bookdefinitionresourcelink_resourcelink_e_id`"/> - </many-to-one> - </subclass> -</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/JuliaAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/JuliaAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index a9d8c06c8..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/JuliaAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,148 +0,0 @@ -<?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.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.BookDefinitionImpl" entity-name="BookDefinition" abstract="true" lazy="false" table="`bookdefinition`"> - <meta attribute="eclassName" inherit="false">BookDefinition</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <id name="uniqueName" type="java.lang.String"> - <column not-null="true" unique="false" name="`uniquename`"/> - </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="description" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </property> - <property name="location" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`location`"/> - </property> - </class> - <joined-subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.AdultBooksImpl" entity-name="AdultBooks" abstract="false" lazy="false" extends="BookDefinition" table="`adultbooks`"> - <meta attribute="eclassName" inherit="false">AdultBooks</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <key> - <column name="`bookdefinition_uniquename`"/> - </key> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="checkedout" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`checkedout`"/> - </property> - <property name="userid" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`userid`"/> - </property> - </joined-subclass> - <class name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.ResourceLinkImpl" entity-name="ResourceLink" abstract="true" lazy="false" table="`resourcelink`"> - <meta attribute="eclassName" inherit="false">ResourceLink</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.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> - <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> - <joined-subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.BookDefinitionResourceLinkImpl" entity-name="BookDefinitionResourceLink" abstract="false" lazy="false" extends="ResourceLink" table="`bookdefinitionresourcelink`"> - <meta attribute="eclassName" inherit="false">BookDefinitionResourceLink</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <key> - <column name="`resourcelink_e_id`"/> - </key> - <property name="bookSubject" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`booksubject`"/> - </property> - </joined-subclass> - <class name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.BooksInLibImpl" entity-name="BooksInLib" abstract="false" lazy="false" table="`booksinlib`"> - <meta attribute="eclassName" inherit="false">BooksInLib</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.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="library" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="booksinlib_library"> - <column name="`booksinlib_library_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`booksinlib_library_idx`"/> - <one-to-many entity-name="Library"/> - </list> - </class> - <joined-subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.ChildrenBooksImpl" entity-name="ChildrenBooks" abstract="false" lazy="false" extends="BookDefinition" table="`childrenbooks`"> - <meta attribute="eclassName" inherit="false">ChildrenBooks</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <key> - <column name="`bookdefinition_uniquename`"/> - </key> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="cartoon" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`cartoon`"/> - </property> - <property name="popup" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`popup`"/> - </property> - <many-to-one name="publisherDefinitionRef" entity-name="PublisherDefinition" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="childrenbooks_publisherdefinitionref" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`publisherdefinition_publisherdefinitionref_uniquename`"/> - </many-to-one> - </joined-subclass> - <class name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <id name="uniqueName" type="java.lang.String"> - <column not-null="true" unique="false" name="`uniquename`"/> - </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="library" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_library"> - <column name="`library_library_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_library_idx`"/> - <one-to-many entity-name="Library"/> - </list> - <list name="abstractBookDefinitionGroup" table="`library_abstractbookdefinitiongroup`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_abstractbookdefinitiongroup_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_abstractbookdefinitiongroup_idx`"/> - <one-to-many entity-name="Library_abstractBookDefinitionGroup"/> - </list> - </class> - <class entity-name="Library_abstractBookDefinitionGroup" lazy="false" table="`library_abstractbookdefinitiongroup`"> - <meta attribute="featureMap" inherit="false">Library</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion" inherit="false">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <many-to-one name="abstractBookDefinition" entity-name="BookDefinition" lazy="false" cascade="all" foreign-key="library_abstractbookdefinition" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`abstractbookdefinitiongroup_bookdefinition_abstractbookdefinition_uniquename`"/> - </many-to-one> - </class> - <joined-subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.PublisherDefinitionImpl" entity-name="PublisherDefinition" abstract="false" lazy="false" extends="BookDefinition" table="`publisherdefinition`"> - <meta attribute="eclassName" inherit="false">PublisherDefinition</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <key> - <column name="`bookdefinition_uniquename`"/> - </key> - <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`title`"/> - </property> - <many-to-one name="resourceLink" entity-name="BookDefinitionResourceLink" lazy="false" cascade="all" foreign-key="publisherdefinition_resourcelink" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`bookdefinitionresourcelink_resourcelink_e_id`"/> - </many-to-one> - </joined-subclass> -</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/JuliaAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/JuliaAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index a9d8c06c8..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/JuliaAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,148 +0,0 @@ -<?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.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.BookDefinitionImpl" entity-name="BookDefinition" abstract="true" lazy="false" table="`bookdefinition`"> - <meta attribute="eclassName" inherit="false">BookDefinition</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <id name="uniqueName" type="java.lang.String"> - <column not-null="true" unique="false" name="`uniquename`"/> - </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="description" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </property> - <property name="location" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`location`"/> - </property> - </class> - <joined-subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.AdultBooksImpl" entity-name="AdultBooks" abstract="false" lazy="false" extends="BookDefinition" table="`adultbooks`"> - <meta attribute="eclassName" inherit="false">AdultBooks</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <key> - <column name="`bookdefinition_uniquename`"/> - </key> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="checkedout" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`checkedout`"/> - </property> - <property name="userid" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`userid`"/> - </property> - </joined-subclass> - <class name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.ResourceLinkImpl" entity-name="ResourceLink" abstract="true" lazy="false" table="`resourcelink`"> - <meta attribute="eclassName" inherit="false">ResourceLink</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.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> - <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> - <joined-subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.BookDefinitionResourceLinkImpl" entity-name="BookDefinitionResourceLink" abstract="false" lazy="false" extends="ResourceLink" table="`bookdefinitionresourcelink`"> - <meta attribute="eclassName" inherit="false">BookDefinitionResourceLink</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <key> - <column name="`resourcelink_e_id`"/> - </key> - <property name="bookSubject" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`booksubject`"/> - </property> - </joined-subclass> - <class name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.BooksInLibImpl" entity-name="BooksInLib" abstract="false" lazy="false" table="`booksinlib`"> - <meta attribute="eclassName" inherit="false">BooksInLib</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.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="library" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="booksinlib_library"> - <column name="`booksinlib_library_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`booksinlib_library_idx`"/> - <one-to-many entity-name="Library"/> - </list> - </class> - <joined-subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.ChildrenBooksImpl" entity-name="ChildrenBooks" abstract="false" lazy="false" extends="BookDefinition" table="`childrenbooks`"> - <meta attribute="eclassName" inherit="false">ChildrenBooks</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <key> - <column name="`bookdefinition_uniquename`"/> - </key> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="cartoon" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`cartoon`"/> - </property> - <property name="popup" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`popup`"/> - </property> - <many-to-one name="publisherDefinitionRef" entity-name="PublisherDefinition" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="childrenbooks_publisherdefinitionref" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`publisherdefinition_publisherdefinitionref_uniquename`"/> - </many-to-one> - </joined-subclass> - <class name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <id name="uniqueName" type="java.lang.String"> - <column not-null="true" unique="false" name="`uniquename`"/> - </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="library" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_library"> - <column name="`library_library_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_library_idx`"/> - <one-to-many entity-name="Library"/> - </list> - <list name="abstractBookDefinitionGroup" table="`library_abstractbookdefinitiongroup`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_abstractbookdefinitiongroup_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_abstractbookdefinitiongroup_idx`"/> - <one-to-many entity-name="Library_abstractBookDefinitionGroup"/> - </list> - </class> - <class entity-name="Library_abstractBookDefinitionGroup" lazy="false" table="`library_abstractbookdefinitiongroup`"> - <meta attribute="featureMap" inherit="false">Library</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion" inherit="false">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <many-to-one name="abstractBookDefinition" entity-name="BookDefinition" lazy="false" cascade="all" foreign-key="library_abstractbookdefinition" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`abstractbookdefinitiongroup_bookdefinition_abstractbookdefinition_uniquename`"/> - </many-to-one> - </class> - <joined-subclass name="com.ibm.websphere.appserver.schemas._6._0.ibm.portal.test.impl.PublisherDefinitionImpl" entity-name="PublisherDefinition" abstract="false" lazy="false" extends="BookDefinition" table="`publisherdefinition`"> - <meta attribute="eclassName" inherit="false">PublisherDefinition</meta> - <meta attribute="epackage" inherit="false">http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-portal-test.xsd</meta> - <key> - <column name="`bookdefinition_uniquename`"/> - </key> - <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`title`"/> - </property> - <many-to-one name="resourceLink" entity-name="BookDefinitionResourceLink" lazy="false" cascade="all" foreign-key="publisherdefinition_resourcelink" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`bookdefinitionresourcelink_resourcelink_e_id`"/> - </many-to-one> - </joined-subclass> -</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/LibraryCheckNameAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryCheckNameAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 2422801d2..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryCheckNameAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="bk_athor" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`bk_thr_d`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <discriminator type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`lb_wr_d`" not-null="false" unique="false"/> - </key> - <list-index column="`tst_indx`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="lbrr_bks"> - <column name="`lb_bk_d`" not-null="false" unique="false"/> - </key> - <list-index column="`lb_bk_dx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <discriminator type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`bk_thr_d`" not-null="false" unique="false"/> - </key> - <list-index column="`wr_bk_dx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryCheckNameAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryCheckNameAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index d80593e71..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryCheckNameAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="bk_athor" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`bk_thr_d`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" 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> - <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> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`lbrry_id`" not-null="true" unique="false"/> - </key> - <list-index column="`tst_indx`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`writr_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="lbrr_bks"> - <column name="`lb_bk_d`" not-null="false" unique="false"/> - </key> - <list-index column="`lb_bk_dx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" 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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`bk_thr_d`" not-null="false" unique="false"/> - </key> - <list-index column="`wr_bk_dx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryCheckNameAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryCheckNameAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 68dd3d1e1..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryCheckNameAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,85 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="bk_athor" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`bk_thr_d`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" 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> - <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> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`lb_wr_d`" not-null="false" unique="false"/> - </key> - <list-index column="`tst_indx`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="lbrr_bks"> - <column name="`lb_bk_d`" not-null="false" unique="false"/> - </key> - <list-index column="`lb_bk_dx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" 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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`bk_thr_d`" not-null="false" unique="false"/> - </key> - <list-index column="`wr_bk_dx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryColLengthAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryColLengthAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 8e8c2d6d7..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryColLengthAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,98 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`categ`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`bo_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`libra`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <discriminator type="string"> - <column name="dtype" index="libradtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`li_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`li_id`" not-null="false" unique="false"/> - </key> - <list-index column="`l_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`write`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <discriminator type="string"> - <column name="dtype" index="writedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`bo_id`" not-null="false" unique="false"/> - </key> - <list-index column="`w_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryColLengthAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryColLengthAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 0a6515c8e..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryColLengthAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,91 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" 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> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`categ`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`bo_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`libra`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" 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> - <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> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`li_id`" not-null="true" unique="false"/> - </key> - <list-index column="`test_`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`wr_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`li_id`" not-null="false" unique="false"/> - </key> - <list-index column="`l_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`write`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" 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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`bo_id`" not-null="false" unique="false"/> - </key> - <list-index column="`w_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryColLengthAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryColLengthAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 68f6122ec..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryColLengthAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,89 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" 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> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`categ`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`bo_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`libra`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" 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> - <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> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`li_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`li_id`" not-null="false" unique="false"/> - </key> - <list-index column="`l_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`write`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="myID" column="myID" 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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`bo_id`" not-null="false" unique="false"/> - </key> - <list-index column="`w_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryContainerFeatureIDBothAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryContainerFeatureIDBothAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index c8ecc0539..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryContainerFeatureIDBothAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryContainerFeatureIDBothAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryContainerFeatureIDBothAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 7aa6cdb03..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryContainerFeatureIDBothAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`test_index`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`writer_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryContainerFeatureIDBothAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryContainerFeatureIDBothAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index d4e470760..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryContainerFeatureIDBothAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,85 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryContainerFeatureIDFeatureIDAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryContainerFeatureIDFeatureIDAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index c8ecc0539..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryContainerFeatureIDFeatureIDAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryContainerFeatureIDFeatureIDAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryContainerFeatureIDFeatureIDAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 7aa6cdb03..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryContainerFeatureIDFeatureIDAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`test_index`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`writer_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryContainerFeatureIDFeatureIDAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryContainerFeatureIDFeatureIDAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index d4e470760..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryContainerFeatureIDFeatureIDAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,85 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryFKAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index ee32b44a2..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`" length="50"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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 type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`" length="50"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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 type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`" length="50"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <cache usage="read-write"/> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryFKAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 5107ea0dc..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,93 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`" length="50"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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> - <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`" length="50"/> - </property> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true"> - <column name="`library_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`test_index`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`writer_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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> - <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`" length="50"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <cache usage="read-write"/> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryFKAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index ed75fabbe..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryFKAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,91 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`" length="50"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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> - <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`" length="50"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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> - <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`" length="50"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <cache usage="read-write"/> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryGlobalEagerAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryGlobalEagerAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index aa01791a3..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryGlobalEagerAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="false" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="false" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryGlobalEagerAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryGlobalEagerAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 0008a8a88..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryGlobalEagerAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" table="`abc`" lazy="false" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`test_index`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`writer_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="false" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryGlobalEagerAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryGlobalEagerAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index ff9021da6..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryGlobalEagerAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,85 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" lazy="false" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="false" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryJoinTableNamingAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 3035e65bb..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,104 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`BOOK`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`TITLE`"/> - </id> - <discriminator type="string"> - <column name="DTYPE" index="BOOKDTYPE" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`PAGES`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`CATEGORY`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`TEST`"/> - </property> - <join table="WRITER_BOOKS" inverse="true" optional="true"> - <key update="true"> - <column name="`BOOK_TITLE`" not-null="true" unique="false"/> - </key> - <many-to-one name="author" entity-name="Writer" lazy="false" insert="true" update="true" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR"> - <column not-null="false" unique="false" name="`WRITER_E_ID`"/> - </many-to-one> - </join> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`LIBRARY`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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 type="string"> - <column name="DTYPE" index="LIBRARYDTYPE" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`NAME`"/> - </property> - <bag name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="schrijvers"> - <column name="`LIBRARY_WRITERS_E_ID`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Writer"/> - </bag> - <bag name="books" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="LIBRARY_BOOKS"> - <column name="`LIBRARY_BOOKS_E_ID`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`WRITER`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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 type="string"> - <column name="DTYPE" index="WRITERDTYPE" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`NAME`"/> - </property> - <bag name="books" table="`WRITER_BOOKS`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <cache usage="read-write"/> - <key update="true"> - <column name="`WRITER_E_ID`" not-null="true" unique="false"/> - </key> - <many-to-many entity-name="Book" unique="true"> - <column name="`BOOK_TITLE`" not-null="true" unique="false"/> - </many-to-many> - </bag> - </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/LibraryJoinTableNamingAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index fef9bf699..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`BOOK`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`TITLE`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`PAGES`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`CATEGORY`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`TEST`"/> - </property> - <join table="`WRITER_BOOKS`" inverse="true" optional="true"> - <key update="true"> - <column name="`BOOK_TITLE`" not-null="true" unique="false"/> - </key> - <many-to-one name="author" entity-name="Writer" lazy="false" insert="true" update="true" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR"> - <column not-null="false" unique="false" name="`WRITER_E_ID`"/> - </many-to-one> - </join> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`LIBRARY`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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> - <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> - <bag name="writers" fetch="subselect" table="`ABC`" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true"> - <column name="`LIBRARY_E_ID`" not-null="true" unique="false"/> - </key> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`WRITER_E_ID`" not-null="true" unique="false"/> - </many-to-many> - </bag> - <bag name="books" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="LIBRARY_BOOKS"> - <column name="`LIBRARY_BOOKS_E_ID`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`WRITER`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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> - <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> - <bag name="books" table="`WRITER_BOOKS`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <cache usage="read-write"/> - <key update="true"> - <column name="`WRITER_E_ID`" not-null="true" unique="false"/> - </key> - <many-to-many entity-name="Book" unique="true"> - <column name="`BOOK_TITLE`" not-null="true" unique="false"/> - </many-to-many> - </bag> - </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/LibraryJoinTableNamingAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 84e44d882..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryJoinTableNamingAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,95 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`BOOK`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`TITLE`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`PAGES`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`CATEGORY`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`TEST`"/> - </property> - <join table="`WRITER_BOOKS`" inverse="true" optional="true"> - <key update="true"> - <column name="`BOOK_TITLE`" not-null="true" unique="false"/> - </key> - <many-to-one name="author" entity-name="Writer" lazy="false" insert="true" update="true" cascade="merge,persist,save-update,lock,refresh" foreign-key="BOOK_AUTHOR"> - <column not-null="false" unique="false" name="`WRITER_E_ID`"/> - </many-to-one> - </join> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`LIBRARY`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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> - <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> - <bag name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="schrijvers"> - <column name="`LIBRARY_WRITERS_E_ID`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Writer"/> - </bag> - <bag name="books" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="LIBRARY_BOOKS"> - <column name="`LIBRARY_BOOKS_E_ID`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`WRITER`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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> - <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> - <bag name="books" table="`WRITER_BOOKS`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <cache usage="read-write"/> - <key update="true"> - <column name="`WRITER_E_ID`" not-null="true" unique="false"/> - </key> - <many-to-many entity-name="Book" unique="true"> - <column name="`BOOK_TITLE`" not-null="true" unique="false"/> - </many-to-many> - </bag> - </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/LibraryLargeAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index fafce0ec2..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,84 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="true" insert="true" update="true" unique="false"> - <column not-null="true" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="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> - <bag name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Writer"/> - </bag> - <bag name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="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> - <bag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </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/LibraryLargeAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 29e9bdebd..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,84 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="true" insert="true" update="true" unique="false"> - <column not-null="true" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <bag name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Writer"/> - </bag> - <bag name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <idbag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <collection-id column="ID" type="long"> - <generator class="increment"/> - </collection-id> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <many-to-many entity-name="Book"/> - </idbag> - </class> -</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 532d39296..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryLargeAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,81 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="true" insert="true" update="true" unique="false"> - <column not-null="true" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <bag name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Writer"/> - </bag> - <bag name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <bag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </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/LibraryListAsBagAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsBagAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index af279700f..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsBagAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,91 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <bag name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Writer"/> - </bag> - <bag name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <bag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </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/LibraryListAsBagAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsBagAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index cb322220d..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsBagAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,84 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <bag name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_e_id`" not-null="true" unique="false"/> - </key> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`writer_e_id`" not-null="true" unique="false"/> - </many-to-many> - </bag> - <bag name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <bag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </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/LibraryListAsBagAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsBagAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 76f63335f..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsBagAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,82 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <bag name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Writer"/> - </bag> - <bag name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <bag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </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/LibraryListAsIdBagAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsIdBagAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 8038a404b..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsIdBagAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="true" insert="true" update="true" unique="false"> - <column not-null="true" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="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> - <bag name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Writer"/> - </bag> - <bag name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="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> - <idbag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <collection-id column="ID" type="long"> - <generator class="increment"/> - </collection-id> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <many-to-many entity-name="Book"/> - </idbag> - </class> -</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsIdBagAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsIdBagAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 29e9bdebd..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsIdBagAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,84 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="true" insert="true" update="true" unique="false"> - <column not-null="true" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <bag name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Writer"/> - </bag> - <bag name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <idbag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <collection-id column="ID" type="long"> - <generator class="increment"/> - </collection-id> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <many-to-many entity-name="Book"/> - </idbag> - </class> -</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsIdBagAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsIdBagAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 29e9bdebd..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryListAsIdBagAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,84 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="true" insert="true" update="true" unique="false"> - <column not-null="true" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <bag name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Writer"/> - </bag> - <bag name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <one-to-many entity-name="Book"/> - </bag> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <idbag name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <collection-id column="ID" type="long"> - <generator class="increment"/> - </collection-id> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <many-to-many entity-name="Book"/> - </idbag> - </class> -</hibernate-mapping>
\ No newline at end of file diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index c8ecc0539..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryNonResolvingAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 7aa6cdb03..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`test_index`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`writer_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryNonResolvingAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index d4e470760..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNonResolvingAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,85 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryNotifyingTestAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNotifyingTestAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index c8ecc0539..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNotifyingTestAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryNotifyingTestAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNotifyingTestAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 7aa6cdb03..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNotifyingTestAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`test_index`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`writer_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryNotifyingTestAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNotifyingTestAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index d4e470760..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryNotifyingTestAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,85 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryQualifyActionHB_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryQualifyActionHB_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 888e14745..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryQualifyActionHB_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="library.Book" abstract="false" lazy="false" discriminator-value="library.Book" table="`library_book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="library_bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="library.Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="library_book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="library.Library" abstract="false" lazy="false" discriminator-value="library.Library" table="`library_library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="library_librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="library.Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="library.Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="library.Writer" abstract="false" lazy="false" discriminator-value="library.Writer" table="`library_writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="library_writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="library.Book"/> - </list> - </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/LibraryQualifyActionHB_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryQualifyActionHB_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index b39306408..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryQualifyActionHB_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="library.Book" abstract="false" lazy="false" table="`library_book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="library.Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="library_book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="library.Library" abstract="false" lazy="false" table="`library_library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`test_index`"/> - <many-to-many entity-name="library.Writer" unique="true" foreign-key="schrijvers"> - <column name="`writer_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="library.Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="library.Writer" abstract="false" lazy="false" table="`library_writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="library.Book"/> - </list> - </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/LibraryQualifyActionHB_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryQualifyActionHB_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 9e820c8bc..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryQualifyActionHB_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,85 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="library.Book" abstract="false" lazy="false" table="`library_book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="library.Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="library_book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="library.Library" abstract="false" lazy="false" table="`library_library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="library.Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="library.Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="library.Writer" abstract="false" lazy="false" table="`library_writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="library.Book"/> - </list> - </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/LibraryResourceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index c8ecc0539..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryResourceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 7aa6cdb03..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`test_index`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`writer_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryResourceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index d4e470760..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,85 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryResourceCutPasteAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 14f4e0c9c..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="delete,merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="delete,merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryResourceCutPasteAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index cb0da7851..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="delete,merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`library_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`test_index`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`writer_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="delete,merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryResourceCutPasteAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 3a77ab51f..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceCutPasteAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,85 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" lazy="true" cascade="delete,merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="delete,merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryResourceReferenceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 8ef35f329..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,91 +0,0 @@ -<?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 Wed Mar 28 18:21:01 CEST 2007 --> -<hibernate-mapping> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class entity-name="RentalUnit" abstract="true" lazy="false" discriminator-value="RentalUnit" table="`rentalunit`"> - <meta attribute="eclassName">RentalUnit</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </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> - </class> - <subclass entity-name="RentalBicycle" abstract="false" lazy="false" extends="RentalUnit" discriminator-value="RentalBicycle"> - <meta attribute="eclassName">RentalBicycle</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - </type> - </property> - </subclass> - <class entity-name="RentalBusiness" abstract="false" lazy="false" discriminator-value="RentalBusiness" table="`rentalbusiness`"> - <meta attribute="eclassName">RentalBusiness</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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="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> - <subclass entity-name="RentalCar" abstract="false" lazy="false" extends="RentalUnit" discriminator-value="RentalCar"> - <meta attribute="eclassName">RentalCar</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - </type> - </property> - </subclass> - <class entity-name="RentalContract" abstract="false" lazy="false" discriminator-value="RentalContract" table="`rentalcontract`"> - <meta attribute="eclassName">RentalContract</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many class="RentalUnit"/> - </list> - </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/LibraryResourceReferenceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index e2957d606..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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 Wed Mar 28 18:21:54 CEST 2007 --> -<hibernate-mapping> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class entity-name="RentalUnit" abstract="true" lazy="false" table="`rentalunit`"> - <meta attribute="eclassName">RentalUnit</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - </class> - <joined-subclass entity-name="RentalBicycle" abstract="false" lazy="false" extends="RentalUnit" table="`rentalbicycle`"> - <meta attribute="eclassName">RentalBicycle</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - </type> - </property> - </joined-subclass> - <class entity-name="RentalBusiness" abstract="false" lazy="false" table="`rentalbusiness`"> - <meta attribute="eclassName">RentalBusiness</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - </class> - <joined-subclass entity-name="RentalCar" abstract="false" lazy="false" extends="RentalUnit" table="`rentalcar`"> - <meta attribute="eclassName">RentalCar</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - </type> - </property> - </joined-subclass> - <class entity-name="RentalContract" abstract="false" lazy="false" table="`rentalcontract`"> - <meta attribute="eclassName">RentalContract</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many class="RentalUnit"/> - </list> - </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/LibraryResourceReferenceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 1f3bd847b..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceReferenceAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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 Wed Mar 28 18:19:49 CEST 2007 --> -<hibernate-mapping> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class entity-name="RentalUnit" abstract="true" lazy="false" table="`rentalunit`"> - <meta attribute="eclassName">RentalUnit</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - </class> - <joined-subclass entity-name="RentalBicycle" abstract="false" lazy="false" extends="RentalUnit" table="`rentalbicycle`"> - <meta attribute="eclassName">RentalBicycle</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - </type> - </property> - </joined-subclass> - <class entity-name="RentalBusiness" abstract="false" lazy="false" table="`rentalbusiness`"> - <meta attribute="eclassName">RentalBusiness</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - </class> - <joined-subclass entity-name="RentalCar" abstract="false" lazy="false" extends="RentalUnit" table="`rentalcar`"> - <meta attribute="eclassName">RentalCar</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - </type> - </property> - </joined-subclass> - <class entity-name="RentalContract" abstract="false" lazy="false" table="`rentalcontract`"> - <meta attribute="eclassName">RentalContract</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many class="RentalUnit"/> - </list> - </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/LibraryResourceVisitTreeAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceVisitTreeAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index c8ecc0539..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceVisitTreeAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryResourceVisitTreeAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceVisitTreeAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 7aa6cdb03..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceVisitTreeAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`test_index`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`writer_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryResourceVisitTreeAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceVisitTreeAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index d4e470760..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryResourceVisitTreeAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,85 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibrarySerializationAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibrarySerializationAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index c8ecc0539..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibrarySerializationAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibrarySerializationAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibrarySerializationAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 7aa6cdb03..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibrarySerializationAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`test_index`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`writer_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibrarySerializationAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibrarySerializationAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index d4e470760..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibrarySerializationAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,85 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryUnloadAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUnloadAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index ce56c8050..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUnloadAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="true" insert="true" update="true" unique="false"> - <column not-null="true" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" lazy="false" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="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> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_writers_idx`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryUnloadAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUnloadAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 80858c45f..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUnloadAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,84 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="true" insert="true" update="true" unique="false"> - <column not-null="true" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" lazy="false" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_writers_idx`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryUnloadAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUnloadAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 80858c45f..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUnloadAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,84 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int"> - <column not-null="true" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="true" insert="true" update="true" unique="false"> - <column not-null="true" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" lazy="false" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_writers_idx`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryUseMappingFileAction_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUseMappingFileAction_hsqldb_e_o_hibernate.hbm.xml deleted file mode 100644 index e69de29bb..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUseMappingFileAction_hsqldb_e_o_hibernate.hbm.xml +++ /dev/null diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUseMappingFileAction_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUseMappingFileAction_hsqldb_h_o_hibernate.hbm.xml deleted file mode 100644 index e69de29bb..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUseMappingFileAction_hsqldb_h_o_hibernate.hbm.xml +++ /dev/null diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUseMappingFileAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUseMappingFileAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index c8ecc0539..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUseMappingFileAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryUseMappingFileAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUseMappingFileAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 7aa6cdb03..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUseMappingFileAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`test_index`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`writer_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/LibraryUseMappingFileAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUseMappingFileAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index d4e470760..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/LibraryUseMappingFileAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,85 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/ListAsIdBagAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ListAsIdBagAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 07299f285..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ListAsIdBagAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,47 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.issues.bz237790.impl.OneImpl" entity-name="One" abstract="false" lazy="false" discriminator-value="One" table="`one`"> - <meta attribute="eclassName">One</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz225296</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 type="string"> - <column name="dtype" index="onedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <idbag name="manies" table="`one_many`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <collection-id column="ID" type="long"> - <generator class="increment"/> - </collection-id> - <key update="true"> - <column name="`one_e_id`" not-null="true" unique="false"/> - </key> - <many-to-many entity-name="Many" unique="false" foreign-key="one_manies"> - <column name="`many_e_id`" not-null="true" unique="false"/> - </many-to-many> - </idbag> - </class> - <class name="org.eclipse.emf.teneo.samples.issues.bz237790.impl.ManyImpl" entity-name="Many" abstract="false" lazy="false" discriminator-value="Many" table="`many`"> - <meta attribute="eclassName">Many</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/bz225296</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 type="string"> - <column name="dtype" index="manydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`myname`"/> - </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/ListAsIdBagAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ListAsIdBagAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 94dff5a47..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ListAsIdBagAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,41 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.issues.bz237790.impl.OneImpl" entity-name="One" abstract="false" lazy="false" table="`one`"> - <meta attribute="eclassName" inherit="false">One</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz225296</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> - <idbag name="manies" table="`one_many`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <collection-id column="ID" type="long"> - <generator class="increment"/> - </collection-id> - <key update="true"> - <column name="`one_e_id`" not-null="true" unique="false"/> - </key> - <many-to-many entity-name="Many" unique="false" foreign-key="one_manies"> - <column name="`many_e_id`" not-null="true" unique="false"/> - </many-to-many> - </idbag> - </class> - <class name="org.eclipse.emf.teneo.samples.issues.bz237790.impl.ManyImpl" entity-name="Many" abstract="false" lazy="false" table="`many`"> - <meta attribute="eclassName" inherit="false">Many</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz225296</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> - <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="`myname`"/> - </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/ListAsIdBagAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ListAsIdBagAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 94dff5a47..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ListAsIdBagAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,41 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.issues.bz237790.impl.OneImpl" entity-name="One" abstract="false" lazy="false" table="`one`"> - <meta attribute="eclassName" inherit="false">One</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz225296</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> - <idbag name="manies" table="`one_many`" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <collection-id column="ID" type="long"> - <generator class="increment"/> - </collection-id> - <key update="true"> - <column name="`one_e_id`" not-null="true" unique="false"/> - </key> - <many-to-many entity-name="Many" unique="false" foreign-key="one_manies"> - <column name="`many_e_id`" not-null="true" unique="false"/> - </many-to-many> - </idbag> - </class> - <class name="org.eclipse.emf.teneo.samples.issues.bz237790.impl.ManyImpl" entity-name="Many" abstract="false" lazy="false" table="`many`"> - <meta attribute="eclassName" inherit="false">Many</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz225296</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> - <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="`myname`"/> - </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/MindMapAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index fe47c285e..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,231 +0,0 @@ -<?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"> - <typedef name="mindmap.PriorityObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.example.org/mindmap</param> - <param name="edatatype">PriorityObject</param> - </typedef> - <typedef name="mindmap.RelationshipTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.example.org/mindmap</param> - <param name="edatatype">RelationshipTypeObject</param> - </typedef> - <class name="org.example.mindmap.impl.MapImpl" entity-name="Map" abstract="false" lazy="false" discriminator-value="Map" table="`map`"> - <meta attribute="eclassName">Map</meta> - <meta attribute="epackage">http://www.example.org/mindmap</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 type="string"> - <column name="dtype" index="mapdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="rootTopics" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="map_roottopics"> - <column name="`map_roottopics_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`map_roottopics_idx`"/> - <one-to-many entity-name="Topic"/> - </list> - <list name="relations" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="map_relations"> - <column name="`map_relations_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`map_relations_idx`"/> - <one-to-many entity-name="Relationship"/> - </list> - <list name="resources" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="map_resources"> - <column name="`map_resources_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`map_resources_idx`"/> - <one-to-many entity-name="Resource"/> - </list> - <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`title`"/> - </property> - </class> - <class name="org.example.mindmap.impl.RelationshipImpl" entity-name="Relationship" abstract="false" lazy="false" discriminator-value="Relationship" table="`relationship`"> - <meta attribute="eclassName">Relationship</meta> - <meta attribute="epackage">http://www.example.org/mindmap</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 type="string"> - <column name="dtype" index="relationshipdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="label" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`label`"/> - </property> - <many-to-one name="source" entity-name="Topic" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="relationship_source" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`topic_source_e_id`"/> - </many-to-one> - <many-to-one name="target" entity-name="Topic" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="relationship_target" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`topic_target_e_id`"/> - </many-to-one> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.example.mindmap.RelationshipType</param> - <param name="eclassifier">RelationshipType</param> - <param name="epackage">http://www.example.org/mindmap</param> - </type> - </property> - </class> - <class name="org.example.mindmap.impl.ResourceImpl" entity-name="Resource" abstract="false" lazy="false" discriminator-value="Resource" table="`resource`"> - <meta attribute="eclassName">Resource</meta> - <meta attribute="epackage">http://www.example.org/mindmap</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 type="string"> - <column name="dtype" index="resourcedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="comments" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`thread_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`resource_comments_idx`"/> - <one-to-many entity-name="Thread"/> - </list> - <property name="email" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`email`"/> - </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> - <list name="topics" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`resource_topic`"> - <key update="true"> - <column name="`resource_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`resource_topics_idx`"/> - <many-to-many entity-name="Topic" unique="false" foreign-key="resource_topics"> - <column name="`topic_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - </class> - <class name="org.example.mindmap.impl.ThreadImpl" entity-name="Thread" abstract="false" lazy="false" discriminator-value="Thread" table="`thread`"> - <meta attribute="eclassName">Thread</meta> - <meta attribute="epackage">http://www.example.org/mindmap</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 type="string"> - <column name="dtype" index="threaddtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="items" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="thread_items"> - <column name="`thread_items_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`thread_items_idx`"/> - <one-to-many entity-name="ThreadItem"/> - </list> - <many-to-one name="author" entity-name="Resource" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="thread_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`thread_author_e_id`"/> - </many-to-one> - <property name="postDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`postdate`"/> - </property> - <property name="subject" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`subject`"/> - </property> - </class> - <class name="org.example.mindmap.impl.ThreadItemImpl" entity-name="ThreadItem" abstract="false" lazy="false" discriminator-value="ThreadItem" table="`threaditem`"> - <meta attribute="eclassName">ThreadItem</meta> - <meta attribute="epackage">http://www.example.org/mindmap</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 type="string"> - <column name="dtype" index="threaditemdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <many-to-one name="author" entity-name="Resource" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="threaditem_author" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`resource_author_e_id`"/> - </many-to-one> - <property name="body" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`body`"/> - </property> - <property name="itemPostDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`itempostdate`"/> - </property> - </class> - <class name="org.example.mindmap.impl.TopicImpl" entity-name="Topic" abstract="false" lazy="false" discriminator-value="Topic" table="`topic`"> - <meta attribute="eclassName">Topic</meta> - <meta attribute="epackage">http://www.example.org/mindmap</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 type="string"> - <column name="dtype" index="topicdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="comments" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="topic_comments"> - <column name="`topic_comments_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`topic_comments_idx`"/> - <one-to-many entity-name="Thread"/> - </list> - <property name="duration" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`duration`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`enddate`"/> - </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="percentComplete" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`percentcomplete`"/> - </property> - <property name="priority" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`priority`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.example.mindmap.Priority</param> - <param name="eclassifier">Priority</param> - <param name="epackage">http://www.example.org/mindmap</param> - </type> - </property> - <list name="resources" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`topic_resource`"> - <key update="true"> - <column name="`topic_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`topic_resources_idx`"/> - <many-to-many entity-name="Resource" unique="false" foreign-key="topic_resources"> - <column name="`resource_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <property name="startDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`startdate`"/> - </property> - <list name="subtopics" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="topic_subtopics"> - <column name="`topic_subtopics_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`topic_subtopics_idx`"/> - <one-to-many entity-name="Topic"/> - </list> - </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/MindMapAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 9a0ee5c83..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,213 +0,0 @@ -<?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"> - <typedef name="mindmap.PriorityObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.example.org/mindmap</param> - <param name="edatatype">PriorityObject</param> - </typedef> - <typedef name="mindmap.RelationshipTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.example.org/mindmap</param> - <param name="edatatype">RelationshipTypeObject</param> - </typedef> - <class name="org.example.mindmap.impl.MapImpl" entity-name="Map" abstract="false" lazy="false" table="`map`"> - <meta attribute="eclassName" inherit="false">Map</meta> - <meta attribute="epackage" inherit="false">http://www.example.org/mindmap</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="rootTopics" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="map_roottopics"> - <column name="`map_roottopics_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`map_roottopics_idx`"/> - <one-to-many entity-name="Topic"/> - </list> - <list name="relations" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="map_relations"> - <column name="`map_relations_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`map_relations_idx`"/> - <one-to-many entity-name="Relationship"/> - </list> - <list name="resources" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="map_resources"> - <column name="`map_resources_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`map_resources_idx`"/> - <one-to-many entity-name="Resource"/> - </list> - <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`title`"/> - </property> - </class> - <class name="org.example.mindmap.impl.RelationshipImpl" entity-name="Relationship" abstract="false" lazy="false" table="`relationship`"> - <meta attribute="eclassName" inherit="false">Relationship</meta> - <meta attribute="epackage" inherit="false">http://www.example.org/mindmap</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> - <property name="label" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`label`"/> - </property> - <many-to-one name="source" entity-name="Topic" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="relationship_source" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`topic_source_e_id`"/> - </many-to-one> - <many-to-one name="target" entity-name="Topic" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="relationship_target" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`topic_target_e_id`"/> - </many-to-one> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.example.mindmap.RelationshipType</param> - <param name="eclassifier">RelationshipType</param> - <param name="epackage">http://www.example.org/mindmap</param> - </type> - </property> - </class> - <class name="org.example.mindmap.impl.ResourceImpl" entity-name="Resource" abstract="false" lazy="false" table="`resource`"> - <meta attribute="eclassName" inherit="false">Resource</meta> - <meta attribute="epackage" inherit="false">http://www.example.org/mindmap</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="comments" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`thread_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`resource_comments_idx`"/> - <one-to-many entity-name="Thread"/> - </list> - <property name="email" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`email`"/> - </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> - <list name="topics" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`resource_topic`"> - <key update="true"> - <column name="`resource_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`resource_topics_idx`"/> - <many-to-many entity-name="Topic" unique="false" foreign-key="resource_topics"> - <column name="`topic_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - </class> - <class name="org.example.mindmap.impl.ThreadImpl" entity-name="Thread" abstract="false" lazy="false" table="`thread`"> - <meta attribute="eclassName" inherit="false">Thread</meta> - <meta attribute="epackage" inherit="false">http://www.example.org/mindmap</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="items" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="thread_items"> - <column name="`thread_items_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`thread_items_idx`"/> - <one-to-many entity-name="ThreadItem"/> - </list> - <many-to-one name="author" entity-name="Resource" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="thread_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`thread_author_e_id`"/> - </many-to-one> - <property name="postDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`postdate`"/> - </property> - <property name="subject" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`subject`"/> - </property> - </class> - <class name="org.example.mindmap.impl.ThreadItemImpl" entity-name="ThreadItem" abstract="false" lazy="false" table="`threaditem`"> - <meta attribute="eclassName" inherit="false">ThreadItem</meta> - <meta attribute="epackage" inherit="false">http://www.example.org/mindmap</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> - <many-to-one name="author" entity-name="Resource" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="threaditem_author" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`resource_author_e_id`"/> - </many-to-one> - <property name="body" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`body`"/> - </property> - <property name="itemPostDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`itempostdate`"/> - </property> - </class> - <class name="org.example.mindmap.impl.TopicImpl" entity-name="Topic" abstract="false" lazy="false" table="`topic`"> - <meta attribute="eclassName" inherit="false">Topic</meta> - <meta attribute="epackage" inherit="false">http://www.example.org/mindmap</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="comments" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="topic_comments"> - <column name="`topic_comments_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`topic_comments_idx`"/> - <one-to-many entity-name="Thread"/> - </list> - <property name="duration" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`duration`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`enddate`"/> - </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="percentComplete" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`percentcomplete`"/> - </property> - <property name="priority" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`priority`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.example.mindmap.Priority</param> - <param name="eclassifier">Priority</param> - <param name="epackage">http://www.example.org/mindmap</param> - </type> - </property> - <list name="resources" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`topic_resource`"> - <key update="true"> - <column name="`topic_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`topic_resources_idx`"/> - <many-to-many entity-name="Resource" unique="false" foreign-key="topic_resources"> - <column name="`resource_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <property name="startDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`startdate`"/> - </property> - <list name="subtopics" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="topic_subtopics"> - <column name="`topic_subtopics_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`topic_subtopics_idx`"/> - <one-to-many entity-name="Topic"/> - </list> - </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/MindMapAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 9a0ee5c83..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/MindMapAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,213 +0,0 @@ -<?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"> - <typedef name="mindmap.PriorityObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.example.org/mindmap</param> - <param name="edatatype">PriorityObject</param> - </typedef> - <typedef name="mindmap.RelationshipTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.example.org/mindmap</param> - <param name="edatatype">RelationshipTypeObject</param> - </typedef> - <class name="org.example.mindmap.impl.MapImpl" entity-name="Map" abstract="false" lazy="false" table="`map`"> - <meta attribute="eclassName" inherit="false">Map</meta> - <meta attribute="epackage" inherit="false">http://www.example.org/mindmap</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="rootTopics" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="map_roottopics"> - <column name="`map_roottopics_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`map_roottopics_idx`"/> - <one-to-many entity-name="Topic"/> - </list> - <list name="relations" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="map_relations"> - <column name="`map_relations_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`map_relations_idx`"/> - <one-to-many entity-name="Relationship"/> - </list> - <list name="resources" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="map_resources"> - <column name="`map_resources_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`map_resources_idx`"/> - <one-to-many entity-name="Resource"/> - </list> - <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`title`"/> - </property> - </class> - <class name="org.example.mindmap.impl.RelationshipImpl" entity-name="Relationship" abstract="false" lazy="false" table="`relationship`"> - <meta attribute="eclassName" inherit="false">Relationship</meta> - <meta attribute="epackage" inherit="false">http://www.example.org/mindmap</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> - <property name="label" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`label`"/> - </property> - <many-to-one name="source" entity-name="Topic" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="relationship_source" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`topic_source_e_id`"/> - </many-to-one> - <many-to-one name="target" entity-name="Topic" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="relationship_target" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`topic_target_e_id`"/> - </many-to-one> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.example.mindmap.RelationshipType</param> - <param name="eclassifier">RelationshipType</param> - <param name="epackage">http://www.example.org/mindmap</param> - </type> - </property> - </class> - <class name="org.example.mindmap.impl.ResourceImpl" entity-name="Resource" abstract="false" lazy="false" table="`resource`"> - <meta attribute="eclassName" inherit="false">Resource</meta> - <meta attribute="epackage" inherit="false">http://www.example.org/mindmap</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="comments" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`thread_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`resource_comments_idx`"/> - <one-to-many entity-name="Thread"/> - </list> - <property name="email" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`email`"/> - </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> - <list name="topics" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`resource_topic`"> - <key update="true"> - <column name="`resource_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`resource_topics_idx`"/> - <many-to-many entity-name="Topic" unique="false" foreign-key="resource_topics"> - <column name="`topic_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - </class> - <class name="org.example.mindmap.impl.ThreadImpl" entity-name="Thread" abstract="false" lazy="false" table="`thread`"> - <meta attribute="eclassName" inherit="false">Thread</meta> - <meta attribute="epackage" inherit="false">http://www.example.org/mindmap</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="items" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="thread_items"> - <column name="`thread_items_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`thread_items_idx`"/> - <one-to-many entity-name="ThreadItem"/> - </list> - <many-to-one name="author" entity-name="Resource" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="thread_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`thread_author_e_id`"/> - </many-to-one> - <property name="postDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`postdate`"/> - </property> - <property name="subject" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`subject`"/> - </property> - </class> - <class name="org.example.mindmap.impl.ThreadItemImpl" entity-name="ThreadItem" abstract="false" lazy="false" table="`threaditem`"> - <meta attribute="eclassName" inherit="false">ThreadItem</meta> - <meta attribute="epackage" inherit="false">http://www.example.org/mindmap</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> - <many-to-one name="author" entity-name="Resource" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="threaditem_author" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`resource_author_e_id`"/> - </many-to-one> - <property name="body" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`body`"/> - </property> - <property name="itemPostDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`itempostdate`"/> - </property> - </class> - <class name="org.example.mindmap.impl.TopicImpl" entity-name="Topic" abstract="false" lazy="false" table="`topic`"> - <meta attribute="eclassName" inherit="false">Topic</meta> - <meta attribute="epackage" inherit="false">http://www.example.org/mindmap</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="comments" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="topic_comments"> - <column name="`topic_comments_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`topic_comments_idx`"/> - <one-to-many entity-name="Thread"/> - </list> - <property name="duration" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`duration`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`enddate`"/> - </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="percentComplete" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`percentcomplete`"/> - </property> - <property name="priority" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`priority`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.example.mindmap.Priority</param> - <param name="eclassifier">Priority</param> - <param name="epackage">http://www.example.org/mindmap</param> - </type> - </property> - <list name="resources" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`topic_resource`"> - <key update="true"> - <column name="`topic_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`topic_resources_idx`"/> - <many-to-many entity-name="Resource" unique="false" foreign-key="topic_resources"> - <column name="`resource_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <property name="startDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`startdate`"/> - </property> - <list name="subtopics" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="topic_subtopics"> - <column name="`topic_subtopics_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`topic_subtopics_idx`"/> - <one-to-many entity-name="Topic"/> - </list> - </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/NoEscapeLibraryAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index df2b50638..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="book"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="title" length="50"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="pages"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="category"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="book_author_e_id"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="test"/> - </property> - </class> - <class entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="library"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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 type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="name" length="50"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="schrijvers"> - <column name="library_writers_e_id" not-null="false" unique="false"/> - </key> - <list-index column="test_index"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="library_books"> - <column name="library_books_e_id" not-null="false" unique="false"/> - </key> - <list-index column="library_books_idx"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="writer"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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 type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="name" length="50"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <cache usage="read-write"/> - <key update="true"> - <column name="book_author_e_id" not-null="false" unique="false"/> - </key> - <list-index column="writer_books_idx"/> - <one-to-many entity-name="Book"/> - </list> - </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/NoEscapeLibraryAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index dc6f36230..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,93 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class entity-name="Book" abstract="false" lazy="false" table="book"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="title" length="50"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="pages"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="category"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="book_author_e_id"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="test"/> - </property> - </class> - <class entity-name="Library" abstract="false" lazy="false" table="library"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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> - <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" length="50"/> - </property> - <list name="writers" fetch="subselect" table="abc" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true"> - <column name="library_e_id" not-null="true" unique="false"/> - </key> - <list-index column="test_index"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="writer_e_id" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="library_books"> - <column name="library_books_e_id" not-null="false" unique="false"/> - </key> - <list-index column="library_books_idx"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class entity-name="Writer" abstract="false" lazy="false" table="writer"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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> - <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" length="50"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <cache usage="read-write"/> - <key update="true"> - <column name="book_author_e_id" not-null="false" unique="false"/> - </key> - <list-index column="writer_books_idx"/> - <one-to-many entity-name="Book"/> - </list> - </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/NoEscapeLibraryAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 9f30cbd9b..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/NoEscapeLibraryAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,91 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class entity-name="Book" abstract="false" lazy="false" table="book"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="title" length="50"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="pages"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="category"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="book_author_e_id"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="test"/> - </property> - </class> - <class entity-name="Library" abstract="false" lazy="false" table="library"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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> - <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" length="50"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="schrijvers"> - <column name="library_writers_e_id" not-null="false" unique="false"/> - </key> - <list-index column="test_index"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <cache usage="read-write"/> - <key update="true" foreign-key="library_books"> - <column name="library_books_e_id" not-null="false" unique="false"/> - </key> - <list-index column="library_books_idx"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class entity-name="Writer" abstract="false" lazy="false" table="writer"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <cache usage="read-write"/> - <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> - <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" length="50"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <cache usage="read-write"/> - <key update="true"> - <column name="book_author_e_id" not-null="false" unique="false"/> - </key> - <list-index column="writer_books_idx"/> - <one-to-many entity-name="Book"/> - </list> - </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/PlayAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PlayAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 84a5ba760..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PlayAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,236 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.play.impl.ActTypeImpl" entity-name="ActType" abstract="false" lazy="false" discriminator-value="ActType" table="`acttype`"> - <meta attribute="eclassName">ActType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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 type="string"> - <column name="dtype" index="acttypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="scene" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="acttype_scene"> - <column name="`acttype_scene_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`acttype_scene_idx`"/> - <one-to-many entity-name="SceneType"/> - </list> - <property name="pindex" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> - <column not-null="false" unique="false" name="`pindex`"/> - </property> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.FmTypeImpl" entity-name="FmType" abstract="false" lazy="false" discriminator-value="FmType" table="`fmtype`"> - <meta attribute="eclassName">FmType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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 type="string"> - <column name="dtype" index="fmtypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="p" table="`fmtype_p`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`fmtype_p_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`fmtype_p_idx`"/> - <element type="java.lang.String"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PersonaeTypeImpl" entity-name="PersonaeType" abstract="false" lazy="false" discriminator-value="PersonaeType" table="`personaetype`"> - <meta attribute="eclassName">PersonaeType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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 type="string"> - <column name="dtype" index="personaetypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="group" table="`personaetype_group`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`personaetype_group_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`personaetype_group_idx`"/> - <one-to-many entity-name="PersonaeType_group"/> - </list> - </class> - <class entity-name="PersonaeType_group" lazy="false" table="`personaetype_group`"> - <meta attribute="featureMap">PersonaeType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_title`"/> - </property> - <property name="persona" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_persona`"/> - </property> - <many-to-one name="personaGroup" entity-name="PersonaGroupType" lazy="false" cascade="all" foreign-key="personaetype_personagroup" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`group_personagrouptype_personagroup_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PersonaGroupTypeImpl" entity-name="PersonaGroupType" abstract="false" lazy="false" discriminator-value="PersonaGroupType" table="`personagrouptype`"> - <meta attribute="eclassName">PersonaGroupType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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 type="string"> - <column name="dtype" index="personagrouptypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="persona" table="`personagrouptype_persona`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`personagrouptype_persona_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`personagrouptype_persona_idx`"/> - <element type="java.lang.String"/> - </list> - <property name="groupDescription" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`groupdescription`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PlayTypeImpl" entity-name="PlayType" abstract="false" lazy="false" discriminator-value="PlayType" table="`playtype`"> - <meta attribute="eclassName">PlayType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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 type="string"> - <column name="dtype" index="playtypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <many-to-one name="fm" entity-name="FmType" lazy="false" cascade="all" foreign-key="playtype_fm" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`fmtype_fm_e_id`"/> - </many-to-one> - <many-to-one name="personae" entity-name="PersonaeType" lazy="false" cascade="all" foreign-key="playtype_personae" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`personaetype_personae_e_id`"/> - </many-to-one> - <property name="sceneDescription" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`scenedescription`"/> - </property> - <property name="playSubTitle" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`playsubtitle`"/> - </property> - <list name="act" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="playtype_act"> - <column name="`playtype_act_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`playtype_act_idx`"/> - <one-to-many entity-name="ActType"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.SceneTypeImpl" entity-name="SceneType" abstract="false" lazy="false" discriminator-value="SceneType" table="`scenetype`"> - <meta attribute="eclassName">SceneType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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 type="string"> - <column name="dtype" index="scenetypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="group" table="`scenetype_group`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`scenetype_group_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`scenetype_group_idx`"/> - <one-to-many entity-name="SceneType_group"/> - </list> - <property name="pindex" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`pindex`"/> - </property> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - </class> - <class entity-name="SceneType_group" lazy="false" table="`scenetype_group`"> - <meta attribute="featureMap">SceneType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <property name="stageDirections" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_stagedirections`"/> - </property> - <many-to-one name="speech" entity-name="SpeechType" lazy="false" cascade="all" foreign-key="scenetype_speech" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`group_speechtype_speech_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.SpeechTypeImpl" entity-name="SpeechType" abstract="false" lazy="false" discriminator-value="SpeechType" table="`speechtype`"> - <meta attribute="eclassName">SpeechType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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 type="string"> - <column name="dtype" index="speechtypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="group" table="`speechtype_group`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`speechtype_group_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`speechtype_group_idx`"/> - <one-to-many entity-name="SpeechType_group"/> - </list> - </class> - <class entity-name="SpeechType_group" lazy="false" table="`speechtype_group`"> - <meta attribute="featureMap">SpeechType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <property name="speaker" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_speaker`"/> - </property> - <property name="line" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_line`"/> - </property> - <property name="stageDirections" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_stagedirections`"/> - </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/PlayAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PlayAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index c43020897..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PlayAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,215 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.play.impl.ActTypeImpl" entity-name="ActType" abstract="false" lazy="false" table="`acttype`"> - <meta attribute="eclassName" inherit="false">ActType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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="scene" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="acttype_scene"> - <column name="`acttype_scene_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`acttype_scene_idx`"/> - <one-to-many entity-name="SceneType"/> - </list> - <property name="pindex" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> - <column not-null="false" unique="false" name="`pindex`"/> - </property> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.FmTypeImpl" entity-name="FmType" abstract="false" lazy="false" table="`fmtype`"> - <meta attribute="eclassName" inherit="false">FmType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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="p" table="`fmtype_p`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`fmtype_p_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`fmtype_p_idx`"/> - <element type="java.lang.String"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PersonaeTypeImpl" entity-name="PersonaeType" abstract="false" lazy="false" table="`personaetype`"> - <meta attribute="eclassName" inherit="false">PersonaeType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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="group" table="`personaetype_group`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`personaetype_group_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`personaetype_group_idx`"/> - <one-to-many entity-name="PersonaeType_group"/> - </list> - </class> - <class entity-name="PersonaeType_group" lazy="false" table="`personaetype_group`"> - <meta attribute="featureMap" inherit="false">PersonaeType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion" inherit="false">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_title`"/> - </property> - <property name="persona" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_persona`"/> - </property> - <many-to-one name="personaGroup" entity-name="PersonaGroupType" lazy="false" cascade="all" foreign-key="personaetype_personagroup" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`group_personagrouptype_personagroup_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PersonaGroupTypeImpl" entity-name="PersonaGroupType" abstract="false" lazy="false" table="`personagrouptype`"> - <meta attribute="eclassName" inherit="false">PersonaGroupType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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="persona" table="`personagrouptype_persona`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`personagrouptype_persona_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`personagrouptype_persona_idx`"/> - <element type="java.lang.String"/> - </list> - <property name="groupDescription" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`groupdescription`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PlayTypeImpl" entity-name="PlayType" abstract="false" lazy="false" table="`playtype`"> - <meta attribute="eclassName" inherit="false">PlayType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <many-to-one name="fm" entity-name="FmType" lazy="false" cascade="all" foreign-key="playtype_fm" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`fmtype_fm_e_id`"/> - </many-to-one> - <many-to-one name="personae" entity-name="PersonaeType" lazy="false" cascade="all" foreign-key="playtype_personae" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`personaetype_personae_e_id`"/> - </many-to-one> - <property name="sceneDescription" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`scenedescription`"/> - </property> - <property name="playSubTitle" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`playsubtitle`"/> - </property> - <list name="act" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="playtype_act"> - <column name="`playtype_act_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`playtype_act_idx`"/> - <one-to-many entity-name="ActType"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.SceneTypeImpl" entity-name="SceneType" abstract="false" lazy="false" table="`scenetype`"> - <meta attribute="eclassName" inherit="false">SceneType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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="group" table="`scenetype_group`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`scenetype_group_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`scenetype_group_idx`"/> - <one-to-many entity-name="SceneType_group"/> - </list> - <property name="pindex" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`pindex`"/> - </property> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - </class> - <class entity-name="SceneType_group" lazy="false" table="`scenetype_group`"> - <meta attribute="featureMap" inherit="false">SceneType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion" inherit="false">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <property name="stageDirections" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_stagedirections`"/> - </property> - <many-to-one name="speech" entity-name="SpeechType" lazy="false" cascade="all" foreign-key="scenetype_speech" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`group_speechtype_speech_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.SpeechTypeImpl" entity-name="SpeechType" abstract="false" lazy="false" table="`speechtype`"> - <meta attribute="eclassName" inherit="false">SpeechType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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="group" table="`speechtype_group`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`speechtype_group_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`speechtype_group_idx`"/> - <one-to-many entity-name="SpeechType_group"/> - </list> - </class> - <class entity-name="SpeechType_group" lazy="false" table="`speechtype_group`"> - <meta attribute="featureMap" inherit="false">SpeechType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion" inherit="false">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <property name="speaker" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_speaker`"/> - </property> - <property name="line" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_line`"/> - </property> - <property name="stageDirections" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_stagedirections`"/> - </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/PlayAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PlayAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index c43020897..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PlayAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,215 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.play.impl.ActTypeImpl" entity-name="ActType" abstract="false" lazy="false" table="`acttype`"> - <meta attribute="eclassName" inherit="false">ActType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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="scene" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="acttype_scene"> - <column name="`acttype_scene_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`acttype_scene_idx`"/> - <one-to-many entity-name="SceneType"/> - </list> - <property name="pindex" lazy="false" insert="true" update="true" not-null="false" unique="false" type="byte"> - <column not-null="false" unique="false" name="`pindex`"/> - </property> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.FmTypeImpl" entity-name="FmType" abstract="false" lazy="false" table="`fmtype`"> - <meta attribute="eclassName" inherit="false">FmType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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="p" table="`fmtype_p`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`fmtype_p_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`fmtype_p_idx`"/> - <element type="java.lang.String"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PersonaeTypeImpl" entity-name="PersonaeType" abstract="false" lazy="false" table="`personaetype`"> - <meta attribute="eclassName" inherit="false">PersonaeType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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="group" table="`personaetype_group`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`personaetype_group_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`personaetype_group_idx`"/> - <one-to-many entity-name="PersonaeType_group"/> - </list> - </class> - <class entity-name="PersonaeType_group" lazy="false" table="`personaetype_group`"> - <meta attribute="featureMap" inherit="false">PersonaeType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion" inherit="false">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <property name="title" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_title`"/> - </property> - <property name="persona" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_persona`"/> - </property> - <many-to-one name="personaGroup" entity-name="PersonaGroupType" lazy="false" cascade="all" foreign-key="personaetype_personagroup" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`group_personagrouptype_personagroup_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PersonaGroupTypeImpl" entity-name="PersonaGroupType" abstract="false" lazy="false" table="`personagrouptype`"> - <meta attribute="eclassName" inherit="false">PersonaGroupType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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="persona" table="`personagrouptype_persona`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`personagrouptype_persona_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`personagrouptype_persona_idx`"/> - <element type="java.lang.String"/> - </list> - <property name="groupDescription" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`groupdescription`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.PlayTypeImpl" entity-name="PlayType" abstract="false" lazy="false" table="`playtype`"> - <meta attribute="eclassName" inherit="false">PlayType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <many-to-one name="fm" entity-name="FmType" lazy="false" cascade="all" foreign-key="playtype_fm" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`fmtype_fm_e_id`"/> - </many-to-one> - <many-to-one name="personae" entity-name="PersonaeType" lazy="false" cascade="all" foreign-key="playtype_personae" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`personaetype_personae_e_id`"/> - </many-to-one> - <property name="sceneDescription" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`scenedescription`"/> - </property> - <property name="playSubTitle" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`playsubtitle`"/> - </property> - <list name="act" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="playtype_act"> - <column name="`playtype_act_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`playtype_act_idx`"/> - <one-to-many entity-name="ActType"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.SceneTypeImpl" entity-name="SceneType" abstract="false" lazy="false" table="`scenetype`"> - <meta attribute="eclassName" inherit="false">SceneType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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="group" table="`scenetype_group`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`scenetype_group_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`scenetype_group_idx`"/> - <one-to-many entity-name="SceneType_group"/> - </list> - <property name="pindex" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`pindex`"/> - </property> - <property name="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - </class> - <class entity-name="SceneType_group" lazy="false" table="`scenetype_group`"> - <meta attribute="featureMap" inherit="false">SceneType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion" inherit="false">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <property name="stageDirections" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_stagedirections`"/> - </property> - <many-to-one name="speech" entity-name="SpeechType" lazy="false" cascade="all" foreign-key="scenetype_speech" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`group_speechtype_speech_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.play.impl.SpeechTypeImpl" entity-name="SpeechType" abstract="false" lazy="false" table="`speechtype`"> - <meta attribute="eclassName" inherit="false">SpeechType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/play</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="group" table="`speechtype_group`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`speechtype_group_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`speechtype_group_idx`"/> - <one-to-many entity-name="SpeechType_group"/> - </list> - </class> - <class entity-name="SpeechType_group" lazy="false" table="`speechtype_group`"> - <meta attribute="featureMap" inherit="false">SpeechType</meta> - <id type="long"> - <generator class="native"/> - </id> - <version name="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion" inherit="false">true</meta> - </version> - <property name="fme_feature" type="java.lang.String"/> - <property name="speaker" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_speaker`"/> - </property> - <property name="line" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_line`"/> - </property> - <property name="stageDirections" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`group_stagedirections`"/> - </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/PrimerPOAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PrimerPOAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 91a8ec34e..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PrimerPOAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,102 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" discriminator-value="Item" table="`item`"> - <meta attribute="eclassName">Item</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/schemaprimerpo</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 type="string"> - <column name="dtype" index="itemdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="productName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`productname`"/> - </property> - <property name="quantity" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger"> - <column not-null="true" unique="false" name="`quantity`"/> - </property> - <property name="uSPrice" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> - <column not-null="true" unique="false" name="`usprice`"/> - </property> - <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`comment`"/> - </property> - <property name="shipDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`shipdate`"/> - </property> - <property name="partNum" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`partnum`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.PurchaseOrderImpl" entity-name="PurchaseOrder" abstract="false" lazy="false" discriminator-value="PurchaseOrder" table="`purchaseorder`"> - <meta attribute="eclassName">PurchaseOrder</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/schemaprimerpo</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 type="string"> - <column name="dtype" index="purchaseorderdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <many-to-one name="shipTo" entity-name="USAddress" lazy="false" cascade="all" foreign-key="purchaseorder_shipto" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`usaddress_shipto_e_id`"/> - </many-to-one> - <many-to-one name="billTo" entity-name="USAddress" lazy="false" cascade="all" foreign-key="purchaseorder_billto" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`usaddress_billto_e_id`"/> - </many-to-one> - <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`comment`"/> - </property> - <list name="items" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="purchaseorder_items"> - <column name="`purchaseorder_items_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`purchaseorder_items_idx`"/> - <one-to-many entity-name="Item"/> - </list> - <property name="orderDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`orderdate`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" discriminator-value="USAddress" table="`usaddress`"> - <meta attribute="eclassName">USAddress</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/schemaprimerpo</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 type="string"> - <column name="dtype" index="usaddressdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`street`"/> - </property> - <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`city`"/> - </property> - <property name="state" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`state`"/> - </property> - <property name="zip" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> - <column not-null="true" unique="false" name="`zip`"/> - </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> - </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/PrimerPOAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PrimerPOAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 962b2fb32..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PrimerPOAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,93 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> - <meta attribute="eclassName" inherit="false">Item</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/schemaprimerpo</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> - <property name="productName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`productname`"/> - </property> - <property name="quantity" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger"> - <column not-null="true" unique="false" name="`quantity`"/> - </property> - <property name="uSPrice" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> - <column not-null="true" unique="false" name="`usprice`"/> - </property> - <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`comment`"/> - </property> - <property name="shipDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`shipdate`"/> - </property> - <property name="partNum" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`partnum`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.PurchaseOrderImpl" entity-name="PurchaseOrder" abstract="false" lazy="false" table="`purchaseorder`"> - <meta attribute="eclassName" inherit="false">PurchaseOrder</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/schemaprimerpo</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> - <many-to-one name="shipTo" entity-name="USAddress" lazy="false" cascade="all" foreign-key="purchaseorder_shipto" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`usaddress_shipto_e_id`"/> - </many-to-one> - <many-to-one name="billTo" entity-name="USAddress" lazy="false" cascade="all" foreign-key="purchaseorder_billto" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`usaddress_billto_e_id`"/> - </many-to-one> - <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`comment`"/> - </property> - <list name="items" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="purchaseorder_items"> - <column name="`purchaseorder_items_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`purchaseorder_items_idx`"/> - <one-to-many entity-name="Item"/> - </list> - <property name="orderDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`orderdate`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" table="`usaddress`"> - <meta attribute="eclassName" inherit="false">USAddress</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/schemaprimerpo</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> - <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> - <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`street`"/> - </property> - <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`city`"/> - </property> - <property name="state" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`state`"/> - </property> - <property name="zip" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> - <column not-null="true" unique="false" name="`zip`"/> - </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> - </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/PrimerPOAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PrimerPOAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 962b2fb32..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/PrimerPOAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,93 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`item`"> - <meta attribute="eclassName" inherit="false">Item</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/schemaprimerpo</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> - <property name="productName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`productname`"/> - </property> - <property name="quantity" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger"> - <column not-null="true" unique="false" name="`quantity`"/> - </property> - <property name="uSPrice" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> - <column not-null="true" unique="false" name="`usprice`"/> - </property> - <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`comment`"/> - </property> - <property name="shipDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`shipdate`"/> - </property> - <property name="partNum" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`partnum`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.PurchaseOrderImpl" entity-name="PurchaseOrder" abstract="false" lazy="false" table="`purchaseorder`"> - <meta attribute="eclassName" inherit="false">PurchaseOrder</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/schemaprimerpo</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> - <many-to-one name="shipTo" entity-name="USAddress" lazy="false" cascade="all" foreign-key="purchaseorder_shipto" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`usaddress_shipto_e_id`"/> - </many-to-one> - <many-to-one name="billTo" entity-name="USAddress" lazy="false" cascade="all" foreign-key="purchaseorder_billto" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`usaddress_billto_e_id`"/> - </many-to-one> - <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`comment`"/> - </property> - <list name="items" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="purchaseorder_items"> - <column name="`purchaseorder_items_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`purchaseorder_items_idx`"/> - <one-to-many entity-name="Item"/> - </list> - <property name="orderDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="false" unique="false" name="`orderdate`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.schemaprimerpo.impl.USAddressImpl" entity-name="USAddress" abstract="false" lazy="false" table="`usaddress`"> - <meta attribute="eclassName" inherit="false">USAddress</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/schemaprimerpo</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> - <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> - <property name="street" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`street`"/> - </property> - <property name="city" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`city`"/> - </property> - <property name="state" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`state`"/> - </property> - <property name="zip" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigDecimal"> - <column not-null="true" unique="false" name="`zip`"/> - </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> - </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/ProductAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ProductAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 758c08539..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ProductAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,81 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.product.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" discriminator-value="ProductType" table="`producttype`"> - <meta attribute="eclassName">ProductType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</meta> - <id name="id" type="java.lang.String"> - <column not-null="true" unique="false" name="`id`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="producttypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`code`"/> - </property> - <many-to-one name="supplier" entity-name="SupplierType" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="producttype_supplier" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> - </many-to-one> - <property name="price" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> - <column not-null="false" unique="false" name="`price`"/> - </property> - <property name="createdOn" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="true" unique="false" name="`createdon`"/> - </property> - <any id-type="long" meta-type="string" name="AnyOne" cascade="all"> - <column not-null="false" unique="false" name="`anyone_type`"/> - <column not-null="false" unique="false" name="`anyone_id`"/> - </any> - <list name="AnyList" table="`producttype_anylist`" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="producttype_anylist"> - <column name="`producttype_id`" not-null="true" unique="false"/> - </key> - <list-index column="`producttype_anylist_idx`"/> - <many-to-any id-type="long" meta-type="string"> - <column not-null="false" unique="false" name="`anylist_type`"/> - <column not-null="false" unique="false" name="`anylist_id`"/> - </many-to-any> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" discriminator-value="SupplierType" table="`suppliertype`"> - <meta attribute="eclassName">SupplierType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</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 type="string"> - <column name="dtype" index="suppliertypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`noofemployees`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.ClassificationTypeImpl" entity-name="ClassificationType" abstract="false" lazy="false" discriminator-value="ClassificationType" table="`classificationtype`"> - <meta attribute="eclassName">ClassificationType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</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 type="string"> - <column name="dtype" index="classificationtypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="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 diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ProductAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ProductAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index e30ed7e1e..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ProductAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,72 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.product.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" table="`producttype`"> - <meta attribute="eclassName" inherit="false">ProductType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</meta> - <id name="id" type="java.lang.String"> - <column not-null="true" unique="false" name="`id`"/> - </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="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`code`"/> - </property> - <many-to-one name="supplier" entity-name="SupplierType" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="producttype_supplier" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> - </many-to-one> - <property name="price" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> - <column not-null="false" unique="false" name="`price`"/> - </property> - <property name="createdOn" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="true" unique="false" name="`createdon`"/> - </property> - <any id-type="long" meta-type="string" name="AnyOne" cascade="all"> - <column not-null="false" unique="false" name="`anyone_type`"/> - <column not-null="false" unique="false" name="`anyone_id`"/> - </any> - <list name="AnyList" table="`producttype_anylist`" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="producttype_anylist"> - <column name="`producttype_id`" not-null="true" unique="false"/> - </key> - <list-index column="`producttype_anylist_idx`"/> - <many-to-any id-type="long" meta-type="string"> - <column not-null="false" unique="false" name="`anylist_type`"/> - <column not-null="false" unique="false" name="`anylist_id`"/> - </many-to-any> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" table="`suppliertype`"> - <meta attribute="eclassName" inherit="false">SupplierType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</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> - <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> - <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`noofemployees`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.ClassificationTypeImpl" entity-name="ClassificationType" abstract="false" lazy="false" table="`classificationtype`"> - <meta attribute="eclassName" inherit="false">ClassificationType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</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> - <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 diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ProductAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ProductAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index e30ed7e1e..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/ProductAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,72 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.product.impl.ProductTypeImpl" entity-name="ProductType" abstract="false" lazy="false" table="`producttype`"> - <meta attribute="eclassName" inherit="false">ProductType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</meta> - <id name="id" type="java.lang.String"> - <column not-null="true" unique="false" name="`id`"/> - </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="code" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`code`"/> - </property> - <many-to-one name="supplier" entity-name="SupplierType" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="producttype_supplier" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`suppliertype_supplier_e_id`"/> - </many-to-one> - <property name="price" lazy="false" insert="true" update="true" not-null="false" unique="false" type="double"> - <column not-null="false" unique="false" name="`price`"/> - </property> - <property name="createdOn" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="true" unique="false" name="`createdon`"/> - </property> - <any id-type="long" meta-type="string" name="AnyOne" cascade="all"> - <column not-null="false" unique="false" name="`anyone_type`"/> - <column not-null="false" unique="false" name="`anyone_id`"/> - </any> - <list name="AnyList" table="`producttype_anylist`" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="producttype_anylist"> - <column name="`producttype_id`" not-null="true" unique="false"/> - </key> - <list-index column="`producttype_anylist_idx`"/> - <many-to-any id-type="long" meta-type="string"> - <column not-null="false" unique="false" name="`anylist_type`"/> - <column not-null="false" unique="false" name="`anylist_id`"/> - </many-to-any> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.SupplierTypeImpl" entity-name="SupplierType" abstract="false" lazy="false" table="`suppliertype`"> - <meta attribute="eclassName" inherit="false">SupplierType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</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> - <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> - <property name="noOfEmployees" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`noofemployees`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.product.impl.ClassificationTypeImpl" entity-name="ClassificationType" abstract="false" lazy="false" table="`classificationtype`"> - <meta attribute="eclassName" inherit="false">ClassificationType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/product</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> - <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 diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 4db3da3d1..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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 Thu Mar 29 12:19:29 CEST 2007 --> -<hibernate-mapping> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="true" discriminator-value="RentalUnit" table="`rentalunit`" proxy="org.eclipse.emf.teneo.rental.RentalUnit"> - <meta attribute="eclassName">RentalUnit</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </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> - </class> - <subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="true" extends="RentalUnit" discriminator-value="RentalBicycle" proxy="org.eclipse.emf.teneo.rental.RentalBicycle"> - <meta attribute="eclassName">RentalBicycle</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - </type> - </property> - </subclass> - <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="true" discriminator-value="Currency" table="`currency`" proxy="org.eclipse.emf.teneo.rental.Currency"> - <meta attribute="eclassName">Currency</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - </class> - <subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="true" extends="RentalUnit" discriminator-value="RentalCar" proxy="org.eclipse.emf.teneo.rental.RentalCar"> - <meta attribute="eclassName">RentalCar</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - </type> - </property> - </subclass> - <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="true" discriminator-value="RentalContract" table="`rentalcontract`" proxy="org.eclipse.emf.teneo.rental.RentalContract"> - <meta attribute="eclassName">RentalContract</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> - </list> - <many-to-one name="currency" entity-name="Currency" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`currency_currency_e_id`"/> - </many-to-one> - </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/RentalClassifyNamesAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 3d045ca68..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?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 Thu Mar 29 12:20:06 CEST 2007 --> -<hibernate-mapping> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="true" table="`rentalunit`" proxy="org.eclipse.emf.teneo.rental.RentalUnit"> - <meta attribute="eclassName">RentalUnit</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - </class> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="true" extends="RentalUnit" table="`rentalbicycle`" proxy="org.eclipse.emf.teneo.rental.RentalBicycle"> - <meta attribute="eclassName">RentalBicycle</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - </type> - </property> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="true" table="`currency`" proxy="org.eclipse.emf.teneo.rental.Currency"> - <meta attribute="eclassName">Currency</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - </class> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="true" extends="RentalUnit" table="`rentalcar`" proxy="org.eclipse.emf.teneo.rental.RentalCar"> - <meta attribute="eclassName">RentalCar</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - </type> - </property> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="true" table="`rentalcontract`" proxy="org.eclipse.emf.teneo.rental.RentalContract"> - <meta attribute="eclassName">RentalContract</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> - </list> - <many-to-one name="currency" entity-name="Currency" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`currency_currency_e_id`"/> - </many-to-one> - </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/RentalClassifyNamesAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 2f5db848d..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalClassifyNamesAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?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 Thu Mar 29 12:18:31 CEST 2007 --> -<hibernate-mapping> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="true" table="`rentalunit`" proxy="org.eclipse.emf.teneo.rental.RentalUnit"> - <meta attribute="eclassName">RentalUnit</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - </class> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="true" extends="RentalUnit" table="`rentalbicycle`" proxy="org.eclipse.emf.teneo.rental.RentalBicycle"> - <meta attribute="eclassName">RentalBicycle</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - </type> - </property> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="true" table="`currency`" proxy="org.eclipse.emf.teneo.rental.Currency"> - <meta attribute="eclassName">Currency</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - </class> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="true" extends="RentalUnit" table="`rentalcar`" proxy="org.eclipse.emf.teneo.rental.RentalCar"> - <meta attribute="eclassName">RentalCar</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - </type> - </property> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="true" table="`rentalcontract`" proxy="org.eclipse.emf.teneo.rental.RentalContract"> - <meta attribute="eclassName">RentalContract</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> - </list> - <many-to-one name="currency" entity-name="Currency" cascade="merge,persist,save-update,lock,refresh" lazy="proxy" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`currency_currency_e_id`"/> - </many-to-one> - </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/RentalMapAsClassAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalMapAsClassAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 99a02172c..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalMapAsClassAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,123 +0,0 @@ -<?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"> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="true" discriminator-value="RentalUnit" table="`rentalunit`" proxy="org.eclipse.emf.teneo.rental.RentalUnit"> - <meta attribute="eclassName">RentalUnit</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="rentalunitdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - </class> - <subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="true" extends="RentalUnit" discriminator-value="RentalBicycle" proxy="org.eclipse.emf.teneo.rental.RentalBicycle"> - <meta attribute="eclassName">RentalBicycle</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - <param name="eclassifier">RentalBicycleType</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - <many-to-one name="manufacturer" entity-name="Manufacturer" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalbicycle_manufacturer" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`manufacturer_manufacturer_e_id`"/> - </many-to-one> - </subclass> - <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="true" discriminator-value="Currency" table="`currency`" proxy="org.eclipse.emf.teneo.rental.Currency"> - <meta attribute="eclassName">Currency</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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 type="string"> - <column name="dtype" index="currencydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - </class> - <subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="true" extends="RentalUnit" discriminator-value="RentalCar" proxy="org.eclipse.emf.teneo.rental.RentalCar"> - <meta attribute="eclassName">RentalCar</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - <param name="eclassifier">RentalCarSize</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - </subclass> - <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="true" discriminator-value="RentalContract" table="`rentalcontract`" proxy="org.eclipse.emf.teneo.rental.RentalContract"> - <meta attribute="eclassName">RentalContract</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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 type="string"> - <column name="dtype" index="rentalcontractdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="rentalcontract_rentalunits"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> - </list> - <many-to-one name="currency" entity-name="Currency" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalcontract_currency" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`currency_currency_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.rental.impl.ManufacturerImpl" entity-name="Manufacturer" abstract="false" lazy="true" discriminator-value="Manufacturer" table="`manufacturer`" proxy="org.eclipse.emf.teneo.rental.Manufacturer"> - <meta attribute="eclassName">Manufacturer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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 type="string"> - <column name="dtype" index="manufacturerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </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/RentalMapAsClassAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalMapAsClassAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index fa76cdd80..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalMapAsClassAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,117 +0,0 @@ -<?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"> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="true" table="`rentalunit`" proxy="org.eclipse.emf.teneo.rental.RentalUnit"> - <meta attribute="eclassName" inherit="false">RentalUnit</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </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> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="true" extends="RentalUnit" table="`rentalbicycle`" proxy="org.eclipse.emf.teneo.rental.RentalBicycle"> - <meta attribute="eclassName" inherit="false">RentalBicycle</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - <param name="eclassifier">RentalBicycleType</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - <many-to-one name="manufacturer" entity-name="Manufacturer" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalbicycle_manufacturer" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`manufacturer_manufacturer_e_id`"/> - </many-to-one> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="true" table="`currency`" proxy="org.eclipse.emf.teneo.rental.Currency"> - <meta attribute="eclassName" inherit="false">Currency</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - </class> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="true" extends="RentalUnit" table="`rentalcar`" proxy="org.eclipse.emf.teneo.rental.RentalCar"> - <meta attribute="eclassName" inherit="false">RentalCar</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - <param name="eclassifier">RentalCarSize</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="true" table="`rentalcontract`" proxy="org.eclipse.emf.teneo.rental.RentalContract"> - <meta attribute="eclassName" inherit="false">RentalContract</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="rentalcontract_rentalunits"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> - </list> - <many-to-one name="currency" entity-name="Currency" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalcontract_currency" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`currency_currency_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.rental.impl.ManufacturerImpl" entity-name="Manufacturer" abstract="false" lazy="true" table="`manufacturer`" proxy="org.eclipse.emf.teneo.rental.Manufacturer"> - <meta attribute="eclassName" inherit="false">Manufacturer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </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/RentalMapAsClassAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalMapAsClassAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 76349a3d3..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalMapAsClassAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,120 +0,0 @@ -<?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"> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="true" table="`rentalunit`" proxy="org.eclipse.emf.teneo.rental.RentalUnit"> - <meta attribute="eclassName" inherit="false">RentalUnit</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </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> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="true" extends="RentalUnit" table="`rentalbicycle`" proxy="org.eclipse.emf.teneo.rental.RentalBicycle"> - <meta attribute="eclassName" inherit="false">RentalBicycle</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - <param name="eclassifier">RentalBicycleType</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - <many-to-one name="manufacturer" entity-name="Manufacturer" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalbicycle_manufacturer" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`manufacturer_manufacturer_e_id`"/> - </many-to-one> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="true" table="`currency`" proxy="org.eclipse.emf.teneo.rental.Currency"> - <meta attribute="eclassName" inherit="false">Currency</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - </class> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="true" extends="RentalUnit" table="`rentalcar`" proxy="org.eclipse.emf.teneo.rental.RentalCar"> - <meta attribute="eclassName" inherit="false">RentalCar</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - <param name="eclassifier">RentalCarSize</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="true" table="`rentalcontract`" proxy="org.eclipse.emf.teneo.rental.RentalContract"> - <meta attribute="eclassName" inherit="false">RentalContract</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="rentalcontract_rentalunits"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> - </list> - <many-to-one name="currency" entity-name="Currency" lazy="proxy" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalcontract_currency" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`currency_currency_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.rental.impl.ManufacturerImpl" entity-name="Manufacturer" abstract="false" lazy="true" table="`manufacturer`" proxy="org.eclipse.emf.teneo.rental.Manufacturer"> - <meta attribute="eclassName" inherit="false">Manufacturer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - <property name="trusted" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Boolean"> - <column not-null="false" unique="false" name="`trusted`"/> - </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/RentalResourceReferenceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalResourceReferenceAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index a0bf05b2c..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalResourceReferenceAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,123 +0,0 @@ -<?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"> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="false" discriminator-value="RentalUnit" table="`rentalunit`"> - <meta attribute="eclassName">RentalUnit</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="rentalunitdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - </class> - <subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="false" extends="RentalUnit" discriminator-value="RentalBicycle"> - <meta attribute="eclassName">RentalBicycle</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - <param name="eclassifier">RentalBicycleType</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - <many-to-one name="manufacturer" entity-name="Manufacturer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalbicycle_manufacturer" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`manufacturer_manufacturer_e_id`"/> - </many-to-one> - </subclass> - <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="false" discriminator-value="Currency" table="`currency`"> - <meta attribute="eclassName">Currency</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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 type="string"> - <column name="dtype" index="currencydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - </class> - <subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="false" extends="RentalUnit" discriminator-value="RentalCar"> - <meta attribute="eclassName">RentalCar</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - <param name="eclassifier">RentalCarSize</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - </subclass> - <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="false" discriminator-value="RentalContract" table="`rentalcontract`"> - <meta attribute="eclassName">RentalContract</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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 type="string"> - <column name="dtype" index="rentalcontractdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="rentalcontract_rentalunits"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> - </list> - <many-to-one name="currency" entity-name="Currency" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalcontract_currency" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`currency_currency_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.rental.impl.ManufacturerImpl" entity-name="Manufacturer" abstract="false" lazy="false" discriminator-value="Manufacturer" table="`manufacturer`"> - <meta attribute="eclassName">Manufacturer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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 type="string"> - <column name="dtype" index="manufacturerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </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/RentalResourceReferenceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalResourceReferenceAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 2d79f6607..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalResourceReferenceAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,117 +0,0 @@ -<?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"> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="false" table="`rentalunit`"> - <meta attribute="eclassName" inherit="false">RentalUnit</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </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> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="false" extends="RentalUnit" table="`rentalbicycle`"> - <meta attribute="eclassName" inherit="false">RentalBicycle</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - <param name="eclassifier">RentalBicycleType</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - <many-to-one name="manufacturer" entity-name="Manufacturer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalbicycle_manufacturer" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`manufacturer_manufacturer_e_id`"/> - </many-to-one> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="false" table="`currency`"> - <meta attribute="eclassName" inherit="false">Currency</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - </class> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="false" extends="RentalUnit" table="`rentalcar`"> - <meta attribute="eclassName" inherit="false">RentalCar</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - <param name="eclassifier">RentalCarSize</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="false" table="`rentalcontract`"> - <meta attribute="eclassName" inherit="false">RentalContract</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="rentalcontract_rentalunits"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> - </list> - <many-to-one name="currency" entity-name="Currency" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalcontract_currency" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`currency_currency_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.rental.impl.ManufacturerImpl" entity-name="Manufacturer" abstract="false" lazy="false" table="`manufacturer`"> - <meta attribute="eclassName" inherit="false">Manufacturer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </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/RentalResourceReferenceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalResourceReferenceAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index c92641ce3..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/RentalResourceReferenceAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,120 +0,0 @@ -<?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"> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="false" table="`rentalunit`"> - <meta attribute="eclassName" inherit="false">RentalUnit</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </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> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="false" extends="RentalUnit" table="`rentalbicycle`"> - <meta attribute="eclassName" inherit="false">RentalBicycle</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - <param name="eclassifier">RentalBicycleType</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - <many-to-one name="manufacturer" entity-name="Manufacturer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalbicycle_manufacturer" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`manufacturer_manufacturer_e_id`"/> - </many-to-one> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="false" table="`currency`"> - <meta attribute="eclassName" inherit="false">Currency</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - </class> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="false" extends="RentalUnit" table="`rentalcar`"> - <meta attribute="eclassName" inherit="false">RentalCar</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - <param name="eclassifier">RentalCarSize</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="false" table="`rentalcontract`"> - <meta attribute="eclassName" inherit="false">RentalContract</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="rentalcontract_rentalunits"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> - </list> - <many-to-one name="currency" entity-name="Currency" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalcontract_currency" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`currency_currency_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.rental.impl.ManufacturerImpl" entity-name="Manufacturer" abstract="false" lazy="false" table="`manufacturer`"> - <meta attribute="eclassName" inherit="false">Manufacturer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - <property name="trusted" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Boolean"> - <column not-null="false" unique="false" name="`trusted`"/> - </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/SimpleLibraryAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleLibraryAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 22e89b45b..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleLibraryAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" lazy="false" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="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> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_writers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_writers_idx`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="writer_books"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/SimpleLibraryAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleLibraryAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 2f9c4069f..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleLibraryAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,84 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" lazy="false" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_writers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_writers_idx`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="writer_books"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/SimpleLibraryAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleLibraryAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 2f9c4069f..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleLibraryAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,84 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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="title" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </property> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" lazy="false" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_writers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_writers_idx`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> - <meta attribute="syntheticId">true</meta> - <generator class="native"/> - </id> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="writer_books"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/SimpleLibraryResourceAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleLibraryResourceAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index c8ecc0539..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleLibraryResourceAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" discriminator-value="Book" table="`book`"> - <meta attribute="eclassName">Book</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="bookdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" discriminator-value="Library" table="`library`"> - <meta attribute="eclassName">Library</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="librarydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" discriminator-value="Writer" table="`writer`"> - <meta attribute="eclassName">Writer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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 type="string"> - <column name="dtype" index="writerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/SimpleLibraryResourceAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleLibraryResourceAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 7aa6cdb03..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleLibraryResourceAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" table="`abc`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`library_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`test_index`"/> - <many-to-many entity-name="Writer" unique="true" foreign-key="schrijvers"> - <column name="`writer_e_id`" not-null="true" unique="false"/> - </many-to-many> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/SimpleLibraryResourceAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleLibraryResourceAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index d4e470760..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleLibraryResourceAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,85 +0,0 @@ -<?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"> - <typedef name="library.BookCategoryObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - <param name="edatatype">BookCategoryObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.BookImpl" entity-name="Book" abstract="false" lazy="false" table="`book`"> - <meta attribute="eclassName" inherit="false">Book</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</meta> - <id name="title" type="java.lang.String"> - <column not-null="true" unique="false" name="`title`"/> - </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="pages" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`pages`"/> - </property> - <property name="category" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`category`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserIntegerType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.library.BookCategory</param> - <param name="eclassifier">BookCategory</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</param> - </type> - </property> - <many-to-one name="author" entity-name="Writer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="book_author" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`book_author_e_id`"/> - </many-to-one> - <property name="test" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`test`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.LibraryImpl" entity-name="Library" abstract="false" lazy="false" table="`library`"> - <meta attribute="eclassName" inherit="false">Library</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="writers" fetch="subselect" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="schrijvers"> - <column name="`library_writers_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`test_index`"/> - <one-to-many entity-name="Writer"/> - </list> - <list name="books" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="library_books"> - <column name="`library_books_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`library_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.library.impl.WriterImpl" entity-name="Writer" abstract="false" lazy="false" table="`writer`"> - <meta attribute="eclassName" inherit="false">Writer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/Library</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> - <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> - <list name="books" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`book_author_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`writer_books_idx`"/> - <one-to-many entity-name="Book"/> - </list> - </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/SimpleRentalAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleRentalAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index a0bf05b2c..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleRentalAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,123 +0,0 @@ -<?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"> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="false" discriminator-value="RentalUnit" table="`rentalunit`"> - <meta attribute="eclassName">RentalUnit</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="rentalunitdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - </class> - <subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="false" extends="RentalUnit" discriminator-value="RentalBicycle"> - <meta attribute="eclassName">RentalBicycle</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - <param name="eclassifier">RentalBicycleType</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - <many-to-one name="manufacturer" entity-name="Manufacturer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalbicycle_manufacturer" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`manufacturer_manufacturer_e_id`"/> - </many-to-one> - </subclass> - <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="false" discriminator-value="Currency" table="`currency`"> - <meta attribute="eclassName">Currency</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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 type="string"> - <column name="dtype" index="currencydtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - </class> - <subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="false" extends="RentalUnit" discriminator-value="RentalCar"> - <meta attribute="eclassName">RentalCar</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</meta> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - <param name="eclassifier">RentalCarSize</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - </subclass> - <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="false" discriminator-value="RentalContract" table="`rentalcontract`"> - <meta attribute="eclassName">RentalContract</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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 type="string"> - <column name="dtype" index="rentalcontractdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="rentalcontract_rentalunits"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> - </list> - <many-to-one name="currency" entity-name="Currency" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalcontract_currency" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`currency_currency_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.rental.impl.ManufacturerImpl" entity-name="Manufacturer" abstract="false" lazy="false" discriminator-value="Manufacturer" table="`manufacturer`"> - <meta attribute="eclassName">Manufacturer</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/rental</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 type="string"> - <column name="dtype" index="manufacturerdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </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/SimpleRentalAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleRentalAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 2d79f6607..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleRentalAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,117 +0,0 @@ -<?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"> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="false" table="`rentalunit`"> - <meta attribute="eclassName" inherit="false">RentalUnit</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </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> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="false" extends="RentalUnit" table="`rentalbicycle`"> - <meta attribute="eclassName" inherit="false">RentalBicycle</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - <param name="eclassifier">RentalBicycleType</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - <many-to-one name="manufacturer" entity-name="Manufacturer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalbicycle_manufacturer" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`manufacturer_manufacturer_e_id`"/> - </many-to-one> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="false" table="`currency`"> - <meta attribute="eclassName" inherit="false">Currency</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - </class> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="false" extends="RentalUnit" table="`rentalcar`"> - <meta attribute="eclassName" inherit="false">RentalCar</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - <param name="eclassifier">RentalCarSize</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="false" table="`rentalcontract`"> - <meta attribute="eclassName" inherit="false">RentalContract</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="rentalcontract_rentalunits"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> - </list> - <many-to-one name="currency" entity-name="Currency" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalcontract_currency" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`currency_currency_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.rental.impl.ManufacturerImpl" entity-name="Manufacturer" abstract="false" lazy="false" table="`manufacturer`"> - <meta attribute="eclassName" inherit="false">Manufacturer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </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/SimpleRentalAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleRentalAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index c92641ce3..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SimpleRentalAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,120 +0,0 @@ -<?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"> - <typedef name="rental.RentalBicycleTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalBicycleTypeObject</param> - </typedef> - <typedef name="rental.RentalCarSizeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - <param name="edatatype">RentalCarSizeObject</param> - </typedef> - <class name="org.eclipse.emf.teneo.rental.impl.RentalUnitImpl" entity-name="RentalUnit" abstract="true" lazy="false" table="`rentalunit`"> - <meta attribute="eclassName" inherit="false">RentalUnit</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <id name="description" type="java.lang.String"> - <column not-null="true" unique="false" name="`description`"/> - </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> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalBicycleImpl" entity-name="RentalBicycle" abstract="false" lazy="false" extends="RentalUnit" table="`rentalbicycle`"> - <meta attribute="eclassName" inherit="false">RentalBicycle</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="type" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`type`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalBicycleType</param> - <param name="eclassifier">RentalBicycleType</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - <many-to-one name="manufacturer" entity-name="Manufacturer" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalbicycle_manufacturer" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`manufacturer_manufacturer_e_id`"/> - </many-to-one> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.CurrencyImpl" entity-name="Currency" abstract="false" lazy="false" table="`currency`"> - <meta attribute="eclassName" inherit="false">Currency</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - </class> - <joined-subclass name="org.eclipse.emf.teneo.rental.impl.RentalCarImpl" entity-name="RentalCar" abstract="false" lazy="false" extends="RentalUnit" table="`rentalcar`"> - <meta attribute="eclassName" inherit="false">RentalCar</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</meta> - <key> - <column name="`rentalunit_description`"/> - </key> - <property name="size" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`size`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.rental.RentalCarSize</param> - <param name="eclassifier">RentalCarSize</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/rental</param> - </type> - </property> - </joined-subclass> - <class name="org.eclipse.emf.teneo.rental.impl.RentalContractImpl" entity-name="RentalContract" abstract="false" lazy="false" table="`rentalcontract`"> - <meta attribute="eclassName" inherit="false">RentalContract</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="rentToBusinessPartner" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`renttobusinesspartner`"/> - </property> - <property name="startDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> - <column not-null="true" unique="false" name="`startdate`"/> - </property> - <property name="endDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp"> - <column not-null="false" unique="false" name="`enddate`"/> - </property> - <property name="cost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> - <column not-null="false" unique="false" name="`cost`"/> - </property> - <list name="rentalUnits" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true" foreign-key="rentalcontract_rentalunits"> - <column name="`rentalcontract_rentalunits_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`rentalcontract_rentalunits_idx`"/> - <one-to-many entity-name="RentalUnit"/> - </list> - <many-to-one name="currency" entity-name="Currency" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="rentalcontract_currency" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`currency_currency_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.rental.impl.ManufacturerImpl" entity-name="Manufacturer" abstract="false" lazy="false" table="`manufacturer`"> - <meta attribute="eclassName" inherit="false">Manufacturer</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/rental</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> - <property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`code`"/> - </property> - <property name="trusted" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.Boolean"> - <column not-null="false" unique="false" name="`trusted`"/> - </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/SunBooksAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SunBooksAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 9065f62b7..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SunBooksAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,138 +0,0 @@ -<?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"> - <typedef name="sunBooks.BookCategoryTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> - <param name="edatatype">BookCategoryTypeObject</param> - </typedef> - <typedef name="sunBooks.BookCategoryTypeObject1" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> - <param name="edatatype">BookCategoryTypeObject1</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.AuthorsTypeImpl" entity-name="AuthorsType" abstract="false" lazy="false" discriminator-value="AuthorsType" table="`authorstype`"> - <meta attribute="eclassName">AuthorsType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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 type="string"> - <column name="dtype" index="authorstypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="authorName" table="`authorstype_authorname`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`authorstype_authorname_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`authorstype_authorname_idx`"/> - <element type="java.lang.String"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.BooksTypeImpl" entity-name="BooksType" abstract="false" lazy="false" discriminator-value="BooksType" table="`bookstype`"> - <meta attribute="eclassName">BooksType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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 type="string"> - <column name="dtype" index="bookstypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <list name="book" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="bookstype_book"> - <column name="`bookstype_book_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`bookstype_book_idx`"/> - <one-to-many entity-name="BookType"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.BookTypeImpl" entity-name="BookType" abstract="false" lazy="false" discriminator-value="BookType" table="`booktype`"> - <meta attribute="eclassName">BookType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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 type="string"> - <column name="dtype" index="booktypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`name`"/> - </property> - <property name="iSBN" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> - <column not-null="false" unique="false" name="`isbn`"/> - </property> - <property name="price" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`price`"/> - </property> - <many-to-one name="authors" entity-name="AuthorsType" lazy="false" cascade="all" foreign-key="booktype_authors" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`authorstype_authors_e_id`"/> - </many-to-one> - <property name="description" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`description`"/> - </property> - <many-to-one name="promotion" entity-name="PromotionType" lazy="false" cascade="all" foreign-key="booktype_promotion" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`promotiontype_promotion_e_id`"/> - </many-to-one> - <property name="publicationDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="true" unique="false" name="`publicationdate`"/> - </property> - <property name="bookCategory" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`bookcategory`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.sunBooks.BookCategoryType1</param> - <param name="eclassifier">BookCategoryType1</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> - </type> - </property> - <property name="itemId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`itemid`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.CollectionTypeImpl" entity-name="CollectionType" abstract="false" lazy="false" discriminator-value="CollectionType" table="`collectiontype`"> - <meta attribute="eclassName">CollectionType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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 type="string"> - <column name="dtype" index="collectiontypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <many-to-one name="books" entity-name="BooksType" lazy="false" cascade="all" foreign-key="collectiontype_books" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`bookstype_books_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.PromotionTypeImpl" entity-name="PromotionType" abstract="false" lazy="false" discriminator-value="PromotionType" table="`promotiontype`"> - <meta attribute="eclassName">PromotionType</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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 type="string"> - <column name="dtype" index="promotiontypedtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="discount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`discount`"/> - </property> - <property name="none" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`none`"/> - </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/SunBooksAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SunBooksAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 30fab8e09..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SunBooksAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,123 +0,0 @@ -<?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"> - <typedef name="sunBooks.BookCategoryTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> - <param name="edatatype">BookCategoryTypeObject</param> - </typedef> - <typedef name="sunBooks.BookCategoryTypeObject1" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> - <param name="edatatype">BookCategoryTypeObject1</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.AuthorsTypeImpl" entity-name="AuthorsType" abstract="false" lazy="false" table="`authorstype`"> - <meta attribute="eclassName" inherit="false">AuthorsType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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="authorName" table="`authorstype_authorname`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`authorstype_authorname_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`authorstype_authorname_idx`"/> - <element type="java.lang.String"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.BooksTypeImpl" entity-name="BooksType" abstract="false" lazy="false" table="`bookstype`"> - <meta attribute="eclassName" inherit="false">BooksType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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="book" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="bookstype_book"> - <column name="`bookstype_book_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`bookstype_book_idx`"/> - <one-to-many entity-name="BookType"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.BookTypeImpl" entity-name="BookType" abstract="false" lazy="false" table="`booktype`"> - <meta attribute="eclassName" inherit="false">BookType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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> - <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> - <property name="iSBN" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> - <column not-null="false" unique="false" name="`isbn`"/> - </property> - <property name="price" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`price`"/> - </property> - <many-to-one name="authors" entity-name="AuthorsType" lazy="false" cascade="all" foreign-key="booktype_authors" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`authorstype_authors_e_id`"/> - </many-to-one> - <property name="description" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`description`"/> - </property> - <many-to-one name="promotion" entity-name="PromotionType" lazy="false" cascade="all" foreign-key="booktype_promotion" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`promotiontype_promotion_e_id`"/> - </many-to-one> - <property name="publicationDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="true" unique="false" name="`publicationdate`"/> - </property> - <property name="bookCategory" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`bookcategory`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.sunBooks.BookCategoryType1</param> - <param name="eclassifier">BookCategoryType1</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> - </type> - </property> - <property name="itemId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`itemid`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.CollectionTypeImpl" entity-name="CollectionType" abstract="false" lazy="false" table="`collectiontype`"> - <meta attribute="eclassName" inherit="false">CollectionType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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> - <many-to-one name="books" entity-name="BooksType" lazy="false" cascade="all" foreign-key="collectiontype_books" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`bookstype_books_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.PromotionTypeImpl" entity-name="PromotionType" abstract="false" lazy="false" table="`promotiontype`"> - <meta attribute="eclassName" inherit="false">PromotionType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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> - <property name="discount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`discount`"/> - </property> - <property name="none" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`none`"/> - </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/SunBooksAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SunBooksAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 30fab8e09..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/SunBooksAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,123 +0,0 @@ -<?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"> - <typedef name="sunBooks.BookCategoryTypeObject" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> - <param name="edatatype">BookCategoryTypeObject</param> - </typedef> - <typedef name="sunBooks.BookCategoryTypeObject1" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType"> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> - <param name="edatatype">BookCategoryTypeObject1</param> - </typedef> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.AuthorsTypeImpl" entity-name="AuthorsType" abstract="false" lazy="false" table="`authorstype`"> - <meta attribute="eclassName" inherit="false">AuthorsType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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="authorName" table="`authorstype_authorname`" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`authorstype_authorname_e_id`" not-null="true" unique="false"/> - </key> - <list-index column="`authorstype_authorname_idx`"/> - <element type="java.lang.String"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.BooksTypeImpl" entity-name="BooksType" abstract="false" lazy="false" table="`bookstype`"> - <meta attribute="eclassName" inherit="false">BooksType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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="book" lazy="true" cascade="all,delete-orphan"> - <key update="true" foreign-key="bookstype_book"> - <column name="`bookstype_book_e_id`" not-null="false" unique="false"/> - </key> - <list-index column="`bookstype_book_idx`"/> - <one-to-many entity-name="BookType"/> - </list> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.BookTypeImpl" entity-name="BookType" abstract="false" lazy="false" table="`booktype`"> - <meta attribute="eclassName" inherit="false">BookType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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> - <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> - <property name="iSBN" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long"> - <column not-null="false" unique="false" name="`isbn`"/> - </property> - <property name="price" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`price`"/> - </property> - <many-to-one name="authors" entity-name="AuthorsType" lazy="false" cascade="all" foreign-key="booktype_authors" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`authorstype_authors_e_id`"/> - </many-to-one> - <property name="description" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`description`"/> - </property> - <many-to-one name="promotion" entity-name="PromotionType" lazy="false" cascade="all" foreign-key="booktype_promotion" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`promotiontype_promotion_e_id`"/> - </many-to-one> - <property name="publicationDate" lazy="false" insert="true" update="true" not-null="true" unique="false" type="org.eclipse.emf.teneo.hibernate.mapping.XSDDate"> - <column not-null="true" unique="false" name="`publicationdate`"/> - </property> - <property name="bookCategory" lazy="false" not-null="false" insert="true" update="true" unique="false"> - <column not-null="false" unique="false" name="`bookcategory`"/> - <type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType"> - <param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.sunBooks.BookCategoryType1</param> - <param name="eclassifier">BookCategoryType1</param> - <param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</param> - </type> - </property> - <property name="itemId" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`itemid`"/> - </property> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.CollectionTypeImpl" entity-name="CollectionType" abstract="false" lazy="false" table="`collectiontype`"> - <meta attribute="eclassName" inherit="false">CollectionType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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> - <many-to-one name="books" entity-name="BooksType" lazy="false" cascade="all" foreign-key="collectiontype_books" insert="true" update="true" not-null="true" unique="true"> - <column not-null="true" unique="false" name="`bookstype_books_e_id`"/> - </many-to-one> - </class> - <class name="org.eclipse.emf.teneo.samples.emf.sample.sunBooks.impl.PromotionTypeImpl" entity-name="PromotionType" abstract="false" lazy="false" table="`promotiontype`"> - <meta attribute="eclassName" inherit="false">PromotionType</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/sun_books</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> - <property name="discount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`discount`"/> - </property> - <property name="none" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`none`"/> - </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/WorkFlowAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_a_o_hibernate.hbm.xml deleted file mode 100755 index 9562f4eea..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_a_o_hibernate.hbm.xml +++ /dev/null @@ -1,180 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowElementImpl" entity-name="WorkflowElement" abstract="true" lazy="false" discriminator-value="WorkflowElement" table="`workflowelement`"> - <meta attribute="eclassName">WorkflowElement</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <id name="id" type="java.lang.String"> - <column not-null="true" unique="false" name="`id`"/> - </id> - <discriminator type="string"> - <column name="dtype" index="workflowelementdtype" length="255" not-null="true"/> - </discriminator> - <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"> - <meta attribute="syntheticVersion">true</meta> - </version> - <property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`name`"/> - </property> - <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`comment`"/> - </property> - <property name="x" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`x`"/> - </property> - <property name="y" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`y`"/> - </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="height" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`height`"/> - </property> - </class> - <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowImpl" entity-name="Workflow" abstract="false" lazy="false" extends="WorkflowElement" discriminator-value="Workflow"> - <meta attribute="eclassName">Workflow</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <list name="nodes" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`workflownode_workflow_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflow_nodes_idx`"/> - <one-to-many entity-name="WorkflowNode"/> - </list> - <list name="edges" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`edge_workflow_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflow_edges_idx`"/> - <one-to-many entity-name="Edge"/> - </list> - <list name="comments" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`comment_workflow_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflow_comments_idx`"/> - <one-to-many entity-name="Comment"/> - </list> - </subclass> - <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowNodeImpl" entity-name="WorkflowNode" abstract="true" lazy="false" extends="WorkflowElement" discriminator-value="WorkflowNode"> - <meta attribute="eclassName">WorkflowNode</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <many-to-one name="workflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="workflownode_workflow" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`workflownode_workflow_id`"/> - </many-to-one> - <list name="outputs" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`outputport_node_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflownode_outputs_idx`"/> - <one-to-many entity-name="OutputPort"/> - </list> - <list name="inputs" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`inputport_node_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflownode_inputs_idx`"/> - <one-to-many entity-name="InputPort"/> - </list> - <property name="isStart" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`isstart`"/> - </property> - <property name="isFinish" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean"> - <column not-null="false" unique="false" name="`isfinish`"/> - </property> - </subclass> - <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.EdgeImpl" entity-name="Edge" abstract="false" lazy="false" extends="WorkflowElement" discriminator-value="Edge"> - <meta attribute="eclassName">Edge</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <many-to-one name="workflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="edge_workflow" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`edge_workflow_id`"/> - </many-to-one> - <many-to-one name="target" entity-name="InputPort" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="edge_target" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`edge_target_id`"/> - </many-to-one> - <many-to-one name="source" entity-name="OutputPort" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="edge_source" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`edge_source_id`"/> - </many-to-one> - </subclass> - <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.PortImpl" entity-name="Port" abstract="true" lazy="false" extends="WorkflowElement" discriminator-value="Port"> - <meta attribute="eclassName">Port</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - </subclass> - <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.InputPortImpl" entity-name="InputPort" abstract="false" lazy="false" extends="Port" discriminator-value="InputPort"> - <meta attribute="eclassName">InputPort</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <many-to-one name="node" entity-name="WorkflowNode" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="inputport_node" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`inputport_node_id`"/> - </many-to-one> - <list name="edges" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`edge_target_id`" not-null="false" unique="false"/> - </key> - <list-index column="`inputport_edges_idx`"/> - <one-to-many entity-name="Edge"/> - </list> - </subclass> - <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.OutputPortImpl" entity-name="OutputPort" abstract="false" lazy="false" extends="Port" discriminator-value="OutputPort"> - <meta attribute="eclassName">OutputPort</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <many-to-one name="node" entity-name="WorkflowNode" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="outputport_node" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`outputport_node_id`"/> - </many-to-one> - <list name="edges" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`edge_source_id`" not-null="false" unique="false"/> - </key> - <list-index column="`outputport_edges_idx`"/> - <one-to-many entity-name="Edge"/> - </list> - </subclass> - <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.FaultImpl" entity-name="Fault" abstract="false" lazy="false" extends="OutputPort" discriminator-value="Fault"> - <meta attribute="eclassName">Fault</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - </subclass> - <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.CompoundTaskImpl" entity-name="CompoundTask" abstract="false" lazy="false" extends="WorkflowNode" discriminator-value="CompoundTask"> - <meta attribute="eclassName">CompoundTask</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <many-to-one name="subworkflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="compoundtask_subworkflow" insert="true" update="true" not-null="false"> - <column not-null="false" unique="false" name="`workflow_subworkflow_id`"/> - </many-to-one> - </subclass> - <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.TransformationTaskImpl" entity-name="TransformationTask" abstract="false" lazy="false" extends="WorkflowNode" discriminator-value="TransformationTask"> - <meta attribute="eclassName">TransformationTask</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <property name="transformExpression" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`transformexpression`"/> - </property> - </subclass> - <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.ConditionalTaskImpl" entity-name="ConditionalTask" abstract="false" lazy="false" extends="WorkflowNode" discriminator-value="ConditionalTask"> - <meta attribute="eclassName">ConditionalTask</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - </subclass> - <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.LoopTaskImpl" entity-name="LoopTask" abstract="false" lazy="false" extends="CompoundTask" discriminator-value="LoopTask"> - <meta attribute="eclassName">LoopTask</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <property name="whileCondition" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`whilecondition`"/> - </property> - </subclass> - <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.ConditionalOutputPortImpl" entity-name="ConditionalOutputPort" abstract="false" lazy="false" extends="OutputPort" discriminator-value="ConditionalOutputPort"> - <meta attribute="eclassName">ConditionalOutputPort</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <property name="condition" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`condition`"/> - </property> - </subclass> - <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.CommentImpl" entity-name="Comment" abstract="false" lazy="false" extends="WorkflowElement" discriminator-value="Comment"> - <meta attribute="eclassName">Comment</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <many-to-one name="workflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="comment_workflow" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`comment_workflow_id`"/> - </many-to-one> - </subclass> - <subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.TaskImpl" entity-name="Task" abstract="false" lazy="false" extends="WorkflowNode" discriminator-value="Task"> - <meta attribute="eclassName">Task</meta> - <meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - </subclass> -</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/WorkFlowAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_e_o_hibernate.hbm.xml deleted file mode 100755 index 740acf1bd..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_e_o_hibernate.hbm.xml +++ /dev/null @@ -1,219 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowElementImpl" entity-name="WorkflowElement" abstract="true" lazy="false" table="`workflowelement`"> - <meta attribute="eclassName" inherit="false">WorkflowElement</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <id name="id" type="java.lang.String"> - <column not-null="true" unique="false" name="`id`"/> - </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="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`name`"/> - </property> - <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`comment`"/> - </property> - <property name="x" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`x`"/> - </property> - <property name="y" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`y`"/> - </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="height" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`height`"/> - </property> - </class> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowImpl" entity-name="Workflow" abstract="false" lazy="false" extends="WorkflowElement" table="`workflow`"> - <meta attribute="eclassName" inherit="false">Workflow</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflowelement_id`"/> - </key> - <list name="nodes" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`workflownode_workflow_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflow_nodes_idx`"/> - <one-to-many entity-name="WorkflowNode"/> - </list> - <list name="edges" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`edge_workflow_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflow_edges_idx`"/> - <one-to-many entity-name="Edge"/> - </list> - <list name="comments" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`comment_workflow_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflow_comments_idx`"/> - <one-to-many entity-name="Comment"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowNodeImpl" entity-name="WorkflowNode" abstract="true" lazy="false" extends="WorkflowElement" table="`workflownode`"> - <meta attribute="eclassName" inherit="false">WorkflowNode</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflowelement_id`"/> - </key> - <many-to-one name="workflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="workflownode_workflow" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`workflownode_workflow_id`"/> - </many-to-one> - <list name="outputs" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`outputport_node_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflownode_outputs_idx`"/> - <one-to-many entity-name="OutputPort"/> - </list> - <list name="inputs" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`inputport_node_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflownode_inputs_idx`"/> - <one-to-many entity-name="InputPort"/> - </list> - <property name="isStart" lazy="false" insert="true" update="true" not-null="true" unique="false" type="boolean"> - <column not-null="true" unique="false" name="`isstart`"/> - </property> - <property name="isFinish" lazy="false" insert="true" update="true" not-null="true" unique="false" type="boolean"> - <column not-null="true" unique="false" name="`isfinish`"/> - </property> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.EdgeImpl" entity-name="Edge" abstract="false" lazy="false" extends="WorkflowElement" table="`edge`"> - <meta attribute="eclassName" inherit="false">Edge</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflowelement_id`"/> - </key> - <many-to-one name="workflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="edge_workflow" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`edge_workflow_id`"/> - </many-to-one> - <many-to-one name="target" entity-name="InputPort" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="edge_target" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`edge_target_id`"/> - </many-to-one> - <many-to-one name="source" entity-name="OutputPort" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="edge_source" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`edge_source_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.PortImpl" entity-name="Port" abstract="true" lazy="false" extends="WorkflowElement" table="`port`"> - <meta attribute="eclassName" inherit="false">Port</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflowelement_id`"/> - </key> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.InputPortImpl" entity-name="InputPort" abstract="false" lazy="false" extends="Port" table="`inputport`"> - <meta attribute="eclassName" inherit="false">InputPort</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`port_id`"/> - </key> - <many-to-one name="node" entity-name="WorkflowNode" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="inputport_node" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`inputport_node_id`"/> - </many-to-one> - <list name="edges" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`edge_target_id`" not-null="false" unique="false"/> - </key> - <list-index column="`inputport_edges_idx`"/> - <one-to-many entity-name="Edge"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.OutputPortImpl" entity-name="OutputPort" abstract="false" lazy="false" extends="Port" table="`outputport`"> - <meta attribute="eclassName" inherit="false">OutputPort</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`port_id`"/> - </key> - <many-to-one name="node" entity-name="WorkflowNode" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="outputport_node" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`outputport_node_id`"/> - </many-to-one> - <list name="edges" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`edge_source_id`" not-null="false" unique="false"/> - </key> - <list-index column="`outputport_edges_idx`"/> - <one-to-many entity-name="Edge"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.FaultImpl" entity-name="Fault" abstract="false" lazy="false" extends="OutputPort" table="`fault`"> - <meta attribute="eclassName" inherit="false">Fault</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`outputport_id`"/> - </key> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.CompoundTaskImpl" entity-name="CompoundTask" abstract="false" lazy="false" extends="WorkflowNode" table="`compoundtask`"> - <meta attribute="eclassName" inherit="false">CompoundTask</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflownode_id`"/> - </key> - <many-to-one name="subworkflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="compoundtask_subworkflow" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`workflow_subworkflow_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.TransformationTaskImpl" entity-name="TransformationTask" abstract="false" lazy="false" extends="WorkflowNode" table="`transformationtask`"> - <meta attribute="eclassName" inherit="false">TransformationTask</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflownode_id`"/> - </key> - <property name="transformExpression" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`transformexpression`"/> - </property> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.ConditionalTaskImpl" entity-name="ConditionalTask" abstract="false" lazy="false" extends="WorkflowNode" table="`conditionaltask`"> - <meta attribute="eclassName" inherit="false">ConditionalTask</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflownode_id`"/> - </key> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.LoopTaskImpl" entity-name="LoopTask" abstract="false" lazy="false" extends="CompoundTask" table="`looptask`"> - <meta attribute="eclassName" inherit="false">LoopTask</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`compoundtask_id`"/> - </key> - <property name="whileCondition" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`whilecondition`"/> - </property> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.ConditionalOutputPortImpl" entity-name="ConditionalOutputPort" abstract="false" lazy="false" extends="OutputPort" table="`conditionaloutputport`"> - <meta attribute="eclassName" inherit="false">ConditionalOutputPort</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`outputport_id`"/> - </key> - <property name="condition" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`condition`"/> - </property> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.CommentImpl" entity-name="Comment" abstract="false" lazy="false" extends="WorkflowElement" table="`comment`"> - <meta attribute="eclassName" inherit="false">Comment</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflowelement_id`"/> - </key> - <many-to-one name="workflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="comment_workflow" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`comment_workflow_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.TaskImpl" entity-name="Task" abstract="false" lazy="false" extends="WorkflowNode" table="`task`"> - <meta attribute="eclassName" inherit="false">Task</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflownode_id`"/> - </key> - </joined-subclass> -</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/WorkFlowAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_s_o_hibernate.hbm.xml deleted file mode 100755 index 740acf1bd..000000000 --- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/WorkFlowAction_mysql_s_o_hibernate.hbm.xml +++ /dev/null @@ -1,219 +0,0 @@ -<?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="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowElementImpl" entity-name="WorkflowElement" abstract="true" lazy="false" table="`workflowelement`"> - <meta attribute="eclassName" inherit="false">WorkflowElement</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <id name="id" type="java.lang.String"> - <column not-null="true" unique="false" name="`id`"/> - </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="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`name`"/> - </property> - <property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`comment`"/> - </property> - <property name="x" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`x`"/> - </property> - <property name="y" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`y`"/> - </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="height" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> - <column not-null="false" unique="false" name="`height`"/> - </property> - </class> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowImpl" entity-name="Workflow" abstract="false" lazy="false" extends="WorkflowElement" table="`workflow`"> - <meta attribute="eclassName" inherit="false">Workflow</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflowelement_id`"/> - </key> - <list name="nodes" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`workflownode_workflow_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflow_nodes_idx`"/> - <one-to-many entity-name="WorkflowNode"/> - </list> - <list name="edges" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`edge_workflow_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflow_edges_idx`"/> - <one-to-many entity-name="Edge"/> - </list> - <list name="comments" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`comment_workflow_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflow_comments_idx`"/> - <one-to-many entity-name="Comment"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowNodeImpl" entity-name="WorkflowNode" abstract="true" lazy="false" extends="WorkflowElement" table="`workflownode`"> - <meta attribute="eclassName" inherit="false">WorkflowNode</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflowelement_id`"/> - </key> - <many-to-one name="workflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="workflownode_workflow" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`workflownode_workflow_id`"/> - </many-to-one> - <list name="outputs" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`outputport_node_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflownode_outputs_idx`"/> - <one-to-many entity-name="OutputPort"/> - </list> - <list name="inputs" lazy="true" cascade="all,delete-orphan"> - <key update="true"> - <column name="`inputport_node_id`" not-null="false" unique="false"/> - </key> - <list-index column="`workflownode_inputs_idx`"/> - <one-to-many entity-name="InputPort"/> - </list> - <property name="isStart" lazy="false" insert="true" update="true" not-null="true" unique="false" type="boolean"> - <column not-null="true" unique="false" name="`isstart`"/> - </property> - <property name="isFinish" lazy="false" insert="true" update="true" not-null="true" unique="false" type="boolean"> - <column not-null="true" unique="false" name="`isfinish`"/> - </property> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.EdgeImpl" entity-name="Edge" abstract="false" lazy="false" extends="WorkflowElement" table="`edge`"> - <meta attribute="eclassName" inherit="false">Edge</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflowelement_id`"/> - </key> - <many-to-one name="workflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="edge_workflow" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`edge_workflow_id`"/> - </many-to-one> - <many-to-one name="target" entity-name="InputPort" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="edge_target" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`edge_target_id`"/> - </many-to-one> - <many-to-one name="source" entity-name="OutputPort" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="edge_source" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`edge_source_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.PortImpl" entity-name="Port" abstract="true" lazy="false" extends="WorkflowElement" table="`port`"> - <meta attribute="eclassName" inherit="false">Port</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflowelement_id`"/> - </key> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.InputPortImpl" entity-name="InputPort" abstract="false" lazy="false" extends="Port" table="`inputport`"> - <meta attribute="eclassName" inherit="false">InputPort</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`port_id`"/> - </key> - <many-to-one name="node" entity-name="WorkflowNode" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="inputport_node" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`inputport_node_id`"/> - </many-to-one> - <list name="edges" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`edge_target_id`" not-null="false" unique="false"/> - </key> - <list-index column="`inputport_edges_idx`"/> - <one-to-many entity-name="Edge"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.OutputPortImpl" entity-name="OutputPort" abstract="false" lazy="false" extends="Port" table="`outputport`"> - <meta attribute="eclassName" inherit="false">OutputPort</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`port_id`"/> - </key> - <many-to-one name="node" entity-name="WorkflowNode" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="outputport_node" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`outputport_node_id`"/> - </many-to-one> - <list name="edges" lazy="true" cascade="merge,persist,save-update,lock,refresh"> - <key update="true"> - <column name="`edge_source_id`" not-null="false" unique="false"/> - </key> - <list-index column="`outputport_edges_idx`"/> - <one-to-many entity-name="Edge"/> - </list> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.FaultImpl" entity-name="Fault" abstract="false" lazy="false" extends="OutputPort" table="`fault`"> - <meta attribute="eclassName" inherit="false">Fault</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`outputport_id`"/> - </key> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.CompoundTaskImpl" entity-name="CompoundTask" abstract="false" lazy="false" extends="WorkflowNode" table="`compoundtask`"> - <meta attribute="eclassName" inherit="false">CompoundTask</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflownode_id`"/> - </key> - <many-to-one name="subworkflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="compoundtask_subworkflow" insert="true" update="true" not-null="true"> - <column not-null="true" unique="false" name="`workflow_subworkflow_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.TransformationTaskImpl" entity-name="TransformationTask" abstract="false" lazy="false" extends="WorkflowNode" table="`transformationtask`"> - <meta attribute="eclassName" inherit="false">TransformationTask</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflownode_id`"/> - </key> - <property name="transformExpression" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String"> - <column not-null="false" unique="false" name="`transformexpression`"/> - </property> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.ConditionalTaskImpl" entity-name="ConditionalTask" abstract="false" lazy="false" extends="WorkflowNode" table="`conditionaltask`"> - <meta attribute="eclassName" inherit="false">ConditionalTask</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflownode_id`"/> - </key> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.LoopTaskImpl" entity-name="LoopTask" abstract="false" lazy="false" extends="CompoundTask" table="`looptask`"> - <meta attribute="eclassName" inherit="false">LoopTask</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`compoundtask_id`"/> - </key> - <property name="whileCondition" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`whilecondition`"/> - </property> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.ConditionalOutputPortImpl" entity-name="ConditionalOutputPort" abstract="false" lazy="false" extends="OutputPort" table="`conditionaloutputport`"> - <meta attribute="eclassName" inherit="false">ConditionalOutputPort</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`outputport_id`"/> - </key> - <property name="condition" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> - <column not-null="true" unique="false" name="`condition`"/> - </property> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.CommentImpl" entity-name="Comment" abstract="false" lazy="false" extends="WorkflowElement" table="`comment`"> - <meta attribute="eclassName" inherit="false">Comment</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflowelement_id`"/> - </key> - <many-to-one name="workflow" entity-name="Workflow" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="comment_workflow" insert="false" update="false" not-null="false"> - <column not-null="false" unique="false" name="`comment_workflow_id`"/> - </many-to-one> - </joined-subclass> - <joined-subclass name="org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.TaskImpl" entity-name="Task" abstract="false" lazy="false" extends="WorkflowNode" table="`task`"> - <meta attribute="eclassName" inherit="false">Task</meta> - <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/workflow</meta> - <key> - <column name="`workflownode_id`"/> - </key> - </joined-subclass> -</hibernate-mapping>
\ No newline at end of file |