Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 5a2c99440d465c8a78be5b55d7c55e92e7c70925 (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
<?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">

<hibernate-mapping auto-import="false">
	<class name="com.example.car.impl.CarFrameImpl" entity-name="CarFrame" abstract="false" lazy="false" table="`carframe`">
		<meta attribute="eclassName">CarFrame</meta>
		<meta attribute="epackage">http://www.example.com/car.xsd</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>
		<list name="carWheel" lazy="true" cascade="all,delete-orphan">
			<key update="true" foreign-key="carframe_carwheel">
				<column name="`carframe_carwheel_e_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`carframe_carwheel_idx`"/>
			<one-to-many entity-name="CarWheel"/>
		</list>
		<many-to-one name="carLinkRef" entity-name="CarLink" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="carframe_carlinkref" insert="true" update="true" not-null="false">
			<column not-null="false" unique="false" name="`carlink_carlinkref_e_id`"/>
		</many-to-one>
		<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>
	</class>
	<class name="com.example.car.impl.CarLinkImpl" entity-name="CarLink" abstract="false" lazy="false" table="`carlink`">
		<meta attribute="eclassName">CarLink</meta>
		<meta attribute="epackage">http://www.example.com/car.xsd</meta>
		<id name="carLinkId" type="java.lang.String">
			<column not-null="true" unique="true" name="`carlinkid`"/>
		</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 name="com.example.car.impl.CarsListImpl" entity-name="CarsList" abstract="false" lazy="false" table="`carslist`">
		<meta attribute="eclassName">CarsList</meta>
		<meta attribute="epackage">http://www.example.com/car.xsd</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>
		<list name="carType" lazy="true" cascade="all,delete-orphan">
			<key update="true" foreign-key="carslist_cartype">
				<column name="`carslist_cartype_e_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`carslist_cartype_idx`"/>
			<one-to-many entity-name="CarType"/>
		</list>
		<list name="carLink" lazy="true" cascade="all,delete-orphan">
			<key update="true" foreign-key="carslist_carlink">
				<column name="`carslist_carlink_e_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`carslist_carlink_idx`"/>
			<one-to-many entity-name="CarLink"/>
		</list>
	</class>
	<class name="com.example.car.impl.CarTireImpl" entity-name="CarTire" abstract="false" lazy="false" table="`cartire`">
		<meta attribute="eclassName">CarTire</meta>
		<meta attribute="epackage">http://www.example.com/car.xsd</meta>
		<id name="name" type="java.lang.String">
			<column not-null="true" unique="true" name="`name`"/>
		</id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
			<meta attribute="syntheticVersion">true</meta>
		</version>
	</class>
	<class name="com.example.car.impl.CarTypeImpl" entity-name="CarType" abstract="false" lazy="false" table="`cartype`">
		<meta attribute="eclassName">CarType</meta>
		<meta attribute="epackage">http://www.example.com/car.xsd</meta>
		<id name="carID" type="java.lang.String">
			<column not-null="true" unique="true" name="`carid`"/>
		</id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
			<meta attribute="syntheticVersion">true</meta>
		</version>
		<list name="carFrame" lazy="true" cascade="all,delete-orphan">
			<key update="true" foreign-key="cartype_carframe">
				<column name="`cartype_carframe_e_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`cartype_carframe_idx`"/>
			<one-to-many entity-name="CarFrame"/>
		</list>
	</class>
	<class name="com.example.car.impl.CarWheelImpl" entity-name="CarWheel" abstract="false" lazy="false" table="`carwheel`">
		<meta attribute="eclassName">CarWheel</meta>
		<meta attribute="epackage">http://www.example.com/car.xsd</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>
		<list name="carTire" lazy="true" cascade="all,delete-orphan">
			<key update="true" foreign-key="carwheel_cartire">
				<column name="`carwheel_cartire_e_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`carwheel_cartire_idx`"/>
			<one-to-many entity-name="CarTire"/>
		</list>
		<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>
	</class>
</hibernate-mapping>

Back to the top