Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ad68faf67f6a056f8b8e9442172080ba867a6c21 (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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?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 Tue Jan 30 11:38:13 CET 2007 -->
<hibernate-mapping>
	<class entity-name="Item" abstract="false" lazy="false" discriminator-value="Item" table="`item`">
		<meta attribute="eclassName">Item</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/extendedpo2</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>
		<many-to-one name="order" entity-name="PurchaseOrder" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false">
			<column not-null="false" unique="false" name="`item_order_id`"/>
		</many-to-one>
		<property name="productName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
			<column not-null="false" unique="false" name="`productname`"/>
		</property>
		<property name="quantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
			<column not-null="false" unique="false" name="`quantity`"/>
		</property>
		<property name="USPrice" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
			<column not-null="false" unique="false" name="`usprice`"/>
		</property>
		<property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
			<column not-null="false" unique="false" name="`comment`"/>
		</property>
		<property name="shipDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp">
			<column not-null="false" unique="false" name="`shipdate`"/>
		</property>
		<property name="partNum" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
			<column not-null="false" unique="false" name="`partnum`"/>
		</property>
	</class>
	<class entity-name="Address" abstract="true" lazy="false" discriminator-value="Address" table="`address`">
		<meta attribute="eclassName">Address</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/extendedpo2</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>
		<property name="country" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
			<column not-null="false" unique="false" name="`country`"/>
		</property>
	</class>
	<subclass entity-name="USAddress" abstract="false" lazy="false" extends="Address" discriminator-value="USAddress">
		<meta attribute="eclassName">USAddress</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/extendedpo2</meta>
		<property name="street" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
			<column not-null="false" unique="false" name="`street`"/>
		</property>
		<property name="city" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
			<column not-null="false" unique="false" name="`city`"/>
		</property>
		<property name="state" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
			<column not-null="false" unique="false" name="`state`"/>
		</property>
		<property name="zip" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
			<column not-null="false" unique="false" name="`zip`"/>
		</property>
	</subclass>
	<class entity-name="PurchaseOrder" abstract="false" lazy="false" discriminator-value="PurchaseOrder" table="`purchaseorder`">
		<meta attribute="eclassName">PurchaseOrder</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/extendedpo2</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>
		<list name="items" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`item_order_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`purchaseorder_items_idx`"/>
			<one-to-many entity-name="Item"/>
		</list>
		<many-to-one name="billTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="true">
			<column not-null="true" unique="false" name="`address_billto_id`"/>
		</many-to-one>
		<many-to-one name="shipTo" entity-name="Address" cascade="all" lazy="false" insert="true" update="true" not-null="false">
			<column not-null="false" unique="false" name="`address_shipto_id`"/>
		</many-to-one>
		<property name="comment" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
			<column not-null="false" unique="false" name="`comment`"/>
		</property>
		<property name="orderDate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="timestamp">
			<column not-null="false" unique="false" name="`orderdate`"/>
		</property>
		<property name="status" lazy="false" not-null="false" insert="true" update="true" unique="false">
			<column not-null="false" unique="false" name="`status`"/>
			<type name="org.eclipse.emf.teneo.hibernate.mapping.ENumUserType">
				<param name="enumClass">org.eclipse.emf.teneo.samples.emf.sample.epo2.OrderStatus</param>
			</type>
		</property>
		<many-to-one name="customer" entity-name="Customer" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="false" update="false" not-null="false">
			<column not-null="false" unique="false" name="`purchaseorder_customer_id`"/>
		</many-to-one>
		<many-to-one name="previousOrder" entity-name="PurchaseOrder" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="false">
			<column not-null="false" unique="false" name="`purchaseorder_previousorder_id`"/>
		</many-to-one>
	</class>
	<class entity-name="Supplier" abstract="false" lazy="false" discriminator-value="Supplier" table="`supplier`">
		<meta attribute="eclassName">Supplier</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/extendedpo2</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="customers" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`supplier_customers_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`supplier_customers_idx`"/>
			<one-to-many entity-name="Customer"/>
		</list>
		<list name="orders" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`supplier_orders_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`supplier_orders_idx`"/>
			<one-to-many entity-name="PurchaseOrder"/>
		</list>
	</class>
	<class entity-name="Customer" abstract="false" lazy="false" discriminator-value="Customer" table="`customer`">
		<meta attribute="eclassName">Customer</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/extendedpo2</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="customerID" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
			<column not-null="false" unique="false" name="`customerid`"/>
		</property>
		<list name="orders" lazy="true" cascade="merge,persist,save-update,lock,refresh">
			<key update="true">
				<column name="`purchaseorder_customer_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`customer_orders_idx`"/>
			<one-to-many entity-name="PurchaseOrder"/>
		</list>
	</class>
	<subclass entity-name="GlobalAddress" abstract="false" lazy="false" extends="Address" discriminator-value="GlobalAddress">
		<meta attribute="eclassName">GlobalAddress</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/extendedpo2</meta>
		<property name="countryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
			<column not-null="false" unique="false" name="`countrycode`"/>
		</property>
		<list name="location" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`globaladdress_location_id`" not-null="true" unique="false"/>
			</key>
			<list-index column="`globaladdress_location_idx`"/>
			<element type="java.lang.String"/>
		</list>
	</subclass>
	<class entity-name="GlobalLocation" abstract="false" lazy="false" discriminator-value="GlobalLocation" table="`globallocation`">
		<meta attribute="eclassName">GlobalLocation</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/store/test/emf/extendedpo2</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="countryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
			<column not-null="false" unique="false" name="`countrycode`"/>
		</property>
	</class>
</hibernate-mapping>

Back to the top