blob: b1a4c04b09d6db036a1a84c09f41cb1797e2ae22 (
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
|
<?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 Wed Mar 21 15:38:58 CET 2007 -->
<hibernate-mapping>
<class entity-name="SomeBaseClass" abstract="false" lazy="false" discriminator-value="SomeBaseClass" table="`somebaseclass`">
<meta attribute="eclassName">SomeBaseClass</meta>
<meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</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="anotherProperty" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
<column not-null="false" unique="false" name="`anotherproperty`"/>
</property>
</class>
<subclass entity-name="SomeResource" abstract="false" lazy="false" extends="SomeBaseClass" discriminator-value="SomeResource">
<meta attribute="eclassName">SomeResource</meta>
<meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta>
<property name="property" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`property`"/>
</property>
<list name="nameValuePairs" lazy="true" cascade="merge,persist,save-update,lock,refresh">
<key update="true">
<column name="`someresource_namevaluepairs_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`someresource_namevaluepairs_idx`"/>
<one-to-many entity-name="NameValuePair"/>
</list>
</subclass>
<class entity-name="SomeOtherBaseClass" abstract="false" lazy="false" discriminator-value="SomeOtherBaseClass">
<meta attribute="eclassName">SomeOtherBaseClass</meta>
<meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</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="property" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`property`"/>
</property>
<list name="nameValuePairs" lazy="true" cascade="merge,persist,save-update,lock,refresh">
<key update="true">
<column name="`someotherbaseclass_namevaluepairs_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`someotherbaseclass_namevaluepairs_idx`"/>
<one-to-many entity-name="NameValuePair"/>
</list>
</class>
<class entity-name="NameValuePair" abstract="false" lazy="false" discriminator-value="NameValuePair" table="`namevaluepair`">
<meta attribute="eclassName">NameValuePair</meta>
<meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</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="value" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`value`"/>
</property>
</class>
<class entity-name="ParentOne" abstract="false" lazy="false" discriminator-value="ParentOne" table="`parentone`">
<meta attribute="eclassName">ParentOne</meta>
<meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</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="anotherProperty" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
<column not-null="false" unique="false" name="`anotherproperty`"/>
</property>
</class>
<class entity-name="Child" abstract="false" lazy="false" discriminator-value="Child" table="`child`">
<meta attribute="eclassName">Child</meta>
<meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta>
<id name="testId" type="long">
<column not-null="true" unique="false" name="`testid`"/>
</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="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="long">
<column not-null="false" unique="false" name="`age`"/>
</property>
</class>
<subclass entity-name="Child2" abstract="false" lazy="false" extends="ParentOne" discriminator-value="Child2">
<meta attribute="eclassName">Child2</meta>
<meta attribute="epackage">http://xsd.tns.example.com/testinheritance/model</meta>
<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="long">
<column not-null="false" unique="false" name="`age`"/>
</property>
</subclass>
</hibernate-mapping>
|