Skip to content

Commit 7be7a40

Browse files
authored
Merge pull request #284 from JasonMing/xsd-ide-optimize
Optimize xsd for ide hints
2 parents 2fdfe2f + 0ba3947 commit 7be7a40

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-1.2.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)