Skip to content

Commit 7b856e8

Browse files
authored
Merge pull request #2548 from Condor70/master
Constructor id arguments don't need to be listed first
2 parents 7ab6bde + b891b5b commit 7b856e8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/org/apache/ibatis/builder/xml/mybatis-3-mapper.dtd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ extends CDATA #IMPLIED
6161
autoMapping (true|false) #IMPLIED
6262
>
6363

64-
<!ELEMENT constructor (idArg*,arg*)>
64+
<!ELEMENT constructor ((idArg|arg)*)>
6565

6666
<!ELEMENT id EMPTY>
6767
<!ATTLIST id

src/main/java/org/apache/ibatis/builder/xml/mybatis-mapper.xsd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2009-2021 the original author or authors.
4+
Copyright 2009-2022 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -108,10 +108,10 @@
108108
</xs:element>
109109
<xs:element name="constructor">
110110
<xs:complexType>
111-
<xs:sequence>
112-
<xs:element minOccurs="0" maxOccurs="unbounded" ref="idArg"/>
113-
<xs:element minOccurs="0" maxOccurs="unbounded" ref="arg"/>
114-
</xs:sequence>
111+
<xs:choice minOccurs="1" maxOccurs="unbounded">
112+
<xs:element ref="idArg"/>
113+
<xs:element ref="arg"/>
114+
</xs:choice>
115115
</xs:complexType>
116116
</xs:element>
117117
<xs:element name="id">

0 commit comments

Comments
 (0)