Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ec8468d09d2f2d255272f33cf9a61ce3cc13154b (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
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
	targetNamespace="http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id"
	xmlns="http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id"
	xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
	xmlns:lib="http://www.eclipse.org/emf/teneo/samples/emf/annotations/hb/generator/id"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>

	<xsd:annotation>
		<xsd:appinfo source="teneo.hibernate">
			@GenericGenerator(name="system-uuid", strategy = "uuid")
			@GenericGenerator(name="hibseq", strategy = "hilo", parameters = {
			@Parameter(name="table", value = "hilo_table"), @Parameter(name="column",
			value="the_hilo_column") } )
		</xsd:appinfo>
	</xsd:annotation>

	<xsd:complexType name="SimpleID">
		<xsd:sequence>
			<xsd:element name="autoID" type="xsd:long" minOccurs="0">
				<xsd:annotation>
					<xsd:appinfo source="teneo.hibernate">
						@Id @GeneratedValue @Column(name="AUTOD")
					</xsd:appinfo>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="generated" type="xsd:long">
				<xsd:annotation>
					<xsd:appinfo source="teneo.hibernate">@Version @Generated(ALWAYS)</xsd:appinfo>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="TableID">
		<xsd:sequence>
			<xsd:element name="myid" type="xsd:long">
				<xsd:annotation>
					<xsd:appinfo source="teneo.hibernate">
						@Id @GeneratedValue(generator="hibseq")
					</xsd:appinfo>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="IdentityID">
		<xsd:sequence>
			<xsd:element name="myid" type="xsd:long">
				<xsd:annotation>
					<xsd:appinfo source="teneo.hibernate">
						@Id @GeneratedValue(strategy="IDENTITY")
					</xsd:appinfo>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>

Back to the top