Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 945b04891c6a41678efd3076cefb0779fd273e9a (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
<?xml version="1.0" encoding="utf-8"?>
<persistence-mapping xmlns="http://www.eclipse.org/emft/teneo"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

	<!-- Template for TestAction persistence mapping. -->

	<epackage namespace-uri="http://www.eclipse.org/emf/teneo/samples/emf/annotations/inheritancemapping">

		<eclass name="ContentList">
			<property name="name">
				<id />
			</property>
		</eclass>

		<eclass name="Price">
			<table name="myprice" />
			<inheritance>SINGLE_TABLE</inheritance>
			<discriminator-column name="DISCRIMINATOR" discriminator-type="STRING" />
			<discriminator-value>myPrice</discriminator-value>
		</eclass>

		<eclass name="InternationalPrice">
			<discriminator-value>myInternationalPrice</discriminator-value>
		</eclass>

		<eclass name="Address">
			<inheritance>JOINED</inheritance>
			<property name="name">
				<id />
			</property>
		</eclass>

		<eclass name="USAddress">
			<table name="UNITEDSTATESADDRESS"/>
		</eclass>

	</epackage>

</persistence-mapping>

Back to the top