forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnhibernate-configuration.xsd
199 lines (199 loc) · 7.55 KB
/
nhibernate-configuration.xsd
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<xs:schema targetNamespace="urn:nhibernate-configuration-2.2" xmlns="urn:nhibernate-configuration-2.2" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:NS="urn:nhibernate-configuration-2.2">
<xs:annotation>
<xs:documentation>
-- This schema was automatically generated by Syntext Dtd2Schema and changed for NH use --
-- conversion tool (from file: hibernate-configuration-3.0.dtd) --
-- Copyright (C) 2002, 2003 Syntext Inc. See http://www.syntext.com for updates. --
</xs:documentation>
</xs:annotation>
<!-- Type definitions -->
<xs:element name="hibernate-configuration">
<xs:complexType>
<xs:sequence>
<xs:element ref="bytecode-provider" minOccurs="0" maxOccurs="1" />
<xs:element ref="reflection-optimizer" maxOccurs="1" minOccurs="0" />
<xs:element ref="session-factory" minOccurs="0" maxOccurs="1" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="class-cache">
<xs:complexType>
<xs:sequence>
</xs:sequence>
<xs:attribute name="class" type="xs:string" use="required" />
<xs:attributeGroup ref="cacheSpecification" />
<xs:attribute name="include">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="all" />
<xs:enumeration value="non-lazy" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="collection-cache">
<xs:complexType>
<xs:sequence />
<xs:attribute name="collection" type="xs:string" use="required" />
<xs:attributeGroup ref="cacheSpecification" />
</xs:complexType>
</xs:element>
<xs:element name="mapping">
<xs:annotation>
<xs:documentation>
There are 3 possible combinations of mapping attributes
1 - resource & assembly: NHibernate will read the mapping resource from the specified assembly
2 - file only: NHibernate will read the mapping from the file.
3 - assembly only: NHibernate will find all the resources ending in hbm.xml from the assembly.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="resource" />
<xs:attribute name="file" />
<xs:attribute name="assembly" />
</xs:complexType>
</xs:element>
<xs:element name="property">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="name" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="connection.provider" />
<xs:enumeration value="connection.driver_class" />
<xs:enumeration value="connection.connection_string" />
<xs:enumeration value="connection.isolation" />
<xs:enumeration value="connection.release_mode" />
<xs:enumeration value="connection.connection_string_name" />
<xs:enumeration value="dialect" />
<xs:enumeration value="default_schema" />
<xs:enumeration value="show_sql" />
<xs:enumeration value="max_fetch_depth" />
<xs:enumeration value="current_session_context_class" />
<xs:enumeration value="transaction.factory_class" />
<xs:enumeration value="cache.provider_class" />
<xs:enumeration value="cache.use_query_cache" />
<xs:enumeration value="cache.query_cache_factory" />
<xs:enumeration value="cache.use_second_level_cache" />
<xs:enumeration value="cache.region_prefix" />
<xs:enumeration value="cache.use_minimal_puts" />
<xs:enumeration value="query.substitutions" />
<xs:enumeration value="query.factory_class" />
<xs:enumeration value="query.imports" />
<xs:enumeration value="hbm2ddl.auto" />
<xs:enumeration value="sql_exception_converter" />
<xs:enumeration value="adonet.wrap_result_sets" />
<xs:enumeration value="prepare_sql" />
<xs:enumeration value="command_timeout" />
<xs:enumeration value="adonet.batch_size" />
<xs:enumeration value="use_proxy_validator" />
<xs:enumeration value="use_outer_join" />
<xs:enumeration value="xml.output_stylesheet" />
<xs:enumeration value="generate_statistics" />
<xs:enumeration value="query.startup_check" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="session-factory">
<xs:complexType>
<xs:sequence>
<xs:element ref="property" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="mapping" minOccurs="0" maxOccurs="unbounded" />
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="class-cache" />
<xs:element ref="collection-cache" />
</xs:choice>
<xs:element ref="event" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="listener" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" use="optional" />
</xs:complexType>
</xs:element>
<xs:attributeGroup name="cacheSpecification">
<xs:attribute name="region" type="xs:string" use="optional" />
<xs:attribute name="usage" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="read-only" />
<xs:enumeration value="read-write" />
<xs:enumeration value="nonstrict-read-write" />
<xs:enumeration value="transactional" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:attributeGroup>
<xs:element name="event">
<xs:complexType>
<xs:sequence>
<xs:element ref="listener" minOccurs="1" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="type" type="listenerType" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="listener">
<xs:complexType>
<xs:sequence />
<xs:attribute name="class" type="xs:string" use="required" />
<xs:attribute name="type" type="listenerType" use="optional" />
</xs:complexType>
</xs:element>
<xs:simpleType name="listenerType">
<xs:restriction base="xs:string">
<xs:enumeration value="auto-flush" />
<xs:enumeration value="merge" />
<xs:enumeration value="create" />
<xs:enumeration value="create-onflush" />
<xs:enumeration value="delete" />
<xs:enumeration value="dirty-check" />
<xs:enumeration value="evict" />
<xs:enumeration value="flush" />
<xs:enumeration value="flush-entity" />
<xs:enumeration value="load" />
<xs:enumeration value="load-collection" />
<xs:enumeration value="lock" />
<xs:enumeration value="refresh" />
<xs:enumeration value="replicate" />
<xs:enumeration value="save-update" />
<xs:enumeration value="save" />
<xs:enumeration value="pre-update" />
<xs:enumeration value="update" />
<xs:enumeration value="pre-load" />
<xs:enumeration value="pre-delete" />
<xs:enumeration value="pre-insert" />
<xs:enumeration value="post-load" />
<xs:enumeration value="post-insert" />
<xs:enumeration value="post-update" />
<xs:enumeration value="post-delete" />
<xs:enumeration value="post-commit-update" />
<xs:enumeration value="post-commit-insert" />
<xs:enumeration value="post-commit-delete" />
</xs:restriction>
</xs:simpleType>
<xs:element name="bytecode-provider">
<xs:complexType>
<xs:sequence>
</xs:sequence>
<xs:attribute name="type" default="lcg">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="codedom" />
<xs:enumeration value="lcg" />
<xs:enumeration value="null" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="reflection-optimizer">
<xs:complexType>
<xs:sequence />
<xs:attribute name="use" type="xs:boolean" />
</xs:complexType>
</xs:element>
</xs:schema>