Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd5bf6e

Browse files
committed
增加一个notEmpty参数。
1 parent ca06b6b commit bd5bf6e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/resources/applicationContext.xml

+6
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,17 @@
106106

107107
<bean class="com.github.abel533.mapperhelper.MapperHelper"
108108
depends-on="sqlSession" init-method="initMapper" scope="singleton" lazy-init="false">
109+
<!--通用Mapper接口-->
109110
<property name="mappers">
110111
<array>
111112
<value>${mapper.Mapper}</value>
112113
</array>
113114
</property>
115+
<!--必须注入sqlSession-->
114116
<property name="sqlSessions" ref="sqlSession"/>
117+
<!--对于一般的getAllIfColumnNode,是否判断!='',默认不判断-->
118+
<!--该参数会影响所有使用getAllIfColumnNode方法的地方-->
119+
<!--具体到Mapper<T>,影响3个方法:select,selectCount,delete-->
120+
<property name="notEmpty" value="true"/>
115121
</bean>
116122
</beans>

0 commit comments

Comments
 (0)