Skip to content

Commit 5f042d5

Browse files
committed
Optimize xsd for ide hints.
Using to let ide recognize the attribute is kind of , so ide can provide more information for this attribute. Affected attribute: - factory-ref - template-ref Apply gh-284 to master branch
1 parent e89441e commit 5f042d5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/main/java/org/mybatis/spring/config/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)