Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: c20be704ef136cfae9503bfb48f2ff72a7835831 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<?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 Fri Sep 22 14:56:21 CEST 2006 -->
<hibernate-mapping>
	<class entity-name="Account" abstract="true" lazy="false" table="`account`">
		<id type="long" name="e_id" column="e_id">
			<generator class="native"/>
		</id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
		<property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="true"/>
	</class>
	<class entity-name="AccountGroup" abstract="false" lazy="false" table="`accountgroup`">
		<id type="long" name="e_id" column="e_id">
			<generator class="native"/>
		</id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
		<property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="true"/>
		<list name="account" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`account_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`">
		<id type="long" name="e_id" column="e_id">
			<generator class="native"/>
		</id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
		<property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="false"/>
		<list name="accountGroup" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`accountgroup_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="`vat_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="`vataccount_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_id`"/>
		</many-to-one>
		<list name="journalGroup" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`journalgroup_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`">
		<key>
			<column name="`account_id`"/>
		</key>
		<list name="report" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="balanceaccount_reportgroup">
			<key update="true">
				<column name="`balanceaccount_id`" not-null="true" unique="false"/>
			</key>
			<list-index column="`balanceaccount_report_idx`"/>
			<many-to-many entity-name="ReportGroup" unique="false">
				<column name="`reportgroup_id`" not-null="true" unique="false"/>
			</many-to-many>
		</list>
	</joined-subclass>
	<class entity-name="JournalGroup" abstract="false" lazy="false" table="`journalgroup`">
		<id type="long" name="e_id" column="e_id">
			<generator class="native"/>
		</id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
		<property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="true"/>
		<list name="journalGroups" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`journalgroups_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="`journalstatements_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`">
		<id type="long" name="e_id" column="e_id">
			<generator class="native"/>
		</id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
		<property name="description" type="java.lang.String" lazy="false" column="`description`" not-null="true"/>
		<property name="date" type="date" lazy="false" column="`date`" not-null="true" unique="false"/>
		<property name="amount" type="float" lazy="false" column="`amount`" not-null="false"/>
		<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="`debitaccount_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="`creditaccount_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_id`"/>
		</many-to-one>
	</class>
	<joined-subclass entity-name="PLAccount" abstract="false" lazy="false" extends="Account" table="`placcount`">
		<key>
			<column name="`account_id`"/>
		</key>
	</joined-subclass>
	<class entity-name="Report" abstract="false" lazy="false" table="`report`">
		<id type="long" name="e_id" column="e_id">
			<generator class="native"/>
		</id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
		<property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="true"/>
		<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="`debitreportgroup_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="`creditreportgroup_id`"/>
		</many-to-one>
	</class>
	<class entity-name="ReportGroup" abstract="false" lazy="false" table="`reportgroup`">
		<id type="long" name="e_id" column="e_id">
			<generator class="native"/>
		</id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
		<property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="true"/>
		<list name="reportGroup" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`reportgroup_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_id`" not-null="true" unique="false"/>
			</key>
			<list-index column="`reportgroup_account_idx`"/>
			<many-to-many entity-name="BalanceAccount" unique="false">
				<column name="`balanceaccount_id`" not-null="true" unique="false"/>
			</many-to-many>
		</list>
	</class>
	<class entity-name="Vat" abstract="false" lazy="false" table="`vat`">
		<id type="long" name="e_id" column="e_id">
			<generator class="native"/>
		</id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
		<property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="true"/>
		<property name="rate" type="float" lazy="false" column="`rate`" not-null="false"/>
	</class>
</hibernate-mapping>

Back to the top