Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ecb3287f3565b7c4e10cd3bf5dd0f4ee38ca0447 (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
<?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:57:04 CEST 2006 -->
<hibernate-mapping>
	<class entity-name="CatalogType" abstract="false" lazy="false" discriminator-value="CatalogType" table="`catalogtype`">
		<id name="name" type="java.lang.String" column="`name`"/>
		<discriminator column="`dtype`" type="string"/>
		<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"/>
		<list name="subCatalog" lazy="true" cascade="merge,persist,save-update,lock,refresh">
			<key update="true">
				<column name="`subcatalog_name`" not-null="false" unique="false"/>
			</key>
			<list-index column="`catalogtype_subcatalog_idx`"/>
			<one-to-many entity-name="CatalogType"/>
		</list>
		<list name="product" lazy="true" cascade="merge,persist,save-update,lock,refresh">
			<key update="true">
				<column name="`product_name`" not-null="false" unique="false"/>
			</key>
			<list-index column="`catalogtype_product_idx`"/>
			<one-to-many entity-name="ProductType"/>
		</list>
	</class>
	<class entity-name="PriceType" abstract="false" lazy="false" discriminator-value="PriceType" table="`pricetype`">
		<id type="long" name="e_id" column="e_id">
			<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"/>
		<property name="price" type="double" lazy="false" column="`price`" not-null="false"/>
		<property name="quantityTo" type="double" lazy="false" column="`quantityto`" not-null="false"/>
		<many-to-one name="supplier" entity-name="SupplierType" cascade="merge,persist,save-update,lock,refresh" lazy="false" insert="true" update="true" not-null="true">
			<column not-null="true" unique="false" name="`supplier_id`"/>
		</many-to-one>
	</class>
	<class entity-name="ProductType" abstract="false" lazy="false" discriminator-value="ProductType" table="`producttype`">
		<id name="code" type="java.lang.String" column="`code`"/>
		<discriminator column="`dtype`" type="string"/>
		<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="false"/>
		<list name="remark" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`remark_code`" not-null="false" unique="false"/>
			</key>
			<list-index column="`producttype_remark_idx`"/>
			<one-to-many entity-name="StringType"/>
		</list>
		<many-to-one name="price" entity-name="PriceType" cascade="all" lazy="false" insert="true" update="true" not-null="true">
			<column not-null="true" unique="false" name="`price_id`"/>
		</many-to-one>
	</class>
	<class entity-name="StringType" abstract="false" lazy="false" discriminator-value="StringType" table="`stringtype`">
		<id type="long" name="e_id" column="e_id">
			<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"/>
		<property name="value" type="java.lang.String" lazy="false" column="`value`" not-null="true"/>
	</class>
	<class entity-name="SupplierType" abstract="false" lazy="false" discriminator-value="SupplierType" table="`suppliertype`">
		<id type="long" name="e_id" column="e_id">
			<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"/>
		<property name="name" type="java.lang.String" lazy="false" column="`name`" not-null="true"/>
		<property name="noOfEmployees" type="int" lazy="false" column="`noofemployees`" not-null="false"/>
	</class>
</hibernate-mapping>

Back to the top