Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: fbc4eab0ecb4afcb2d27a052e9347cd7024631e1 (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
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.eclipse.org/emf/teneo/samples/emf/annotations/embeddedid"
	xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:this="http://www.eclipse.org/emf/teneo/samples/emf/annotations/embeddedid">
	
	<xsd:complexType name="Person">
		<xsd:sequence>
			<xsd:element name="name" type="this:Name">
				<xsd:annotation>
					<xsd:appinfo source="teneo.jpa">@EmbeddedId</xsd:appinfo>
				</xsd:annotation>				
			</xsd:element>
			<xsd:element name="address" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:appinfo source="teneo.jpa">@Lob</xsd:appinfo>					
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:complexType name="Name">
		<xsd:annotation>
			<xsd:appinfo source="teneo.jpa">@Embeddable</xsd:appinfo>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="firstName" type="xsd:string"/>
			<xsd:element name="lastName" type="xsd:string"/>
		</xsd:sequence>
	</xsd:complexType>
	
</xsd:schema>

Back to the top