这里做了比较清晰的解释: http://mybatis.github.io/mybatis-3/java-api.html SqlSession As mentioned above, the SqlSession instance is the most powerful class in MyBatis. It is where you'll find all of the methods to execute statements, commit or rollback transacti
public class TestBeanChild { int b = 1; public TestBean createDefault() { return new TestBeanDefault(); } } class TestBeanDefault extends TestBean{ int b=2; } 包外面不能访问类TestBeanDefault public abstract class TestBean { private int a =0; public void doBe
一,简介 在iBATIS中isNull用于判断参数是否为Null,isNotNull相反isEmpty判断参数是否为Null或者空,满足其中一个条件则其trueisNotEmpty相反,当参数既不为Null也不为空是其为true 判断之后做相对应的表达式操作 二,区别 <update id="updateRole" parameterClass="com.mmblue.model.Role"> <![CDATA[ UPDATE role SET g
一.所有的指定id的模型类的同一个字段进行批量更新 实际上: update t set fileld='xx' where id in (id1,id2,...,idn) 代码: <update id="updateBatch" parameterType="Map"> update t_name set name = #{name,jdbcType=VARCHAR} where autoid in ( <foreach collection=&q