Skip to content

Commit 7707481

Browse files
authored
Merge pull request #9 from kazuki43zoo/update-xsd
Update mybatis-spring.xsd and mybatis-spring-1.2.xsd
2 parents cdf7f3f + 22f2ea3 commit 7707481

File tree

2 files changed

+36
-14
lines changed

2 files changed

+36
-14
lines changed

schema/mybatis-spring-1.2.xsd

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
Copyright 2010-2013 the original author or authors.
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-2018 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
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
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.
1017
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.
1618
-->
1719
<xsd:schema xmlns="http://mybatis.org/schema/mybatis-spring"
1820
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
@@ -45,7 +47,7 @@
4547
<xsd:annotation>
4648
<xsd:documentation>
4749
<![CDATA[
48-
The scanner will register all interfaces in the base package that also have the specified annotation.
50+
The scanner will register all interfaces in the base package that also have the specified interface class as a parent.
4951
]]>
5052
</xsd:documentation>
5153
<xsd:appinfo>
@@ -59,7 +61,7 @@
5961
<xsd:annotation>
6062
<xsd:documentation>
6163
<![CDATA[
62-
The scanner will register all interfaces in the base package that also have the specified interface class as a parent.
64+
The scanner will register all interfaces in the base package that also have the specified annotation.
6365
]]>
6466
</xsd:documentation>
6567
<xsd:appinfo>
@@ -76,7 +78,12 @@
7678
<![CDATA[
7779
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.
7880
]]>
79-
</xsd:documentation>
81+
</xsd:documentation>
82+
<xsd:appinfo>
83+
<tool:annotation kind="ref">
84+
<tool:expected-type type="org.apache.ibatis.session.SqlSessionFactory"/>
85+
</tool:annotation>
86+
</xsd:appinfo>
8087
</xsd:annotation>
8188
</xsd:attribute>
8289
<xsd:attribute name="template-ref" type="xsd:string">
@@ -86,6 +93,11 @@
8693
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.
8794
]]>
8895
</xsd:documentation>
96+
<xsd:appinfo>
97+
<tool:annotation kind="ref">
98+
<tool:expected-type type="org.mybatis.spring.SqlSessionTemplate"/>
99+
</tool:annotation>
100+
</xsd:appinfo>
89101
</xsd:annotation>
90102
</xsd:attribute>
91103
<xsd:attribute name="name-generator" type="xsd:string">

schema/mybatis-spring.xsd

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,12 @@
7878
<![CDATA[
7979
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.
8080
]]>
81-
</xsd:documentation>
81+
</xsd:documentation>
82+
<xsd:appinfo>
83+
<tool:annotation kind="ref">
84+
<tool:expected-type type="org.apache.ibatis.session.SqlSessionFactory"/>
85+
</tool:annotation>
86+
</xsd:appinfo>
8287
</xsd:annotation>
8388
</xsd:attribute>
8489
<xsd:attribute name="template-ref" type="xsd:string">
@@ -88,6 +93,11 @@
8893
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.
8994
]]>
9095
</xsd:documentation>
96+
<xsd:appinfo>
97+
<tool:annotation kind="ref">
98+
<tool:expected-type type="org.mybatis.spring.SqlSessionTemplate"/>
99+
</tool:annotation>
100+
</xsd:appinfo>
91101
</xsd:annotation>
92102
</xsd:attribute>
93103
<xsd:attribute name="name-generator" type="xsd:string">

0 commit comments

Comments
 (0)