2009-06-01 20:14:11 +04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
2009-08-27 17:05:25 +04:00
|
|
|
targetNamespace="http://doctrine-project.org/schemas/orm/doctrine-mapping"
|
|
|
|
xmlns:orm="http://doctrine-project.org/schemas/orm/doctrine-mapping"
|
2009-08-27 16:53:58 +04:00
|
|
|
elementFormDefault="qualified">
|
2009-06-01 20:14:11 +04:00
|
|
|
|
2009-08-27 13:48:28 +04:00
|
|
|
<xs:annotation>
|
2009-06-01 20:14:11 +04:00
|
|
|
<xs:documentation><![CDATA[
|
|
|
|
This is the XML Schema for the object/relational
|
2009-08-27 17:05:25 +04:00
|
|
|
mapping file used by the Doctrine ORM.
|
2009-06-01 20:14:11 +04:00
|
|
|
]]></xs:documentation>
|
|
|
|
</xs:annotation>
|
|
|
|
|
|
|
|
<xs:element name="doctrine-mapping">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
2009-08-21 22:13:22 +04:00
|
|
|
<xs:element name="mapped-superclass" type="orm:mapped-superclass" minOccurs="0" maxOccurs="unbounded" />
|
|
|
|
<xs:element name="entity" type="orm:entity" minOccurs="0" maxOccurs="unbounded" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:sequence>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:complexType name="emptyType">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
|
|
|
</xs:sequence>
|
|
|
|
<xs:anyAttribute namespace="##other"/>
|
|
|
|
</xs:complexType>
|
2009-06-01 20:14:11 +04:00
|
|
|
|
|
|
|
<xs:complexType name="cascade-type">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="cascade-all" type="orm:emptyType" minOccurs="0"/>
|
2009-07-25 20:33:29 +04:00
|
|
|
<xs:element name="cascade-persist" type="orm:emptyType" minOccurs="0"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
<xs:element name="cascade-merge" type="orm:emptyType" minOccurs="0"/>
|
2009-07-25 20:33:29 +04:00
|
|
|
<xs:element name="cascade-remove" type="orm:emptyType" minOccurs="0"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
<xs:element name="cascade-refresh" type="orm:emptyType" minOccurs="0"/>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:sequence>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:complexType>
|
2009-08-14 15:04:31 +04:00
|
|
|
|
2009-08-25 13:14:08 +04:00
|
|
|
<xs:simpleType name="lifecycle-callback-type">
|
2009-08-14 15:04:31 +04:00
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<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>
|
|
|
|
|
2009-08-25 13:14:08 +04:00
|
|
|
<xs:complexType name="lifecycle-callback">
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
|
|
|
</xs:sequence>
|
2009-08-25 13:14:08 +04:00
|
|
|
<xs:attribute name="type" type="orm:lifecycle-callback-type" use="required" />
|
2009-08-14 15:04:31 +04:00
|
|
|
<xs:attribute name="method" type="xs:NMTOKEN" use="required" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-08-14 15:04:31 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
2009-08-25 13:14:08 +04:00
|
|
|
<xs:complexType name="lifecycle-callbacks">
|
2009-08-14 15:04:31 +04:00
|
|
|
<xs:sequence>
|
2009-08-25 13:14:08 +04:00
|
|
|
<xs:element name="lifecycle-callback" type="orm:lifecycle-callback" minOccurs="1" maxOccurs="unbounded" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-08-14 15:04:31 +04:00
|
|
|
</xs:sequence>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-08-14 15:04:31 +04:00
|
|
|
</xs:complexType>
|
2009-06-01 20:14:11 +04:00
|
|
|
|
2011-03-07 00:45:09 +03:00
|
|
|
<xs:complexType name="named-query">
|
|
|
|
<xs:attribute name="name" type="xs:string" use="required" />
|
|
|
|
<xs:attribute name="query" type="xs:string" use="required" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2011-03-07 00:45:09 +03:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="named-queries">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="named-query" type="orm:named-query" minOccurs="1" maxOccurs="unbounded" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2011-03-07 00:45:09 +03:00
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
|
2009-06-01 20:14:11 +04:00
|
|
|
<xs:complexType name="entity">
|
|
|
|
<xs:sequence>
|
2009-08-21 22:13:22 +04:00
|
|
|
<xs:element name="indexes" type="orm:indexes" minOccurs="0"/>
|
|
|
|
<xs:element name="unique-constraints" type="orm:unique-constraints" minOccurs="0"/>
|
2009-08-14 15:04:31 +04:00
|
|
|
<xs:element name="discriminator-column" type="orm:discriminator-column" minOccurs="0"/>
|
2009-08-21 22:13:22 +04:00
|
|
|
<xs:element name="discriminator-map" type="orm:discriminator-map" minOccurs="0"/>
|
2009-08-14 15:04:31 +04:00
|
|
|
<xs:element name="lifecycle-callbacks" type="orm:lifecycle-callbacks" minOccurs="0" maxOccurs="1" />
|
2011-03-07 00:45:09 +03:00
|
|
|
<xs:element name="named-queries" type="orm:named-queries" minOccurs="0" maxOccurs="1" />
|
2010-09-15 23:51:44 +04:00
|
|
|
<xs:element name="id" type="orm:id" minOccurs="0" maxOccurs="1" />
|
2009-08-21 22:13:22 +04:00
|
|
|
<xs:element name="field" type="orm:field" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
<xs:element name="one-to-one" type="orm:one-to-one" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
<xs:element name="one-to-many" type="orm:one-to-many" minOccurs="0" maxOccurs="unbounded" />
|
2010-01-06 20:18:10 +03:00
|
|
|
<xs:element name="many-to-one" type="orm:many-to-one" minOccurs="0" maxOccurs="unbounded" />
|
2009-08-21 22:13:22 +04:00
|
|
|
<xs:element name="many-to-many" type="orm:many-to-many" minOccurs="0" maxOccurs="unbounded" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:sequence>
|
|
|
|
<xs:attribute name="name" type="xs:string" use="required" />
|
|
|
|
<xs:attribute name="table" type="xs:NMTOKEN" />
|
|
|
|
<xs:attribute name="schema" type="xs:NMTOKEN" />
|
2010-12-22 00:04:13 +03:00
|
|
|
<xs:attribute name="repository-class" type="xs:string"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
<xs:attribute name="inheritance-type" type="orm:inheritance-type"/>
|
2010-08-08 13:32:12 +04:00
|
|
|
<xs:attribute name="change-tracking-policy" type="orm:change-tracking-policy" />
|
2011-03-29 22:17:44 +04:00
|
|
|
<xs:attribute name="read-only" type="xs:boolean" default="false" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
2009-08-14 15:04:31 +04:00
|
|
|
<xs:complexType name="mapped-superclass" >
|
|
|
|
<xs:complexContent>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:extension base="orm:entity">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
|
|
|
</xs:sequence>
|
|
|
|
<xs:anyAttribute namespace="##other"/>
|
|
|
|
</xs:extension>
|
2009-08-14 15:04:31 +04:00
|
|
|
</xs:complexContent>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:complexType>
|
2010-08-08 13:32:12 +04:00
|
|
|
|
|
|
|
<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>
|
2009-06-01 20:14:11 +04:00
|
|
|
|
|
|
|
<xs:simpleType name="inheritance-type">
|
2009-06-07 21:20:37 +04:00
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:enumeration value="SINGLE_TABLE"/>
|
|
|
|
<xs:enumeration value="JOINED"/>
|
|
|
|
<xs:enumeration value="TABLE_PER_CLASS"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
2009-06-07 21:20:37 +04:00
|
|
|
|
|
|
|
<xs:simpleType name="generator-strategy">
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:enumeration value="TABLE"/>
|
|
|
|
<xs:enumeration value="SEQUENCE"/>
|
|
|
|
<xs:enumeration value="IDENTITY"/>
|
|
|
|
<xs:enumeration value="AUTO"/>
|
|
|
|
</xs:restriction>
|
2009-08-14 15:04:31 +04:00
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:simpleType name="fk-action">
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:enumeration value="CASCADE"/>
|
|
|
|
<xs:enumeration value="RESTRICT"/>
|
|
|
|
<xs:enumeration value="SET_NULL"/>
|
|
|
|
</xs:restriction>
|
2009-12-19 17:06:22 +03:00
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:simpleType name="fetch-type">
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:enumeration value="EAGER"/>
|
|
|
|
<xs:enumeration value="LAZY"/>
|
2010-12-29 14:34:09 +03:00
|
|
|
<xs:enumeration value="EXTRALAZY"/>
|
2009-12-19 17:06:22 +03:00
|
|
|
</xs:restriction>
|
2010-02-09 20:13:49 +03:00
|
|
|
</xs:simpleType>
|
2009-06-01 20:14:11 +04:00
|
|
|
|
|
|
|
<xs:complexType name="field">
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
|
|
|
</xs:sequence>
|
2009-06-01 20:14:11 +04:00
|
|
|
<xs:attribute name="name" type="xs:NMTOKEN" use="required" />
|
2010-02-09 20:13:49 +03:00
|
|
|
<xs:attribute name="type" type="xs:NMTOKEN" default="string" />
|
2009-06-01 20:14:11 +04:00
|
|
|
<xs:attribute name="column" type="xs:NMTOKEN" />
|
|
|
|
<xs:attribute name="length" type="xs:NMTOKEN" />
|
2009-08-14 15:04:31 +04:00
|
|
|
<xs:attribute name="unique" type="xs:boolean" default="false" />
|
|
|
|
<xs:attribute name="nullable" type="xs:boolean" default="false" />
|
|
|
|
<xs:attribute name="version" type="xs:boolean" />
|
2010-02-02 00:48:27 +03:00
|
|
|
<xs:attribute name="column-definition" type="xs:string" />
|
2010-06-13 19:21:14 +04:00
|
|
|
<xs:attribute name="precision" type="xs:integer" use="optional" />
|
|
|
|
<xs:attribute name="scale" type="xs:integer" use="optional" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-08-14 15:04:31 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="discriminator-column">
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
|
|
|
</xs:sequence>
|
2009-08-14 15:04:31 +04:00
|
|
|
<xs:attribute name="name" type="xs:NMTOKEN" use="required" />
|
|
|
|
<xs:attribute name="type" type="xs:NMTOKEN" use="required" />
|
|
|
|
<xs:attribute name="field-name" type="xs:NMTOKEN" />
|
|
|
|
<xs:attribute name="length" type="xs:NMTOKEN" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:complexType>
|
2009-08-21 22:13:22 +04:00
|
|
|
|
|
|
|
<xs:complexType name="unique-constraint">
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
|
|
|
</xs:sequence>
|
2009-08-21 22:13:22 +04:00
|
|
|
<xs:attribute name="name" type="xs:NMTOKEN" use="optional"/>
|
2010-06-13 19:21:14 +04:00
|
|
|
<xs:attribute name="columns" type="xs:string" use="required"/>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-08-21 22:13:22 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="unique-constraints">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="unique-constraint" type="orm:unique-constraint" minOccurs="1" maxOccurs="unbounded"/>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-08-21 22:13:22 +04:00
|
|
|
</xs:sequence>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-08-21 22:13:22 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="index">
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
|
|
|
</xs:sequence>
|
2009-08-21 22:13:22 +04:00
|
|
|
<xs:attribute name="name" type="xs:NMTOKEN" use="optional"/>
|
2011-06-14 13:36:49 +04:00
|
|
|
<xs:attribute name="columns" type="xs:string" use="required"/>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-08-21 22:13:22 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="indexes">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="index" type="orm:index" minOccurs="1" maxOccurs="unbounded"/>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-08-21 22:13:22 +04:00
|
|
|
</xs:sequence>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-08-21 22:13:22 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="discriminator-mapping">
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
|
|
|
</xs:sequence>
|
2009-08-21 22:13:22 +04:00
|
|
|
<xs:attribute name="value" type="xs:NMTOKEN" use="required"/>
|
|
|
|
<xs:attribute name="class" type="xs:NMTOKEN" use="required"/>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-08-21 22:13:22 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="discriminator-map">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="discriminator-mapping" type="orm:discriminator-mapping" minOccurs="1" maxOccurs="unbounded"/>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-08-21 22:13:22 +04:00
|
|
|
</xs:sequence>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-08-21 22:13:22 +04:00
|
|
|
</xs:complexType>
|
2009-06-01 20:14:11 +04:00
|
|
|
|
|
|
|
<xs:complexType name="generator">
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
|
|
|
</xs:sequence>
|
2010-02-09 20:13:49 +03:00
|
|
|
<xs:attribute name="strategy" type="orm:generator-strategy" use="optional" default="AUTO" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="id">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="generator" type="orm:generator" minOccurs="0" />
|
2010-05-01 05:33:13 +04:00
|
|
|
<xs:element name="sequence-generator" type="orm:sequence-generator" minOccurs="0" maxOccurs="1" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:sequence>
|
|
|
|
<xs:attribute name="name" type="xs:NMTOKEN" use="required" />
|
2011-01-01 23:47:04 +03:00
|
|
|
<xs:attribute name="type" type="xs:NMTOKEN" />
|
2009-06-01 20:14:11 +04:00
|
|
|
<xs:attribute name="column" type="xs:NMTOKEN" />
|
2011-01-01 23:47:04 +03:00
|
|
|
<xs:attribute name="association-key" type="xs:boolean" default="false" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
2010-05-01 05:33:13 +04:00
|
|
|
<xs:complexType name="sequence-generator">
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
|
|
|
</xs:sequence>
|
2010-05-01 05:33:13 +04:00
|
|
|
<xs:attribute name="sequence-name" type="xs:NMTOKEN" use="required" />
|
|
|
|
<xs:attribute name="allocation-size" type="xs:integer" use="optional" default="1" />
|
|
|
|
<xs:attribute name="initial-value" type="xs:integer" use="optional" default="1" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2010-05-01 05:33:13 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
2009-06-01 20:14:11 +04:00
|
|
|
<xs:complexType name="inverse-join-columns">
|
|
|
|
<xs:sequence>
|
2009-08-21 22:13:22 +04:00
|
|
|
<xs:element name="join-column" type="orm:join-column" minOccurs="1" maxOccurs="unbounded" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:sequence>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="join-column">
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
|
|
|
</xs:sequence>
|
2009-06-01 20:14:11 +04:00
|
|
|
<xs:attribute name="name" type="xs:NMTOKEN" use="required" />
|
2010-02-09 20:13:49 +03:00
|
|
|
<xs:attribute name="referenced-column-name" type="xs:NMTOKEN" use="optional" default="id" />
|
2009-08-14 15:04:31 +04:00
|
|
|
<xs:attribute name="unique" type="xs:boolean" default="false" />
|
|
|
|
<xs:attribute name="nullable" type="xs:boolean" default="true" />
|
|
|
|
<xs:attribute name="on-delete" type="orm:fk-action" />
|
|
|
|
<xs:attribute name="on-update" type="orm:fk-action" />
|
2010-02-02 00:48:27 +03:00
|
|
|
<xs:attribute name="column-definition" type="xs:string" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="join-columns">
|
|
|
|
<xs:sequence>
|
2009-08-21 22:13:22 +04:00
|
|
|
<xs:element name="join-column" type="orm:join-column" minOccurs="1" maxOccurs="unbounded" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:sequence>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="join-table">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="join-columns" type="orm:join-columns" />
|
|
|
|
<xs:element name="inverse-join-columns" type="orm:join-columns" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:sequence>
|
|
|
|
<xs:attribute name="name" type="xs:NMTOKEN" use="required" />
|
2009-08-14 15:04:31 +04:00
|
|
|
<xs:attribute name="schema" type="xs:NMTOKEN" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
2010-02-27 00:40:44 +03:00
|
|
|
<xs:complexType name="order-by">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="order-by-field" type="orm:order-by-field" minOccurs="1" maxOccurs="unbounded" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2010-02-27 00:40:44 +03:00
|
|
|
</xs:sequence>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2010-02-27 00:40:44 +03:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="order-by-field">
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
|
|
|
</xs:sequence>
|
|
|
|
<xs:attribute name="name" type="xs:NMTOKEN" use="required" />
|
|
|
|
<xs:attribute name="direction" type="orm:order-by-direction" default="ASC" />
|
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2010-02-27 00:40:44 +03:00
|
|
|
</xs:complexType>
|
|
|
|
|
2010-02-27 01:02:31 +03:00
|
|
|
<xs:simpleType name="order-by-direction">
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:enumeration value="ASC"/>
|
|
|
|
<xs:enumeration value="DESC"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2009-06-01 20:14:11 +04:00
|
|
|
<xs:complexType name="many-to-many">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
|
2010-02-09 20:13:49 +03:00
|
|
|
<xs:element name="join-table" type="orm:join-table" minOccurs="0" />
|
2010-02-27 00:40:44 +03:00
|
|
|
<xs:element name="order-by" type="orm:order-by" minOccurs="0" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:sequence>
|
2010-12-22 00:04:13 +03:00
|
|
|
<xs:attribute name="target-entity" type="xs:string" use="required" />
|
2009-06-01 20:14:11 +04:00
|
|
|
<xs:attribute name="field" type="xs:NMTOKEN" use="required" />
|
2010-01-06 20:18:10 +03:00
|
|
|
<xs:attribute name="mapped-by" type="xs:NMTOKEN" />
|
2011-02-05 13:43:50 +03:00
|
|
|
<xs:attribute name="index-by" type="xs:NMTOKEN" />
|
2010-04-10 02:00:36 +04:00
|
|
|
<xs:attribute name="inversed-by" type="xs:NMTOKEN" />
|
2009-12-19 17:06:22 +03:00
|
|
|
<xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="one-to-many">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
|
2010-02-27 00:40:44 +03:00
|
|
|
<xs:element name="order-by" type="orm:order-by" minOccurs="0" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:sequence>
|
2010-12-22 00:04:13 +03:00
|
|
|
<xs:attribute name="target-entity" type="xs:string" use="required" />
|
2010-04-10 02:00:36 +04:00
|
|
|
<xs:attribute name="mapped-by" type="xs:NMTOKEN" use="required" />
|
2009-06-01 20:14:11 +04:00
|
|
|
<xs:attribute name="field" type="xs:NMTOKEN" use="required" />
|
2011-02-05 13:43:50 +03:00
|
|
|
<xs:attribute name="index-by" type="xs:NMTOKEN" />
|
2009-08-14 15:04:31 +04:00
|
|
|
<xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
|
2009-12-19 17:06:22 +03:00
|
|
|
<xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-12-19 17:06:22 +03:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="many-to-one">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
|
2010-02-09 20:13:49 +03:00
|
|
|
<xs:choice minOccurs="0" maxOccurs="1">
|
2009-12-19 17:06:22 +03:00
|
|
|
<xs:element name="join-column" type="orm:join-column"/>
|
|
|
|
<xs:element name="join-columns" type="orm:join-columns"/>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-12-19 17:06:22 +03:00
|
|
|
</xs:choice>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-12-19 17:06:22 +03:00
|
|
|
</xs:sequence>
|
2010-12-22 00:04:13 +03:00
|
|
|
<xs:attribute name="target-entity" type="xs:string" use="required" />
|
2009-12-19 17:06:22 +03:00
|
|
|
<xs:attribute name="field" type="xs:NMTOKEN" use="required" />
|
|
|
|
<xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
|
|
|
|
<xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
|
2010-04-10 02:00:36 +04:00
|
|
|
<xs:attribute name="inversed-by" type="xs:NMTOKEN" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="one-to-one">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
|
|
|
|
<xs:choice minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:element name="join-column" type="orm:join-column"/>
|
|
|
|
<xs:element name="join-columns" type="orm:join-columns"/>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:choice>
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:sequence>
|
2010-04-10 02:00:36 +04:00
|
|
|
<xs:attribute name="field" type="xs:NMTOKEN" use="required" />
|
2010-12-22 00:04:13 +03:00
|
|
|
<xs:attribute name="target-entity" type="xs:string" use="required" />
|
2009-08-21 22:13:22 +04:00
|
|
|
<xs:attribute name="mapped-by" type="xs:NMTOKEN" />
|
2010-04-10 02:00:36 +04:00
|
|
|
<xs:attribute name="inversed-by" type="xs:NMTOKEN" />
|
2009-08-14 15:04:31 +04:00
|
|
|
<xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
|
2009-12-19 17:06:22 +03:00
|
|
|
<xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
|
2011-06-03 11:12:32 +04:00
|
|
|
<xs:anyAttribute namespace="##other"/>
|
2009-06-01 20:14:11 +04:00
|
|
|
</xs:complexType>
|
|
|
|
|
2010-12-22 00:04:13 +03:00
|
|
|
</xs:schema>
|