Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 264 lines (231 sloc) 10.967 kb
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
4f644901 » romanb
2009-08-27 [2.0] Adjusted mapping file.
4 targetNamespace="http://doctrine-project.org/schemas/orm/doctrine-mapping"
5 xmlns:orm="http://doctrine-project.org/schemas/orm/doctrine-mapping"
969480f0 » romanb
2009-08-27 [2.0] Adjusted mapping file.
6 elementFormDefault="qualified">
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
7
7c5c62f7 » romanb
2009-08-27 [2.0] testing post-commit hook
8 <xs:annotation>
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
9 <xs:documentation><![CDATA[
10 This is the XML Schema for the object/relational
4f644901 » romanb
2009-08-27 [2.0] Adjusted mapping file.
11 mapping file used by the Doctrine ORM.
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
12 ]]></xs:documentation>
13 </xs:annotation>
14
15 <xs:element name="doctrine-mapping">
16 <xs:complexType>
17 <xs:sequence>
b1d34fca » romanb
2009-08-21 [2.0] Work on SchemaTool and DBAL.
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" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
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"/>
28ca2acb » romanb
2009-07-25 [2.0] Refined implementation and semantics of the merge and detach op…
29 <xs:element name="cascade-persist" type="orm:emptyType" minOccurs="0"/>
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
30 <xs:element name="cascade-merge" type="orm:emptyType" minOccurs="0"/>
28ca2acb » romanb
2009-07-25 [2.0] Refined implementation and semantics of the merge and detach op…
31 <xs:element name="cascade-remove" type="orm:emptyType" minOccurs="0"/>
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
32 <xs:element name="cascade-refresh" type="orm:emptyType" minOccurs="0"/>
33 </xs:sequence>
34 </xs:complexType>
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
35
8523648a » romanb
2009-08-25 [2.0] Fixed lifecycle callback mapping.
36 <xs:simpleType name="lifecycle-callback-type">
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
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
8523648a » romanb
2009-08-25 [2.0] Fixed lifecycle callback mapping.
48 <xs:complexType name="lifecycle-callback">
49 <xs:attribute name="type" type="orm:lifecycle-callback-type" use="required" />
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
50 <xs:attribute name="method" type="xs:NMTOKEN" use="required" />
51 </xs:complexType>
52
8523648a » romanb
2009-08-25 [2.0] Fixed lifecycle callback mapping.
53 <xs:complexType name="lifecycle-callbacks">
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
54 <xs:sequence>
8523648a » romanb
2009-08-25 [2.0] Fixed lifecycle callback mapping.
55 <xs:element name="lifecycle-callback" type="orm:lifecycle-callback" minOccurs="1" maxOccurs="unbounded" />
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
56 </xs:sequence>
57 </xs:complexType>
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
58
59 <xs:complexType name="entity">
60 <xs:sequence>
b1d34fca » romanb
2009-08-21 [2.0] Work on SchemaTool and DBAL.
61 <xs:element name="indexes" type="orm:indexes" minOccurs="0"/>
62 <xs:element name="unique-constraints" type="orm:unique-constraints" minOccurs="0"/>
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
63 <xs:element name="discriminator-column" type="orm:discriminator-column" minOccurs="0"/>
b1d34fca » romanb
2009-08-21 [2.0] Work on SchemaTool and DBAL.
64 <xs:element name="discriminator-map" type="orm:discriminator-map" minOccurs="0"/>
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
65 <xs:element name="lifecycle-callbacks" type="orm:lifecycle-callbacks" minOccurs="0" maxOccurs="1" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
66 <xs:element name="id" type="orm:id" />
b1d34fca » romanb
2009-08-21 [2.0] Work on SchemaTool and DBAL.
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" />
674e9bee » romanb
2010-01-06 [2.0][DDC-242][DDC-243] Fixed.
70 <xs:element name="many-to-one" type="orm:many-to-one" minOccurs="0" maxOccurs="unbounded" />
b1d34fca » romanb
2009-08-21 [2.0] Work on SchemaTool and DBAL.
71 <xs:element name="many-to-many" type="orm:many-to-many" minOccurs="0" maxOccurs="unbounded" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
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" />
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
76 <xs:attribute name="repository-class" type="xs:NMTOKEN"/>
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
77 <xs:attribute name="inheritance-type" type="orm:inheritance-type"/>
78 </xs:complexType>
79
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
80 <xs:complexType name="mapped-superclass" >
81 <xs:complexContent>
82 <xs:extension base="orm:entity"/>
83 </xs:complexContent>
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
84 </xs:complexType>
85
86 <xs:simpleType name="inheritance-type">
6e5a5068 » romanb
2009-06-07 [2.0] Converted constant values from strings to integers.
87 <xs:restriction base="xs:token">
88 <xs:enumeration value="SINGLE_TABLE"/>
89 <xs:enumeration value="JOINED"/>
90 <xs:enumeration value="TABLE_PER_CLASS"/>
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
91 </xs:restriction>
92 </xs:simpleType>
6e5a5068 » romanb
2009-06-07 [2.0] Converted constant values from strings to integers.
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>
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
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>
eff87be5 » romanb
2009-12-19 [2.0][DDC-207] Fixed. Also added fetch-type.
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>
6e5a5068 » romanb
2009-06-07 [2.0] Converted constant values from strings to integers.
116 </xs:simpleType>
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
117
118 <xs:complexType name="field">
119 <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
120 <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
121 <xs:attribute name="column" type="xs:NMTOKEN" />
122 <xs:attribute name="length" type="xs:NMTOKEN" />
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
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" />
ee9aa005 » beberlei
2010-02-01 [2.0] DDC-271 - Add columnDefinition for Join-Column in Annotation, X…
126 <xs:attribute name="column-definition" type="xs:string" />
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
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" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
134 </xs:complexType>
b1d34fca » romanb
2009-08-21 [2.0] Work on SchemaTool and DBAL.
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>
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
168
169 <xs:complexType name="generator">
6e5a5068 » romanb
2009-06-07 [2.0] Converted constant values from strings to integers.
170 <xs:attribute name="strategy" type="orm:generator-strategy" use="required" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
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>
b1d34fca » romanb
2009-08-21 [2.0] Work on SchemaTool and DBAL.
184 <xs:element name="join-column" type="orm:join-column" minOccurs="1" maxOccurs="unbounded" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
185 </xs:sequence>
186 </xs:complexType>
187
188 <xs:complexType name="join-column">
189 <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
b1d34fca » romanb
2009-08-21 [2.0] Work on SchemaTool and DBAL.
190 <xs:attribute name="referenced-column-name" type="xs:NMTOKEN" use="required" />
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
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" />
ee9aa005 » beberlei
2010-02-01 [2.0] DDC-271 - Add columnDefinition for Join-Column in Annotation, X…
195 <xs:attribute name="column-definition" type="xs:string" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
196 </xs:complexType>
197
198 <xs:complexType name="join-columns">
199 <xs:sequence>
b1d34fca » romanb
2009-08-21 [2.0] Work on SchemaTool and DBAL.
200 <xs:element name="join-column" type="orm:join-column" minOccurs="1" maxOccurs="unbounded" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
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" />
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
210 <xs:attribute name="schema" type="xs:NMTOKEN" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
211 </xs:complexType>
212
213 <xs:complexType name="many-to-many">
214 <xs:sequence>
215 <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
216 <xs:element name="join-table" type="orm:join-table" />
217 </xs:sequence>
b1d34fca » romanb
2009-08-21 [2.0] Work on SchemaTool and DBAL.
218 <xs:attribute name="target-entity" type="xs:NMTOKEN" use="required" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
219 <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
674e9bee » romanb
2010-01-06 [2.0][DDC-242][DDC-243] Fixed.
220 <xs:attribute name="mapped-by" type="xs:NMTOKEN" />
eff87be5 » romanb
2009-12-19 [2.0][DDC-207] Fixed. Also added fetch-type.
221 <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
222 </xs:complexType>
223
224 <xs:complexType name="one-to-many">
225 <xs:sequence>
226 <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
227 </xs:sequence>
b1d34fca » romanb
2009-08-21 [2.0] Work on SchemaTool and DBAL.
228 <xs:attribute name="target-entity" type="xs:NMTOKEN" use="required" />
229 <xs:attribute name="mapped-by" type="xs:NMTOKEN" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
230 <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
231 <xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
eff87be5 » romanb
2009-12-19 [2.0][DDC-207] Fixed. Also added fetch-type.
232 <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
233 </xs:complexType>
234
235 <xs:complexType name="many-to-one">
236 <xs:sequence>
237 <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
ca2faba1 » romanb
2010-01-06 [2.0] Small correction to enforce join-column or join-columns in many…
238 <xs:choice minOccurs="1" maxOccurs="1">
eff87be5 » romanb
2009-12-19 [2.0][DDC-207] Fixed. Also added fetch-type.
239 <xs:element name="join-column" type="orm:join-column"/>
240 <xs:element name="join-columns" type="orm:join-columns"/>
241 </xs:choice>
242 </xs:sequence>
243 <xs:attribute name="target-entity" type="xs:NMTOKEN" use="required" />
244 <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
245 <xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
246 <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
247 </xs:complexType>
248
249 <xs:complexType name="one-to-one">
250 <xs:sequence>
251 <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
252 <xs:choice minOccurs="0" maxOccurs="1">
253 <xs:element name="join-column" type="orm:join-column"/>
254 <xs:element name="join-columns" type="orm:join-columns"/>
255 </xs:choice>
256 </xs:sequence>
b1d34fca » romanb
2009-08-21 [2.0] Work on SchemaTool and DBAL.
257 <xs:attribute name="target-entity" type="xs:NMTOKEN" use="required" />
258 <xs:attribute name="mapped-by" type="xs:NMTOKEN" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
259 <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
e161103e » romanb
2009-08-14 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema f…
260 <xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
eff87be5 » romanb
2009-12-19 [2.0][DDC-207] Fixed. Also added fetch-type.
261 <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
d90e71d0 » romanb
2009-06-01 [2.0] First implementation of XmlDriver + tests. First draft of XSD d…
262 </xs:complexType>
263
264 </xs:schema>
Something went wrong with that request. Please try again.