Skip to content

Commit cdf7f3f

Browse files
authored
Merge pull request #8 from kazuki43zoo/update-xsd-for-mybatis-spring
Update mybatis-spring.xsd
2 parents 13e9ef9 + adcb91a commit cdf7f3f

File tree

1 file changed

+115
-103
lines changed

1 file changed

+115
-103
lines changed

schema/mybatis-spring.xsd

Lines changed: 115 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,125 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
Copyright 2010-2013 The MyBatis Team
43
5-
Licensed under the Apache License, Version 2.0 (the "License");
6-
you may not use this file except in compliance with the License.
7-
You may obtain a copy of the License at
4+
Copyright 2010-2019 the original author or authors.
85
9-
http://www.apache.org/licenses/LICENSE-2.0
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
109
11-
Unless required by applicable law or agreed to in writing, software
12-
distributed under the License is distributed on an "AS IS" BASIS,
13-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
See the License for the specific language governing permissions and
15-
limitations under the License.
16-
-->
10+
http://www.apache.org/licenses/LICENSE-2.0
1711
18-
<!--
19-
version: $Id: mybatis-spring-1.2.xsd 5669 2013-01-30 06:04:13Z eduardo.macarron $
20-
-->
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
2117
18+
-->
2219
<xsd:schema xmlns="http://mybatis.org/schema/mybatis-spring"
23-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
24-
xmlns:beans="http://www.springframework.org/schema/beans"
25-
xmlns:tool="http://www.springframework.org/schema/tool"
26-
targetNamespace="http://mybatis.org/schema/mybatis-spring"
27-
elementFormDefault="qualified" attributeFormDefault="unqualified">
20+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
21+
xmlns:beans="http://www.springframework.org/schema/beans"
22+
xmlns:tool="http://www.springframework.org/schema/tool"
23+
targetNamespace="http://mybatis.org/schema/mybatis-spring"
24+
elementFormDefault="qualified" attributeFormDefault="unqualified">
2825

29-
<xsd:element name="scan">
30-
<xsd:annotation>
31-
<xsd:documentation>
32-
<![CDATA[
33-
Searches recursively starting from a base package for interfaces and registers them as MapperFactoryBeans.
34-
Note that only interfaces with at least one method will be registered; concrete classes will be ignored.
35-
]]>
36-
</xsd:documentation>
37-
</xsd:annotation>
38-
<xsd:complexType>
39-
<xsd:attribute name="base-package" type="xsd:string"
40-
use="required">
41-
<xsd:annotation>
42-
<xsd:documentation>
43-
<![CDATA[
44-
The comma-separated list of packages to scan for annotated components.
45-
]]>
46-
</xsd:documentation>
47-
</xsd:annotation>
48-
</xsd:attribute>
49-
<xsd:attribute name="marker-interface" type="xsd:string">
50-
<xsd:annotation>
51-
<xsd:documentation>
52-
<![CDATA[
53-
The scanner will register all interfaces in the base package that also have the specified annotation.
54-
]]>
55-
</xsd:documentation>
56-
<xsd:appinfo>
57-
<tool:annotation>
58-
<tool:expected-type type="java.lang.Class" />
59-
</tool:annotation>
60-
</xsd:appinfo>
61-
</xsd:annotation>
62-
</xsd:attribute>
63-
<xsd:attribute name="annotation" type="xsd:string">
64-
<xsd:annotation>
65-
<xsd:documentation>
66-
<![CDATA[
67-
The scanner will register all interfaces in the base package that also have the specified interface class as a parent.
68-
]]>
69-
</xsd:documentation>
70-
<xsd:appinfo>
71-
<tool:annotation>
72-
<tool:expected-type type="java.lang.Class" />
73-
<tool:assignable-to type="java.lang.annotation.Annotation" />
74-
</tool:annotation>
75-
</xsd:appinfo>
76-
</xsd:annotation>
77-
</xsd:attribute>
78-
<xsd:attribute name="factory-ref" type="xsd:string">
79-
<xsd:annotation>
80-
<xsd:documentation>
81-
<![CDATA[
82-
Specifies which SqlSessionFactory to use in the case that there is more than one in the spring context. Usually this is only needed when you have more than one datasource.
83-
]]>
84-
</xsd:documentation>
85-
</xsd:annotation>
86-
</xsd:attribute>
87-
<xsd:attribute name="template-ref" type="xsd:string">
88-
<xsd:annotation>
89-
<xsd:documentation>
90-
<![CDATA[
91-
Specifies which SqlSessionTemplate to use in the case that there is more than one in the spring context. Usually this is only needed when you have more than one datasource.
92-
]]>
93-
</xsd:documentation>
94-
</xsd:annotation>
95-
</xsd:attribute>
96-
<xsd:attribute name="name-generator" type="xsd:string">
97-
<xsd:annotation>
98-
<xsd:documentation>
99-
<![CDATA[
100-
The fully-qualified class name of the BeanNameGenerator to be used for naming detected components.
101-
]]>
102-
</xsd:documentation>
103-
<xsd:appinfo>
104-
<tool:annotation>
105-
<tool:expected-type type="java.lang.Class" />
106-
<tool:assignable-to type="org.springframework.beans.factory.support.BeanNameGenerator" />
107-
</tool:annotation>
108-
</xsd:appinfo>
109-
</xsd:annotation>
110-
</xsd:attribute>
111-
</xsd:complexType>
112-
</xsd:element>
26+
<xsd:element name="scan">
27+
<xsd:annotation>
28+
<xsd:documentation>
29+
<![CDATA[
30+
Searches recursively starting from a base package for interfaces and registers them as MapperFactoryBeans.
31+
Note that only interfaces with at least one method will be registered; concrete classes will be ignored.
32+
]]>
33+
</xsd:documentation>
34+
</xsd:annotation>
35+
<xsd:complexType>
36+
<xsd:attribute name="base-package" type="xsd:string"
37+
use="required">
38+
<xsd:annotation>
39+
<xsd:documentation>
40+
<![CDATA[
41+
The comma-separated list of packages to scan for annotated components.
42+
]]>
43+
</xsd:documentation>
44+
</xsd:annotation>
45+
</xsd:attribute>
46+
<xsd:attribute name="marker-interface" type="xsd:string">
47+
<xsd:annotation>
48+
<xsd:documentation>
49+
<![CDATA[
50+
The scanner will register all interfaces in the base package that also have the specified interface class as a parent.
51+
]]>
52+
</xsd:documentation>
53+
<xsd:appinfo>
54+
<tool:annotation>
55+
<tool:expected-type type="java.lang.Class" />
56+
</tool:annotation>
57+
</xsd:appinfo>
58+
</xsd:annotation>
59+
</xsd:attribute>
60+
<xsd:attribute name="annotation" type="xsd:string">
61+
<xsd:annotation>
62+
<xsd:documentation>
63+
<![CDATA[
64+
The scanner will register all interfaces in the base package that also have the specified annotation.
65+
]]>
66+
</xsd:documentation>
67+
<xsd:appinfo>
68+
<tool:annotation>
69+
<tool:expected-type type="java.lang.Class" />
70+
<tool:assignable-to type="java.lang.annotation.Annotation" />
71+
</tool:annotation>
72+
</xsd:appinfo>
73+
</xsd:annotation>
74+
</xsd:attribute>
75+
<xsd:attribute name="factory-ref" type="xsd:string">
76+
<xsd:annotation>
77+
<xsd:documentation>
78+
<![CDATA[
79+
Specifies which SqlSessionFactory to use in the case that there is more than one in the spring context. Usually this is only needed when you have more than one datasource.
80+
]]>
81+
</xsd:documentation>
82+
</xsd:annotation>
83+
</xsd:attribute>
84+
<xsd:attribute name="template-ref" type="xsd:string">
85+
<xsd:annotation>
86+
<xsd:documentation>
87+
<![CDATA[
88+
Specifies which SqlSessionTemplate to use in the case that there is more than one in the spring context. Usually this is only needed when you have more than one datasource.
89+
]]>
90+
</xsd:documentation>
91+
</xsd:annotation>
92+
</xsd:attribute>
93+
<xsd:attribute name="name-generator" type="xsd:string">
94+
<xsd:annotation>
95+
<xsd:documentation>
96+
<![CDATA[
97+
The fully-qualified class name of the BeanNameGenerator to be used for naming detected components.
98+
]]>
99+
</xsd:documentation>
100+
<xsd:appinfo>
101+
<tool:annotation>
102+
<tool:expected-type type="java.lang.Class" />
103+
<tool:assignable-to type="org.springframework.beans.factory.support.BeanNameGenerator" />
104+
</tool:annotation>
105+
</xsd:appinfo>
106+
</xsd:annotation>
107+
</xsd:attribute>
108+
<xsd:attribute name="mapper-factory-bean-class" type="xsd:string">
109+
<xsd:annotation>
110+
<xsd:documentation>
111+
<![CDATA[
112+
The fully-qualified class name of the MapperFactoryBean to return a mybatis proxy as spring bean. (Since 2.0.1)
113+
]]>
114+
</xsd:documentation>
115+
<xsd:appinfo>
116+
<tool:annotation>
117+
<tool:expected-type type="java.lang.Class" />
118+
<tool:assignable-to type="org.mybatis.spring.mapper.MapperFactoryBean" />
119+
</tool:annotation>
120+
</xsd:appinfo>
121+
</xsd:annotation>
122+
</xsd:attribute>
123+
</xsd:complexType>
124+
</xsd:element>
113125
</xsd:schema>

0 commit comments

Comments
 (0)