diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/AccountingTest$1_hsqldb_h_o_hibernate.hbm.xml')
-rw-r--r-- | tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/AccountingTest$1_hsqldb_h_o_hibernate.hbm.xml | 246 |
1 files changed, 246 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/AccountingTest$1_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/AccountingTest$1_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..cd38b756f --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.sample/AccountingTest$1_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,246 @@ +<?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.accounting.impl.AccountImpl" entity-name="Account" abstract="true" lazy="false" discriminator-value="Account" table="`ACCOUNT`"> + <meta attribute="eclassName" inherit="false">Account</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</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> + <discriminator type="string"> + <column name="`DTYPE`" index="ACCOUNTDTYPE" 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" 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="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.AccountGroupImpl" entity-name="AccountGroup" abstract="false" lazy="false" discriminator-value="AccountGroup" table="`ACCOUNTGROUP`"> + <meta attribute="eclassName" inherit="false">AccountGroup</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</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> + <discriminator type="string"> + <column name="`DTYPE`" index="ACCOUNTGROUPDTYPE" 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" 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="account" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ACCOUNTGROUP_ACCOUNT"> + <column name="`ACCOUNTGROUP_ACCOUNT_E_ID`" unique="false"/> + </key> + <list-index column="`ACCOUNTGROUP_ACCOUNT_IDX`"/> + <one-to-many entity-name="Account"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.AccountingImpl" entity-name="Accounting" abstract="false" lazy="false" discriminator-value="Accounting" table="`ACCOUNTING`"> + <meta attribute="eclassName" inherit="false">Accounting</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</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> + <discriminator type="string"> + <column name="`DTYPE`" index="ACCOUNTINGDTYPE" 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" 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> + <list name="accountGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ACCOUNTING_ACCOUNTGROUP"> + <column name="`ACCOUNTING_ACCOUNTGROUP_E_ID`" unique="false"/> + </key> + <list-index column="`ACCOUNTING_ACCOUNTGROUP_IDX`"/> + <one-to-many entity-name="AccountGroup"/> + </list> + <list name="vat" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ACCOUNTING_VAT"> + <column name="`ACCOUNTING_VAT_E_ID`" unique="false"/> + </key> + <list-index column="`ACCOUNTING_VAT_IDX`"/> + <one-to-many entity-name="Vat"/> + </list> + <many-to-one name="vatAccount" entity-name="BalanceAccount" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="ACCOUNTING_VATACCOUNT" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`BALANCEACCOUNT_VATACCOUNT_E_ID`"/> + </many-to-one> + <many-to-one name="report" entity-name="Report" lazy="false" cascade="all" foreign-key="ACCOUNTING_REPORT" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`REPORT_REPORT_E_ID`"/> + </many-to-one> + <list name="journalGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="ACCOUNTING_JOURNALGROUP"> + <column name="`ACCOUNTING_JOURNALGROUP_E_ID`" unique="false"/> + </key> + <list-index column="`ACCOUNTING_JOURNALGROUP_IDX`"/> + <one-to-many entity-name="JournalGroup"/> + </list> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.BalanceAccountImpl" entity-name="BalanceAccount" abstract="false" lazy="false" extends="Account" discriminator-value="BalanceAccount"> + <meta attribute="eclassName" inherit="false">BalanceAccount</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + <list name="report" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`BALANCEACCOUNT_REPORTGROUP`"> + <key update="true"> + <column name="`BALANCEACCOUNT_E_ID`" unique="false"/> + </key> + <list-index column="`BALANCEACCOUNT_REPORT_IDX`"/> + <many-to-many entity-name="ReportGroup" unique="false" foreign-key="BALANCEACCOUNT_REPORT"> + <column name="`REPORTGROUP_E_ID`" not-null="true" unique="false"/> + </many-to-many> + </list> + </subclass> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.JournalGroupImpl" entity-name="JournalGroup" abstract="false" lazy="false" discriminator-value="JournalGroup" table="`JOURNALGROUP`"> + <meta attribute="eclassName" inherit="false">JournalGroup</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</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> + <discriminator type="string"> + <column name="`DTYPE`" index="JOURNALGROUPDTYPE" 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" 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="journalGroups" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="JOURNALGROUP_JOURNALGROUPS"> + <column name="`JOURNALGROUP_JOURNALGROUPS_E_ID`" unique="false"/> + </key> + <list-index column="`JOURNALGROUP_JOURNALGROUPS_IDX`"/> + <one-to-many entity-name="JournalGroup"/> + </list> + <list name="journalStatements" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="JOURNALGROUP_JOURNALSTATEMENTS"> + <column name="`JOURNALGROUP_JOURNALSTATEMENTS_E_ID`" unique="false"/> + </key> + <list-index column="`JOURNALGROUP_JOURNALSTATEMENTS_IDX`"/> + <one-to-many entity-name="JournalStatement"/> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.JournalStatementImpl" entity-name="JournalStatement" abstract="false" lazy="false" discriminator-value="JournalStatement" table="`JOURNALSTATEMENT`"> + <meta attribute="eclassName" inherit="false">JournalStatement</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</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> + <discriminator type="string"> + <column name="`DTYPE`" index="JOURNALSTATEMENTDTYPE" 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" 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="date" lazy="false" insert="true" update="true" not-null="true" unique="false" type="timestamp"> + <column not-null="true" unique="false" name="`DATE`"/> + </property> + <property name="amount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`AMOUNT`"/> + </property> + <many-to-one name="debitAccount" entity-name="Account" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="JOURNALSTATEMENT_DEBITACCOUNT" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`ACCOUNT_DEBITACCOUNT_E_ID`"/> + </many-to-one> + <many-to-one name="creditAccount" entity-name="Account" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="JOURNALSTATEMENT_CREDITACCOUNT" insert="true" update="true" not-null="true"> + <column not-null="true" unique="false" name="`ACCOUNT_CREDITACCOUNT_E_ID`"/> + </many-to-one> + <many-to-one name="vat" entity-name="Vat" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="JOURNALSTATEMENT_VAT" insert="true" update="true" not-null="false"> + <column not-null="false" unique="false" name="`VAT_VAT_E_ID`"/> + </many-to-one> + </class> + <subclass name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.PLAccountImpl" entity-name="PLAccount" abstract="false" lazy="false" extends="Account" discriminator-value="PLAccount"> + <meta attribute="eclassName" inherit="false">PLAccount</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta> + </subclass> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.ReportImpl" entity-name="Report" abstract="false" lazy="false" discriminator-value="Report" table="`REPORT`"> + <meta attribute="eclassName" inherit="false">Report</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</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> + <discriminator type="string"> + <column name="`DTYPE`" index="REPORTDTYPE" 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" 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> + <many-to-one name="debitReportGroup" entity-name="ReportGroup" lazy="false" cascade="all" foreign-key="REPORT_DEBITREPORTGROUP" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`REPORTGROUP_DEBITREPORTGROUP_E_ID`"/> + </many-to-one> + <many-to-one name="creditReportGroup" entity-name="ReportGroup" lazy="false" cascade="all" foreign-key="REPORT_CREDITREPORTGROUP" insert="true" update="true" not-null="true" unique="true"> + <column not-null="true" unique="false" name="`REPORTGROUP_CREDITREPORTGROUP_E_ID`"/> + </many-to-one> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.ReportGroupImpl" entity-name="ReportGroup" abstract="false" lazy="false" discriminator-value="ReportGroup" table="`REPORTGROUP`"> + <meta attribute="eclassName" inherit="false">ReportGroup</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</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> + <discriminator type="string"> + <column name="`DTYPE`" index="REPORTGROUPDTYPE" 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" 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="reportGroup" lazy="true" cascade="all,delete-orphan"> + <key update="true" foreign-key="REPORTGROUP_REPORTGROUP"> + <column name="`REPORTGROUP_REPORTGROUP_E_ID`" unique="false"/> + </key> + <list-index column="`REPORTGROUP_REPORTGROUP_IDX`"/> + <one-to-many entity-name="ReportGroup"/> + </list> + <list name="account" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`REPORTGROUP_BALANCEACCOUNT`"> + <key update="true"> + <column name="`REPORTGROUP_E_ID`" unique="false"/> + </key> + <list-index column="`REPORTGROUP_ACCOUNT_IDX`"/> + <many-to-many entity-name="BalanceAccount" unique="false" foreign-key="REPORTGROUP_ACCOUNT"> + <column name="`BALANCEACCOUNT_E_ID`" not-null="true" unique="false"/> + </many-to-many> + </list> + </class> + <class name="org.eclipse.emf.teneo.samples.emf.sample.accounting.impl.VatImpl" entity-name="Vat" abstract="false" lazy="false" discriminator-value="Vat" table="`VAT`"> + <meta attribute="eclassName" inherit="false">Vat</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</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> + <discriminator type="string"> + <column name="`DTYPE`" index="VATDTYPE" 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" 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="rate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="float"> + <column not-null="false" unique="false" name="`RATE`"/> + </property> + </class> +</hibernate-mapping>
\ No newline at end of file |