Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 8dfb7ea337d250b2b4cf67232354a9158e5ff060 (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
<?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/Forcedidbag"
	xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:this="http://www.eclipse.org/emf/teneo/samples/emf/annotations/Forcedidbag">
	
	<xsd:complexType name="User">
		<xsd:sequence>
			<xsd:element name="name" type="xsd:string"/>
			<xsd:element name="role" type="xsd:anyURI" ecore:reference="this:Role" minOccurs="0" maxOccurs="unbounded" ecore:opposite="users" ecore:name="roles">
				<xsd:annotation>
					<xsd:appinfo source="teneo.hibernate">@IdBag @JoinTable(name="myjoin")</xsd:appinfo>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="Role">
		<xsd:sequence>
			<xsd:element name="name" type="xsd:string"/>
			<xsd:element name="users" type="xsd:anyURI" ecore:reference="this:User" ecore:opposite="role" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:appinfo source="teneo.hibernate">@IdBag</xsd:appinfo>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>

</xsd:schema>

Back to the top