This repository has been archived by the owner on Feb 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
doctrine-mapping.xsd
126 lines (110 loc) · 4.88 KB
/
doctrine-mapping.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
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://doctrine-project.org/schemas/oxm/doctrine-mapping"
xmlns:oxm="http://doctrine-project.org/schemas/oxm/doctrine-mapping"
elementFormDefault="qualified">
<xs:annotation>
<xs:documentation><![CDATA[
This is the XML Schema for the object/xml
mapping file used by the Doctrine OXM.
]]></xs:documentation>
</xs:annotation>
<xs:element name="doctrine-mapping">
<xs:complexType>
<xs:sequence>
<xs:element name="mapped-superclass" type="oxm:mapped-superclass" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="entity" type="oxm:entity" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="emptyType"/>
<xs:simpleType name="lifecycle-callback-type">
<xs:restriction base="xs:token">
<xs:enumeration value="preUnmarshal"/>
<xs:enumeration value="postUnmarshal"/>
<xs:enumeration value="preMarshal"/>
<xs:enumeration value="postMarshal"/>
<xs:enumeration value="prePersist"/>
<xs:enumeration value="postPersist"/>
<xs:enumeration value="preUpdate"/>
<xs:enumeration value="postUpdate"/>
<xs:enumeration value="preRemove"/>
<xs:enumeration value="postRemove"/>
<xs:enumeration value="postLoad"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="lifecycle-callback">
<xs:attribute name="type" type="oxm:lifecycle-callback-type" use="required" />
<xs:attribute name="method" type="xs:NMTOKEN" use="required" />
</xs:complexType>
<xs:complexType name="lifecycle-callbacks">
<xs:sequence>
<xs:element name="lifecycle-callback" type="oxm:lifecycle-callback" minOccurs="1" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="entity">
<xs:sequence>
<xs:element name="namespaces" type="oxm:namespaces" minOccurs="0"/>
<xs:element name="lifecycle-callbacks" type="oxm:lifecycle-callbacks" minOccurs="0" maxOccurs="1" />
<xs:element name="field" type="oxm:field" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="class" type="xs:string" use="required" />
<xs:attribute name="xml-name" type="xs:string" use="optional" />
<xs:attribute name="root" type="xs:boolean" use="optional" />
<xs:attribute name="repository-class" type="xs:string"/>
<xs:attribute name="change-tracking-policy" type="oxm:change-tracking-policy" />
</xs:complexType>
<xs:complexType name="mapped-superclass" >
<xs:complexContent>
<xs:extension base="oxm:entity"/>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="change-tracking-policy">
<xs:restriction base="xs:token">
<xs:enumeration value="DEFERRED_IMPLICIT"/>
<xs:enumeration value="DEFERRED_EXPLICIT"/>
<xs:enumeration value="NOTIFY"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="generator-strategy">
<xs:restriction base="xs:token">
<xs:enumeration value="ASSIGNED"/>
<xs:enumeration value="INCREMENT"/>
<xs:enumeration value="UUID"/>
<xs:enumeration value="AUTO"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="node-type">
<xs:restriction base="xs:token">
<xs:enumeration value="ATTRIBUTE"/>
<xs:enumeration value="ELEMENT"/>
<xs:enumeration value="TEXT"/>
<xs:enumeration value="VALUE"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="field">
<xs:attribute name="name" type="xs:NMTOKEN" use="required" />
<xs:attribute name="type" type="xs:NMTOKEN" use="required" />
<xs:attribute name="node" type="oxm:node-type" use="required" />
<xs:attribute name="xml-name" type="xs:NMTOKEN" use="optional" />
<xs:attribute name="identifier" type="xs:boolean" default="false" />
<xs:attribute name="id-generator" type="oxm:generator-strategy" use="optional" default="AUTO" />
<xs:attribute name="direct" type="xs:boolean" default="true" />
<xs:attribute name="nillable" type="xs:boolean" default="false" />
<xs:attribute name="required" type="xs:boolean" default="false" />
<xs:attribute name="collection" type="xs:boolean" default="false" />
<xs:attribute name="get-method" type="xs:NMTOKEN" />
<xs:attribute name="set-method" type="xs:NMTOKEN" />
<xs:attribute name="prefix" type="xs:string" />
<xs:attribute name="wrapper" type="xs:string" use="optional" />
</xs:complexType>
<xs:complexType name="namespace">
<xs:attribute name="url" type="xs:string" use="required"/>
<xs:attribute name="prefix" type="xs:string" use="optional"/>
</xs:complexType>
<xs:complexType name="namespaces">
<xs:sequence>
<xs:element name="namespace" type="oxm:namespace" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:schema>