Merge pull request #6389 from mikeSimonson/xml-dtd-improvements
XSD definition improvements
This commit is contained in:
commit
33cee11e6f
@ -167,7 +167,7 @@
|
|||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
|
|
||||||
<xs:complexType name="entity">
|
<xs:complexType name="entity">
|
||||||
<xs:sequence>
|
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||||
<xs:element name="cache" type="orm:cache" minOccurs="0" maxOccurs="1"/>
|
<xs:element name="cache" type="orm:cache" minOccurs="0" maxOccurs="1"/>
|
||||||
<xs:element name="options" type="orm:options" minOccurs="0" />
|
<xs:element name="options" type="orm:options" minOccurs="0" />
|
||||||
<xs:element name="indexes" type="orm:indexes" minOccurs="0"/>
|
<xs:element name="indexes" type="orm:indexes" minOccurs="0"/>
|
||||||
@ -189,9 +189,9 @@
|
|||||||
<xs:element name="association-overrides" type="orm:association-overrides" minOccurs="0" maxOccurs="unbounded" />
|
<xs:element name="association-overrides" type="orm:association-overrides" minOccurs="0" maxOccurs="unbounded" />
|
||||||
<xs:element name="attribute-overrides" type="orm:attribute-overrides" minOccurs="0" maxOccurs="unbounded" />
|
<xs:element name="attribute-overrides" type="orm:attribute-overrides" minOccurs="0" maxOccurs="unbounded" />
|
||||||
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
||||||
</xs:sequence>
|
</xs:choice>
|
||||||
<xs:attribute name="name" type="xs:string" use="required" />
|
<xs:attribute name="name" type="xs:string" use="required" />
|
||||||
<xs:attribute name="table" type="xs:NMTOKEN" />
|
<xs:attribute name="table" type="orm:tablename" />
|
||||||
<xs:attribute name="schema" type="xs:NMTOKEN" />
|
<xs:attribute name="schema" type="xs:NMTOKEN" />
|
||||||
<xs:attribute name="repository-class" type="xs:string"/>
|
<xs:attribute name="repository-class" type="xs:string"/>
|
||||||
<xs:attribute name="inheritance-type" type="orm:inheritance-type"/>
|
<xs:attribute name="inheritance-type" type="orm:inheritance-type"/>
|
||||||
@ -200,6 +200,13 @@
|
|||||||
<xs:anyAttribute namespace="##other"/>
|
<xs:anyAttribute namespace="##other"/>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:simpleType name="tablename" id="tablename">
|
||||||
|
<xs:restriction base="xs:token">
|
||||||
|
<xs:pattern value="[a-zA-Z_u01-uff.]+" id="tablename.pattern">
|
||||||
|
</xs:pattern>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
|
||||||
<xs:complexType name="option" mixed="true">
|
<xs:complexType name="option" mixed="true">
|
||||||
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
||||||
<xs:element name="option" type="orm:option"/>
|
<xs:element name="option" type="orm:option"/>
|
||||||
@ -412,9 +419,16 @@
|
|||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
<xs:attribute name="class" type="xs:string" use="required" />
|
<xs:attribute name="class" type="orm:fqcn" use="required" />
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
|
|
||||||
|
<xs:simpleType name="fqcn" id="fqcn">
|
||||||
|
<xs:restriction base="xs:token">
|
||||||
|
<xs:pattern value="[a-zA-Z_u01-uff][a-zA-Z0-9_u01-uff]+" id="fqcn.pattern">
|
||||||
|
</xs:pattern>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
|
||||||
<xs:complexType name="inverse-join-columns">
|
<xs:complexType name="inverse-join-columns">
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element name="join-column" type="orm:join-column" minOccurs="1" maxOccurs="unbounded" />
|
<xs:element name="join-column" type="orm:join-column" minOccurs="1" maxOccurs="unbounded" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user