diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionAction_hsqldb_e_o_hibernate.hbm.xml')
-rw-r--r-- | tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionAction_hsqldb_e_o_hibernate.hbm.xml | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionAction_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionAction_hsqldb_e_o_hibernate.hbm.xml new file mode 100644 index 000000000..8aa5f0570 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.schemaconstructs/SubstitutionAction_hsqldb_e_o_hibernate.hbm.xml @@ -0,0 +1,124 @@ +<?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.schemaconstructs.substitution.impl.ComplexNumberImpl" entity-name="ComplexNumber" abstract="false" lazy="false" table="`COMPLEXNUMBER`"> + <meta attribute="eclassName" inherit="false">ComplexNumber</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</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.math.BigInteger"> + <column not-null="true" unique="false" name="`VALUE`"/> + </property> + <property name="unit" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`UNIT`"/> + </property> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.EvenComplexNumberTypeImpl" entity-name="EvenComplexNumberType" abstract="false" lazy="false" extends="ComplexNumber" table="`EVENCOMPLEXNUMBERTYPE`"> + <meta attribute="eclassName" inherit="false">EvenComplexNumberType</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <key> + <column name="`COMPLEXNUMBER_E_ID`"/> + </key> + </joined-subclass> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.MultiNumberTypeImpl" entity-name="MultiNumberType" abstract="false" lazy="false" table="`MULTINUMBERTYPE`"> + <meta attribute="eclassName" inherit="false">MultiNumberType</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</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="myComplexAbstractGroup" table="`MULTINUMBERTYPE_MYCOMPLEXABSTRACTGROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`MULTINUMBERTYPE_MYCOMPLEXABSTRACTGROUP_E_ID`" unique="false"/> + </key> + <list-index column="`MULTINUMBERTYPE_MYCOMPLEXABSTRACTGROUP_IDX`"/> + <one-to-many entity-name="MultiNumberType_myComplexAbstractGroup"/> + </list> + </class> + <class entity-name="MultiNumberType_myComplexAbstractGroup" lazy="false" table="`MULTINUMBERTYPE_MYCOMPLEXABSTRACTGROUP`"> + <meta attribute="featureMap" inherit="false">MultiNumberType</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="myComplexAbstract" entity-name="ComplexNumber" lazy="false" cascade="all" foreign-key="MULTINUMBERTYPE_MYCOMPLEXABSTRACT" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MYCOMPLEXABSTRACTGROUP_COMPLEXNUMBER_MYCOMPLEXABSTRACT_E_ID`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.NumberTypeImpl" entity-name="NumberType" abstract="false" lazy="false" table="`NUMBERTYPE`"> + <meta attribute="eclassName" inherit="false">NumberType</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</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="mySimpleAbstractGroup" table="`NUMBERTYPE_MYSIMPLEABSTRACTGROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`NUMBERTYPE_MYSIMPLEABSTRACTGROUP_E_ID`" unique="false"/> + </key> + <list-index column="`NUMBERTYPE_MYSIMPLEABSTRACTGROUP_IDX`"/> + <one-to-many entity-name="NumberType_mySimpleAbstractGroup"/> + </list> + <list name="myComplexAbstractGroup" table="`NUMBERTYPE_MYCOMPLEXABSTRACTGROUP`" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`NUMBERTYPE_MYCOMPLEXABSTRACTGROUP_E_ID`" unique="false"/> + </key> + <list-index column="`NUMBERTYPE_MYCOMPLEXABSTRACTGROUP_IDX`"/> + <one-to-many entity-name="NumberType_myComplexAbstractGroup"/> + </list> + </class> + <class entity-name="NumberType_mySimpleAbstractGroup" lazy="false" table="`NUMBERTYPE_MYSIMPLEABSTRACTGROUP`"> + <meta attribute="featureMap" inherit="false">NumberType</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="mySimpleAbstract" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger"> + <column not-null="false" unique="false" name="`MYSIMPLEABSTRACTGROUP_MYSIMPLEABSTRACT`"/> + </property> + </class> + <class entity-name="NumberType_myComplexAbstractGroup" lazy="false" table="`NUMBERTYPE_MYCOMPLEXABSTRACTGROUP`"> + <meta attribute="featureMap" inherit="false">NumberType</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="myComplexAbstract" entity-name="ComplexNumber" lazy="false" cascade="all" foreign-key="NUMBERTYPE_MYCOMPLEXABSTRACT" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`MYCOMPLEXABSTRACTGROUP_COMPLEXNUMBER_MYCOMPLEXABSTRACT_E_ID`"/> + </many-to-one> + </class> + <joined-subclass name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.substitution.impl.OddComplexNumberTypeImpl" entity-name="OddComplexNumberType" abstract="false" lazy="false" extends="ComplexNumber" table="`ODDCOMPLEXNUMBERTYPE`"> + <meta attribute="eclassName" inherit="false">OddComplexNumberType</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/store/test/emf/schemaconstructs/substitution</meta> + <key> + <column name="`COMPLEXNUMBER_E_ID`"/> + </key> + </joined-subclass> +</hibernate-mapping>
\ No newline at end of file |