| <?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 Jul 18 20:41:11 CEST 2007 --> |
| <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">Account</meta> |
| <meta attribute="epackage">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">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> |
| <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">AccountGroup</meta> |
| <meta attribute="epackage">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">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="account" lazy="true" cascade="all,delete-orphan"> |
| <key update="true"> |
| <column name="`accountgroup_account_e_id`" not-null="false" 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">Accounting</meta> |
| <meta attribute="epackage">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">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="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"> |
| <column name="`accounting_accountgroup_e_id`" not-null="false" 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"> |
| <column name="`accounting_vat_e_id`" not-null="false" unique="false"/> |
| </key> |
| <list-index column="`accounting_vat_idx`"/> |
| <one-to-many entity-name="Vat"/> |
| </list> |
| <many-to-one name="vatAccount" entity-name="BalanceAccount" cascade="merge,persist,save-update,lock,refresh" lazy="false" 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" cascade="all" lazy="false" 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"> |
| <column name="`accounting_journalgroup_e_id`" not-null="false" 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">BalanceAccount</meta> |
| <meta attribute="epackage">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`" not-null="true" unique="false"/> |
| </key> |
| <list-index column="`balanceaccount_report_idx`"/> |
| <many-to-many entity-name="ReportGroup" unique="false"> |
| <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">JournalGroup</meta> |
| <meta attribute="epackage">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">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="journalGroups" lazy="true" cascade="all,delete-orphan"> |
| <key update="true"> |
| <column name="`journalgroup_journalgroups_e_id`" not-null="false" 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"> |
| <column name="`journalgroup_journalstatements_e_id`" not-null="false" 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">JournalStatement</meta> |
| <meta attribute="epackage">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">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="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" cascade="merge,persist,save-update,lock,refresh" lazy="false" 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" cascade="merge,persist,save-update,lock,refresh" lazy="false" 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" cascade="merge,persist,save-update,lock,refresh" lazy="false" 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">PLAccount</meta> |
| <meta attribute="epackage">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">Report</meta> |
| <meta attribute="epackage">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">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> |
| <many-to-one name="debitReportGroup" entity-name="ReportGroup" cascade="all" lazy="false" insert="true" update="true" not-null="true"> |
| <column not-null="true" unique="false" name="`reportgroup_debitreportgroup_e_id`"/> |
| </many-to-one> |
| <many-to-one name="creditReportGroup" entity-name="ReportGroup" cascade="all" lazy="false" insert="true" update="true" not-null="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">ReportGroup</meta> |
| <meta attribute="epackage">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">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="reportGroup" lazy="true" cascade="all,delete-orphan"> |
| <key update="true"> |
| <column name="`reportgroup_reportgroup_e_id`" not-null="false" 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`" not-null="true" unique="false"/> |
| </key> |
| <list-index column="`reportgroup_account_idx`"/> |
| <many-to-many entity-name="BalanceAccount" unique="false"> |
| <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">Vat</meta> |
| <meta attribute="epackage">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">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="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> |