Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 5965a11a7cf080fe3e2fce5e2008cfba35b58508 (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
<?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.various.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" table="`parent`">
		<meta attribute="eclassName">Parent</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/various</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="children" lazy="true" cascade="merge,persist,save-update,lock,refresh">
			<key update="true" foreign-key="parent_children">
				<column name="`parent_children_e_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`parent_children_idx`"/>
			<one-to-many entity-name="Child"/>
		</list>
		<property name="totalPeople" lazy="false" not-null="false" type="int">
			<formula>(select count(*) from parent)</formula>
		</property>
	</class>
	<joined-subclass name="org.eclipse.emf.teneo.samples.emf.annotations.various.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" extends="Parent" table="`child`">
		<meta attribute="eclassName">Child</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/various</meta>
		<key>
			<column name="`parent_e_id`"/>
		</key>
	</joined-subclass>
	<class name="org.eclipse.emf.teneo.samples.emf.annotations.various.impl.ImmutableCityImpl" entity-name="ImmutableCity" abstract="false" lazy="false" mutable="false" table="`immutablecity`">
		<meta attribute="eclassName">ImmutableCity</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/various</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>
		<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="parents" mutable="false" lazy="true" cascade="merge,persist,save-update,lock,refresh">
			<key update="true" foreign-key="immutablecity_parents">
				<column name="`immutablecity_parents_e_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`immutablecity_parents_idx`"/>
			<one-to-many entity-name="Parent"/>
		</list>
	</class>
</hibernate-mapping>

Back to the top