I'm trying to make a batch insert with the for each method, I get an exception telling me that I cannot change the running executor type. This is very strange as I have an SQL session so defined:
<bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate">
<constructor-arg index="0" ref="sqlSessionFactory" />
<constructor-arg index="1" value="BATCH" />
</bean>
Either way I'd like to check what's the current executor type to make sure it is a BATCH one. How to do that? I see no method in SQLSession...