Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b87f329ae4f3b82dd2f1e41fa005dd68606cdee6 (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
<?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.adept.impl.BazImpl" entity-name="Baz" abstract="true" lazy="false" discriminator-value="Baz" table="`BAZ`">
		<meta attribute="eclassName" inherit="false">Baz</meta>
		<meta attribute="epackage" inherit="false">org.eclipse.emf.teneo.samples.issues.bz277570</meta>
		<id name="id" type="long" unsaved-value="0">
			<column not-null="true" unique="false" name="`ID`"/>
		</id>
		<discriminator type="string">
			<column name="`DTYPE`" index="BAZDTYPE" length="255" not-null="true"/>
		</discriminator>
		<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.adept.impl.FooImpl" entity-name="Foo" abstract="false" lazy="false" discriminator-value="Foo" table="`FOO`">
		<meta attribute="eclassName" inherit="false">Foo</meta>
		<meta attribute="epackage" inherit="false">org.eclipse.emf.teneo.samples.issues.bz277570</meta>
		<id name="id" type="long" unsaved-value="0">
			<column not-null="true" unique="false" name="`ID`"/>
		</id>
		<discriminator type="string">
			<column name="`DTYPE`" index="FOODTYPE" length="255" not-null="true"/>
		</discriminator>
		<list name="bars" lazy="true" cascade="all,delete-orphan">
			<key update="true" foreign-key="FOO_BARS">
				<column name="`FOO_BARS_ID`" unique="false"/>
			</key>
			<list-index column="`FOO_BARS_IDX`"/>
			<one-to-many entity-name="Bar"/>
		</list>
		<list name="biffs" lazy="true" cascade="all,delete-orphan">
			<key update="true" foreign-key="FOO_BIFFS">
				<column name="`FOO_BIFFS_ID`" unique="false"/>
			</key>
			<list-index column="`FOO_BIFFS_IDX`"/>
			<one-to-many entity-name="Biff"/>
		</list>
	</class>
	<subclass name="org.eclipse.emf.teneo.samples.issues.adept.impl.BarImpl" entity-name="Bar" abstract="false" lazy="false" extends="Baz" discriminator-value="Bar">
		<meta attribute="eclassName" inherit="false">Bar</meta>
		<meta attribute="epackage" inherit="false">org.eclipse.emf.teneo.samples.issues.bz277570</meta>
		<many-to-one name="baz" entity-name="Baz" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="BAR_BAZ" insert="true" update="true" not-null="false">
			<column not-null="false" unique="false" name="`BAZ_BAZ_ID`"/>
		</many-to-one>
	</subclass>
	<subclass name="org.eclipse.emf.teneo.samples.issues.adept.impl.BiffImpl" entity-name="Biff" abstract="false" lazy="false" extends="Baz" discriminator-value="Biff">
		<meta attribute="eclassName" inherit="false">Biff</meta>
		<meta attribute="epackage" inherit="false">org.eclipse.emf.teneo.samples.issues.bz277570</meta>
	</subclass>
</hibernate-mapping>

Back to the top