Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: c4a3818458c737499c42c1dc3a484162bc6d0bb7 (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
<?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.emf.annotations.attroverridesecondarytable.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`">
		<meta attribute="eclassName">Person</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/attroverridesecondarytable</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 type="string">
			<column name="dtype" index="persondtype" length="255" not-null="true"/>
		</discriminator>
		<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="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int">
			<column not-null="false" unique="false" name="`age`"/>
		</property>
	</class>
	<subclass name="org.eclipse.emf.teneo.samples.emf.annotations.attroverridesecondarytable.impl.EmployeeImpl" entity-name="Employee" abstract="false" lazy="false" extends="Person" discriminator-value="Employee">
		<meta attribute="eclassName">Employee</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/attroverridesecondarytable</meta>
		<join table="`secondary_table`">
			<key/>
			<component name="address" class="org.eclipse.emf.teneo.samples.emf.annotations.attroverridesecondarytable.impl.AddressImpl">
				<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="`other_name`"/>
				</property>
				<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="`other_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="`other_city`"/>
				</property>
				<many-to-one name="country" entity-name="Country" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="address_country" insert="true" update="true" not-null="false">
					<column not-null="false" unique="false" name="`addr_country`"/>
				</many-to-one>
			</component>
			<property name="employeeNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
				<column not-null="false" unique="false" name="`emp_num`"/>
			</property>
		</join>
	</subclass>
	<subclass name="org.eclipse.emf.teneo.samples.emf.annotations.attroverridesecondarytable.impl.NonEmployeeImpl" entity-name="NonEmployee" abstract="false" lazy="false" extends="Person" discriminator-value="NonEmployee">
		<meta attribute="eclassName">NonEmployee</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/attroverridesecondarytable</meta>
		<component name="address" class="org.eclipse.emf.teneo.samples.emf.annotations.attroverridesecondarytable.impl.AddressImpl">
			<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="`address_name`"/>
			</property>
			<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="`address_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="`address_city`"/>
			</property>
			<many-to-one name="country" entity-name="Country" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="address_country" insert="true" update="true" not-null="false">
				<column not-null="false" unique="false" name="`country_country_e_id`"/>
			</many-to-one>
		</component>
	</subclass>
	<class name="org.eclipse.emf.teneo.samples.emf.annotations.attroverridesecondarytable.impl.CountryImpl" entity-name="Country" abstract="false" lazy="false" table="`country`">
		<meta attribute="eclassName">Country</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/attroverridesecondarytable</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>
		<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