Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 202 lines (177 sloc) 8.053 kb
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
romanb authored
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
e578bad [2.0] Fixed several referential integrity issues. Fixed critical issue w...
romanb authored
4 targetNamespace="http://doctrine-project.org/schemas/orm/doctrine-mapping"
5 xmlns:orm="http://doctrine-project.org/schemas/orm/doctrine-mapping"
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
romanb authored
6 elementFormDefault="qualified">
7
8 <xs:annotation>
9 <xs:documentation><![CDATA[
10 This is the XML Schema for the object/relational
11 mapping file used by Doctrine.
12 ]]></xs:documentation>
13 </xs:annotation>
14
15 <xs:element name="doctrine-mapping">
16 <xs:complexType>
17 <xs:sequence>
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema for ...
romanb authored
18 <xs:element name="mapped-superclass" type="orm:mapped-superclass" minOccurs="0" />
19 <xs:element name="entity" type="orm:entity" minOccurs="0" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
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 opera...
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 docu...
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 opera...
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 docu...
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 for ...
romanb authored
35
36 <xs:simpleType name="lifecycle-callback-type">
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
48 <xs:complexType name="lifecycle-callback">
49 <xs:attribute name="type" type="orm:lifecycle-callback-type" use="required" />
50 <xs:attribute name="method" type="xs:NMTOKEN" use="required" />
51 </xs:complexType>
52
53 <xs:complexType name="lifecycle-callbacks">
54 <xs:sequence>
55 <xs:element name="lifecycle-callback" type="orm:lifecycle-callback" minOccurs="1" />
56 </xs:sequence>
57 </xs:complexType>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
romanb authored
58
59 <xs:complexType name="entity">
60 <xs:sequence>
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema for ...
romanb authored
61 <xs:element name="discriminator-column" type="orm:discriminator-column" minOccurs="0"/>
62 <xs:element name="subclasses" type="xs:NMTOKENS" minOccurs="0"/>
63 <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 docu...
romanb authored
64 <xs:element name="id" type="orm:id" />
65 <xs:element name="field" type="orm:field" minOccurs="0" />
66 <xs:element name="one-to-one" type="orm:one-to-one" minOccurs="0"/>
67 <xs:element name="one-to-many" type="orm:one-to-many" minOccurs="0" />
68 <xs:element name="many-to-many" type="orm:many-to-many" minOccurs="0" />
69 </xs:sequence>
70 <xs:attribute name="name" type="xs:string" use="required" />
71 <xs:attribute name="table" type="xs:NMTOKEN" />
72 <xs:attribute name="schema" type="xs:NMTOKEN" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema for ...
romanb authored
73 <xs:attribute name="repository-class" type="xs:NMTOKEN"/>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
romanb authored
74 <xs:attribute name="inheritance-type" type="orm:inheritance-type"/>
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema for ...
romanb authored
75 <xs:attribute name="discriminator-value" type="xs:NMTOKEN"/>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
romanb authored
76 </xs:complexType>
77
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema for ...
romanb authored
78 <xs:complexType name="mapped-superclass" >
79 <xs:complexContent>
80 <xs:extension base="orm:entity"/>
81 </xs:complexContent>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
romanb authored
82 </xs:complexType>
83
84 <xs:simpleType name="inheritance-type">
6e5a506 [2.0] Converted constant values from strings to integers.
romanb authored
85 <xs:restriction base="xs:token">
86 <xs:enumeration value="SINGLE_TABLE"/>
87 <xs:enumeration value="JOINED"/>
88 <xs:enumeration value="TABLE_PER_CLASS"/>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
romanb authored
89 </xs:restriction>
90 </xs:simpleType>
6e5a506 [2.0] Converted constant values from strings to integers.
romanb authored
91
92 <xs:simpleType name="generator-strategy">
93 <xs:restriction base="xs:token">
94 <xs:enumeration value="TABLE"/>
95 <xs:enumeration value="SEQUENCE"/>
96 <xs:enumeration value="IDENTITY"/>
97 <xs:enumeration value="AUTO"/>
98 </xs:restriction>
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema for ...
romanb authored
99 </xs:simpleType>
100
101 <xs:simpleType name="fk-action">
102 <xs:restriction base="xs:token">
103 <xs:enumeration value="CASCADE"/>
104 <xs:enumeration value="RESTRICT"/>
105 <xs:enumeration value="SET_NULL"/>
106 </xs:restriction>
6e5a506 [2.0] Converted constant values from strings to integers.
romanb authored
107 </xs:simpleType>
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
romanb authored
108
109 <xs:complexType name="field">
110 <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
111 <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
112 <xs:attribute name="column" type="xs:NMTOKEN" />
113 <xs:attribute name="length" type="xs:NMTOKEN" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema for ...
romanb authored
114 <xs:attribute name="unique" type="xs:boolean" default="false" />
115 <xs:attribute name="nullable" type="xs:boolean" default="false" />
116 <xs:attribute name="version" type="xs:boolean" />
117 </xs:complexType>
118
119 <xs:complexType name="discriminator-column">
120 <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
121 <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
122 <xs:attribute name="field-name" type="xs:NMTOKEN" />
123 <xs:attribute name="length" type="xs:NMTOKEN" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
romanb authored
124 </xs:complexType>
125
126 <xs:complexType name="generator">
6e5a506 [2.0] Converted constant values from strings to integers.
romanb authored
127 <xs:attribute name="strategy" type="orm:generator-strategy" use="required" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
romanb authored
128 </xs:complexType>
129
130 <xs:complexType name="id">
131 <xs:sequence>
132 <xs:element name="generator" type="orm:generator" minOccurs="0" />
133 </xs:sequence>
134 <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
135 <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
136 <xs:attribute name="column" type="xs:NMTOKEN" />
137 </xs:complexType>
138
139 <xs:complexType name="inverse-join-columns">
140 <xs:sequence>
141 <xs:element name="join-column" type="orm:join-column" />
142 </xs:sequence>
143 </xs:complexType>
144
145 <xs:complexType name="join-column">
146 <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
147 <xs:attribute name="referencedColumnName" type="xs:NMTOKEN" use="required" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema for ...
romanb authored
148 <xs:attribute name="unique" type="xs:boolean" default="false" />
149 <xs:attribute name="nullable" type="xs:boolean" default="true" />
150 <xs:attribute name="on-delete" type="orm:fk-action" />
151 <xs:attribute name="on-update" type="orm:fk-action" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
romanb authored
152 </xs:complexType>
153
154 <xs:complexType name="join-columns">
155 <xs:sequence>
156 <xs:element name="join-column" type="orm:join-column" />
157 </xs:sequence>
158 </xs:complexType>
159
160 <xs:complexType name="join-table">
161 <xs:sequence>
162 <xs:element name="join-columns" type="orm:join-columns" />
163 <xs:element name="inverse-join-columns" type="orm:join-columns" />
164 </xs:sequence>
165 <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema for ...
romanb authored
166 <xs:attribute name="schema" type="xs:NMTOKEN" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
romanb authored
167 </xs:complexType>
168
169 <xs:complexType name="many-to-many">
170 <xs:sequence>
171 <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
172 <xs:element name="join-table" type="orm:join-table" />
173 </xs:sequence>
174 <xs:attribute name="targetEntity" type="xs:NMTOKEN" use="required" />
175 <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
176 </xs:complexType>
177
178 <xs:complexType name="one-to-many">
179 <xs:sequence>
180 <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
181 </xs:sequence>
182 <xs:attribute name="targetEntity" type="xs:NMTOKEN" use="required" />
183 <xs:attribute name="mappedBy" type="xs:NMTOKEN" />
184 <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema for ...
romanb authored
185 <xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
romanb authored
186 </xs:complexType>
187
188 <xs:complexType name="one-to-one">
189 <xs:sequence>
190 <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
191 <xs:choice minOccurs="0" maxOccurs="1">
192 <xs:element name="join-column" type="orm:join-column"/>
193 <xs:element name="join-columns" type="orm:join-columns"/>
194 </xs:choice>
195 </xs:sequence>
196 <xs:attribute name="targetEntity" type="xs:NMTOKEN" use="required" />
197 <xs:attribute name="mappedBy" type="xs:NMTOKEN" />
198 <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
e161103 [2.0] Added EntityRepositoryTest. Updated build file and XML Schema for ...
romanb authored
199 <xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
d90e71d [2.0] First implementation of XmlDriver + tests. First draft of XSD docu...
romanb authored
200 </xs:complexType>
201
202 </xs:schema>
Something went wrong with that request. Please try again.