Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.AccountingTest$1/mysql_s_o/hibernate.hbm.xml')
-rwxr-xr-xtests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.AccountingTest$1/mysql_s_o/hibernate.hbm.xml229
1 files changed, 229 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.AccountingTest$1/mysql_s_o/hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.AccountingTest$1/mysql_s_o/hibernate.hbm.xml
new file mode 100755
index 000000000..65bf3a310
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/run/org.eclipse.emf.teneo.hibernate.test.emf.sample.AccountingTest$1/mysql_s_o/hibernate.hbm.xml
@@ -0,0 +1,229 @@
+<?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 Sat Mar 24 11:21:26 CET 2007 -->
+<hibernate-mapping>
+ <class entity-name="Account" abstract="true" lazy="false" 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>
+ <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 entity-name="AccountGroup" abstract="false" lazy="false" 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>
+ <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 entity-name="Accounting" abstract="false" lazy="false" 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>
+ <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>
+ <joined-subclass entity-name="BalanceAccount" abstract="false" lazy="false" extends="Account" table="`balanceaccount`">
+ <meta attribute="eclassName">BalanceAccount</meta>
+ <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta>
+ <key>
+ <column name="`account_e_id`"/>
+ </key>
+ <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>
+ </joined-subclass>
+ <class entity-name="JournalGroup" abstract="false" lazy="false" 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>
+ <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 entity-name="JournalStatement" abstract="false" lazy="false" 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>
+ <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>
+ <joined-subclass entity-name="PLAccount" abstract="false" lazy="false" extends="Account" table="`placcount`">
+ <meta attribute="eclassName">PLAccount</meta>
+ <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/sample/accounting</meta>
+ <key>
+ <column name="`account_e_id`"/>
+ </key>
+ </joined-subclass>
+ <class entity-name="Report" abstract="false" lazy="false" 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>
+ <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 entity-name="ReportGroup" abstract="false" lazy="false" 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>
+ <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 entity-name="Vat" abstract="false" lazy="false" 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>
+ <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> \ No newline at end of file

Back to the top