Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 284 lines (248 sloc) 11.769 kb
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
4f64490 [2.0] Adjusted mapping file.
romanb authored
4 targetNamespace="http://doctrine-project.org/schemas/orm/doctrine-mapping"
5 xmlns:orm="http://doctrine-project.org/schemas/orm/doctrine-mapping"
969480f [2.0] Adjusted mapping file.
romanb authored
6 elementFormDefault="qualified">
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
7
7c5c62f [2.0] testing post-commit hook
romanb authored
8 <xs:annotation>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
9 <xs:documentation><![CDATA[
10 This is the XML Schema for the object/relational
4f64490 [2.0] Adjusted mapping file.
romanb authored
11 mapping file used by the Doctrine ORM.
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
12 ]]></xs:documentation>
13 </xs:annotation>
14
15 <xs:element name="doctrine-mapping">
16 <xs:complexType>
17 <xs:sequence>
b1d34fc [2.0] Work on SchemaTool and DBAL.
romanb authored
18 <xs:element name="mapped-superclass" type="orm:mapped-superclass" minOccurs="0" maxOccurs="unbounded" />
19 <xs:element name="entity" type="orm:entity" minOccurs="0" maxOccurs="unbounded" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
20 </xs:sequence>
21 </xs:complexType>
22 </xs:element>
23
24 <xs:complexType name="emptyType"/>
25
26 <xs:complexType name="cascade-type">
27 <xs:sequence>
28 <xs:element name="cascade-all" type="orm:emptyType" minOccurs="0"/>
28ca2ac [2.0] Refined implementation and semantics of the merge and detach op…
romanb authored
29 <xs:element name="cascade-persist" type="orm:emptyType" minOccurs="0"/>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
30 <xs:element name="cascade-merge" type="orm:emptyType" minOccurs="0"/>
28ca2ac [2.0] Refined implementation and semantics of the merge and detach op…
romanb authored
31 <xs:element name="cascade-remove" type="orm:emptyType" minOccurs="0"/>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
32 <xs:element name="cascade-refresh" type="orm:emptyType" minOccurs="0"/>
33 </xs:sequence>
34 </xs:complexType>
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
35
8523648 [2.0] Fixed lifecycle callback mapping.
romanb authored
36 <xs:simpleType name="lifecycle-callback-type">
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
37 <xs:restriction base="xs:token">
38 <xs:enumeration value="prePersist"/>
39 <xs:enumeration value="postPersist"/>
40 <xs:enumeration value="preUpdate"/>
41 <xs:enumeration value="postUpdate"/>
42 <xs:enumeration value="preRemove"/>
43 <xs:enumeration value="postRemove"/>
44 <xs:enumeration value="postLoad"/>
45 </xs:restriction>
46 </xs:simpleType>
47
8523648 [2.0] Fixed lifecycle callback mapping.
romanb authored
48 <xs:complexType name="lifecycle-callback">
49 <xs:attribute name="type" type="orm:lifecycle-callback-type" use="required" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
50 <xs:attribute name="method" type="xs:NMTOKEN" use="required" />
51 </xs:complexType>
52
8523648 [2.0] Fixed lifecycle callback mapping.
romanb authored
53 <xs:complexType name="lifecycle-callbacks">
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
54 <xs:sequence>
8523648 [2.0] Fixed lifecycle callback mapping.
romanb authored
55 <xs:element name="lifecycle-callback" type="orm:lifecycle-callback" minOccurs="1" maxOccurs="unbounded" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
56 </xs:sequence>
57 </xs:complexType>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
58
59 <xs:complexType name="entity">
60 <xs:sequence>
b1d34fc [2.0] Work on SchemaTool and DBAL.
romanb authored
61 <xs:element name="indexes" type="orm:indexes" minOccurs="0"/>
62 <xs:element name="unique-constraints" type="orm:unique-constraints" minOccurs="0"/>
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
63 <xs:element name="discriminator-column" type="orm:discriminator-column" minOccurs="0"/>
b1d34fc [2.0] Work on SchemaTool and DBAL.
romanb authored
64 <xs:element name="discriminator-map" type="orm:discriminator-map" minOccurs="0"/>
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
65 <xs:element name="lifecycle-callbacks" type="orm:lifecycle-callbacks" minOccurs="0" maxOccurs="1" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
66 <xs:element name="id" type="orm:id" />
b1d34fc [2.0] Work on SchemaTool and DBAL.
romanb authored
67 <xs:element name="field" type="orm:field" minOccurs="0" maxOccurs="unbounded"/>
68 <xs:element name="one-to-one" type="orm:one-to-one" minOccurs="0" maxOccurs="unbounded"/>
69 <xs:element name="one-to-many" type="orm:one-to-many" minOccurs="0" maxOccurs="unbounded" />
674e9be [2.0][DDC-242][DDC-243] Fixed.
romanb authored
70 <xs:element name="many-to-one" type="orm:many-to-one" minOccurs="0" maxOccurs="unbounded" />
b1d34fc [2.0] Work on SchemaTool and DBAL.
romanb authored
71 <xs:element name="many-to-many" type="orm:many-to-many" minOccurs="0" maxOccurs="unbounded" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
72 </xs:sequence>
73 <xs:attribute name="name" type="xs:string" use="required" />
74 <xs:attribute name="table" type="xs:NMTOKEN" />
75 <xs:attribute name="schema" type="xs:NMTOKEN" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
76 <xs:attribute name="repository-class" type="xs:NMTOKEN"/>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
77 <xs:attribute name="inheritance-type" type="orm:inheritance-type"/>
78 </xs:complexType>
79
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
80 <xs:complexType name="mapped-superclass" >
81 <xs:complexContent>
82 <xs:extension base="orm:entity"/>
83 </xs:complexContent>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
84 </xs:complexType>
85
86 <xs:simpleType name="inheritance-type">
6e5a506 [2.0] Converted constant values from strings to integers.
romanb authored
87 <xs:restriction base="xs:token">
88 <xs:enumeration value="SINGLE_TABLE"/>
89 <xs:enumeration value="JOINED"/>
90 <xs:enumeration value="TABLE_PER_CLASS"/>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
91 </xs:restriction>
92 </xs:simpleType>
6e5a506 [2.0] Converted constant values from strings to integers.
romanb authored
93
94 <xs:simpleType name="generator-strategy">
95 <xs:restriction base="xs:token">
96 <xs:enumeration value="TABLE"/>
97 <xs:enumeration value="SEQUENCE"/>
98 <xs:enumeration value="IDENTITY"/>
99 <xs:enumeration value="AUTO"/>
100 </xs:restriction>
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
101 </xs:simpleType>
102
103 <xs:simpleType name="fk-action">
104 <xs:restriction base="xs:token">
105 <xs:enumeration value="CASCADE"/>
106 <xs:enumeration value="RESTRICT"/>
107 <xs:enumeration value="SET_NULL"/>
108 </xs:restriction>
eff87be [2.0][DDC-207] Fixed. Also added fetch-type.
romanb authored
109 </xs:simpleType>
110
111 <xs:simpleType name="fetch-type">
112 <xs:restriction base="xs:token">
113 <xs:enumeration value="EAGER"/>
114 <xs:enumeration value="LAZY"/>
115 </xs:restriction>
4adc289 [2.0][DDC-284] Fixed. API polish and some convention over configurati…
romanb authored
116 </xs:simpleType>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
117
118 <xs:complexType name="field">
119 <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
4adc289 [2.0][DDC-284] Fixed. API polish and some convention over configurati…
romanb authored
120 <xs:attribute name="type" type="xs:NMTOKEN" default="string" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
121 <xs:attribute name="column" type="xs:NMTOKEN" />
122 <xs:attribute name="length" type="xs:NMTOKEN" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
123 <xs:attribute name="unique" type="xs:boolean" default="false" />
124 <xs:attribute name="nullable" type="xs:boolean" default="false" />
125 <xs:attribute name="version" type="xs:boolean" />
ee9aa00 [2.0] DDC-271 - Add columnDefinition for Join-Column in Annotation, X…
beberlei authored
126 <xs:attribute name="column-definition" type="xs:string" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
127 </xs:complexType>
128
129 <xs:complexType name="discriminator-column">
130 <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
131 <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
132 <xs:attribute name="field-name" type="xs:NMTOKEN" />
133 <xs:attribute name="length" type="xs:NMTOKEN" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
134 </xs:complexType>
b1d34fc [2.0] Work on SchemaTool and DBAL.
romanb authored
135
136 <xs:complexType name="unique-constraint">
137 <xs:attribute name="name" type="xs:NMTOKEN" use="optional"/>
138 <xs:attribute name="columns" type="xs:NMTOKENS" use="required"/>
139 </xs:complexType>
140
141 <xs:complexType name="unique-constraints">
142 <xs:sequence>
143 <xs:element name="unique-constraint" type="orm:unique-constraint" minOccurs="1" maxOccurs="unbounded"/>
144 </xs:sequence>
145 </xs:complexType>
146
147 <xs:complexType name="index">
148 <xs:attribute name="name" type="xs:NMTOKEN" use="optional"/>
149 <xs:attribute name="columns" type="xs:NMTOKENS" use="required"/>
150 </xs:complexType>
151
152 <xs:complexType name="indexes">
153 <xs:sequence>
154 <xs:element name="index" type="orm:index" minOccurs="1" maxOccurs="unbounded"/>
155 </xs:sequence>
156 </xs:complexType>
157
158 <xs:complexType name="discriminator-mapping">
159 <xs:attribute name="value" type="xs:NMTOKEN" use="required"/>
160 <xs:attribute name="class" type="xs:NMTOKEN" use="required"/>
161 </xs:complexType>
162
163 <xs:complexType name="discriminator-map">
164 <xs:sequence>
165 <xs:element name="discriminator-mapping" type="orm:discriminator-mapping" minOccurs="1" maxOccurs="unbounded"/>
166 </xs:sequence>
167 </xs:complexType>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
168
169 <xs:complexType name="generator">
4adc289 [2.0][DDC-284] Fixed. API polish and some convention over configurati…
romanb authored
170 <xs:attribute name="strategy" type="orm:generator-strategy" use="optional" default="AUTO" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
171 </xs:complexType>
172
173 <xs:complexType name="id">
174 <xs:sequence>
175 <xs:element name="generator" type="orm:generator" minOccurs="0" />
176 </xs:sequence>
177 <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
178 <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
179 <xs:attribute name="column" type="xs:NMTOKEN" />
180 </xs:complexType>
181
182 <xs:complexType name="inverse-join-columns">
183 <xs:sequence>
b1d34fc [2.0] Work on SchemaTool and DBAL.
romanb authored
184 <xs:element name="join-column" type="orm:join-column" minOccurs="1" maxOccurs="unbounded" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
185 </xs:sequence>
186 </xs:complexType>
187
188 <xs:complexType name="join-column">
189 <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
4adc289 [2.0][DDC-284] Fixed. API polish and some convention over configurati…
romanb authored
190 <xs:attribute name="referenced-column-name" type="xs:NMTOKEN" use="optional" default="id" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
191 <xs:attribute name="unique" type="xs:boolean" default="false" />
192 <xs:attribute name="nullable" type="xs:boolean" default="true" />
193 <xs:attribute name="on-delete" type="orm:fk-action" />
194 <xs:attribute name="on-update" type="orm:fk-action" />
ee9aa00 [2.0] DDC-271 - Add columnDefinition for Join-Column in Annotation, X…
beberlei authored
195 <xs:attribute name="column-definition" type="xs:string" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
196 </xs:complexType>
197
198 <xs:complexType name="join-columns">
199 <xs:sequence>
b1d34fc [2.0] Work on SchemaTool and DBAL.
romanb authored
200 <xs:element name="join-column" type="orm:join-column" minOccurs="1" maxOccurs="unbounded" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
201 </xs:sequence>
202 </xs:complexType>
203
204 <xs:complexType name="join-table">
205 <xs:sequence>
206 <xs:element name="join-columns" type="orm:join-columns" />
207 <xs:element name="inverse-join-columns" type="orm:join-columns" />
208 </xs:sequence>
209 <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
210 <xs:attribute name="schema" type="xs:NMTOKEN" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
211 </xs:complexType>
212
35d795b [2.0] DDC-195 - Updated XSD Schema
beberlei authored
213 <xs:complexType name="order-by">
214 <xs:sequence>
215 <xs:element name="order-by-field" type="orm:order-by-field" minOccurs="1" maxOccurs="unbounded" />
216 </xs:sequence>
217 </xs:complexType>
218
219 <xs:complexType name="order-by-field">
220 <xs:attribute name="field" type="XS:NMTOKEN" use="required" />
457d832 [2.0] DDC-195 - Updated XSD Schema
beberlei authored
221 <xs:attribute name="direction" type="orm:order-by-direction" default="ASC" />
35d795b [2.0] DDC-195 - Updated XSD Schema
beberlei authored
222 </xs:complexType>
223
457d832 [2.0] DDC-195 - Updated XSD Schema
beberlei authored
224 <xs:simpleType name="order-by-direction">
225 <xs:restriction base="xs:token">
226 <xs:enumeration value="ASC"/>
227 <xs:enumeration value="DESC"/>
228 </xs:restriction>
229 </xs:simpleType>
230
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
231 <xs:complexType name="many-to-many">
232 <xs:sequence>
233 <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
4adc289 [2.0][DDC-284] Fixed. API polish and some convention over configurati…
romanb authored
234 <xs:element name="join-table" type="orm:join-table" minOccurs="0" />
35d795b [2.0] DDC-195 - Updated XSD Schema
beberlei authored
235 <xs:element name="order-by" type="orm:order-by" minOccurs="0" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
236 </xs:sequence>
b1d34fc [2.0] Work on SchemaTool and DBAL.
romanb authored
237 <xs:attribute name="target-entity" type="xs:NMTOKEN" use="required" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
238 <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
674e9be [2.0][DDC-242][DDC-243] Fixed.
romanb authored
239 <xs:attribute name="mapped-by" type="xs:NMTOKEN" />
eff87be [2.0][DDC-207] Fixed. Also added fetch-type.
romanb authored
240 <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
241 </xs:complexType>
242
243 <xs:complexType name="one-to-many">
244 <xs:sequence>
245 <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
35d795b [2.0] DDC-195 - Updated XSD Schema
beberlei authored
246 <xs:element name="order-by" type="orm:order-by" minOccurs="0" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
247 </xs:sequence>
b1d34fc [2.0] Work on SchemaTool and DBAL.
romanb authored
248 <xs:attribute name="target-entity" type="xs:NMTOKEN" use="required" />
249 <xs:attribute name="mapped-by" type="xs:NMTOKEN" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
250 <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
251 <xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
eff87be [2.0][DDC-207] Fixed. Also added fetch-type.
romanb authored
252 <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
253 </xs:complexType>
254
255 <xs:complexType name="many-to-one">
256 <xs:sequence>
257 <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
4adc289 [2.0][DDC-284] Fixed. API polish and some convention over configurati…
romanb authored
258 <xs:choice minOccurs="0" maxOccurs="1">
eff87be [2.0][DDC-207] Fixed. Also added fetch-type.
romanb authored
259 <xs:element name="join-column" type="orm:join-column"/>
260 <xs:element name="join-columns" type="orm:join-columns"/>
261 </xs:choice>
262 </xs:sequence>
263 <xs:attribute name="target-entity" type="xs:NMTOKEN" use="required" />
264 <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
265 <xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
266 <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
267 </xs:complexType>
268
269 <xs:complexType name="one-to-one">
270 <xs:sequence>
271 <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
272 <xs:choice minOccurs="0" maxOccurs="1">
273 <xs:element name="join-column" type="orm:join-column"/>
274 <xs:element name="join-columns" type="orm:join-columns"/>
275 </xs:choice>
276 </xs:sequence>
b1d34fc [2.0] Work on SchemaTool and DBAL.
romanb authored
277 <xs:attribute name="target-entity" type="xs:NMTOKEN" use="required" />
278 <xs:attribute name="mapped-by" type="xs:NMTOKEN" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
279 <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
romanb authored
280 <xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
eff87be [2.0][DDC-207] Fixed. Also added fetch-type.
romanb authored
281 <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
romanb authored
282 </xs:complexType>
283
284 </xs:schema>
Something went wrong with that request. Please try again.