Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b695d513924356308bece55a1aebe087b3e0a041 (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
<?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="org.eclipse.emf.teneo.samples.issues.generaltest.impl.AddressImpl" entity-name="Address" abstract="false" lazy="false" discriminator-value="Address" table="`address`">
		<meta attribute="eclassName">Address</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/generaltest</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="contacts" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`contact_address_e_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`address_contacts_idx`"/>
			<one-to-many entity-name="Contact"/>
		</list>
		<many-to-one name="country" entity-name="Country" foreign-key="address_country" lazy="false" insert="true" update="true" not-null="false">
			<column not-null="false" unique="false" name="`country_country_e_id`"/>
		</many-to-one>
		<many-to-one name="city" entity-name="City" cascade="all" foreign-key="address_city" lazy="false" insert="true" update="true" not-null="false">
			<column not-null="false" unique="false" name="`city_city_e_id`"/>
		</many-to-one>
		<property name="volatileString" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
			<column not-null="false" unique="false" name="`volatilestring`"/>
		</property>
	</class>
	<class name="org.eclipse.emf.teneo.samples.issues.generaltest.impl.ContactImpl" entity-name="Contact" abstract="false" lazy="false" discriminator-value="Contact" table="`contact`">
		<meta attribute="eclassName">Contact</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/generaltest</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>
		<many-to-one name="address" entity-name="Address" foreign-key="contact_address" lazy="false" insert="false" update="false" not-null="false">
			<column not-null="false" unique="false" name="`contact_address_e_id`"/>
		</many-to-one>
	</class>
	<class name="org.eclipse.emf.teneo.samples.issues.generaltest.impl.CountryImpl" entity-name="Country" abstract="false" lazy="false" discriminator-value="Country" table="`country`">
		<meta attribute="eclassName">Country</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/generaltest</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>
	</class>
	<class name="org.eclipse.emf.teneo.samples.issues.generaltest.impl.CityImpl" entity-name="City" abstract="false" lazy="false" discriminator-value="City" table="`city`">
		<meta attribute="eclassName">City</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/generaltest</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>
	</class>
	<class name="org.eclipse.emf.teneo.samples.issues.generaltest.impl.TCImpl" entity-name="TC" abstract="false" lazy="false" discriminator-value="TC" table="`tc`">
		<meta attribute="eclassName">TC</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/issues/generaltest</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>
		<many-to-one name="address" entity-name="Address" foreign-key="tc_address" lazy="false" insert="true" update="true" not-null="false">
			<column not-null="false" unique="false" name="`tc_address_e_id`"/>
		</many-to-one>
	</class>
</hibernate-mapping>

Back to the top