mybatis中 使用 动态SQL:if / where /when/otherwise/trim 等条件配合使用,实现强大的动态SQL
定义一个结果集
<resultMap type="Employee" id="empRes">
<id property="...
10年前 (2016-03-16) 1791℃ 0评论
2喜欢
在mybatis mapper配置文件中使用 association 配置一对一关联,collection 配置一对多关联
创建测试的实体:
Employee ( id,username,salary,deptID(部门id 外键) ) ---对应 EmployeeMappe...
10年前 (2016-03-16) 1857℃ 0评论
4喜欢
MyBatis 本是apache的一个开源项目iBatis, 2010年这个项目由apache software foundation 迁移到了google code,并且改名为MyBatis 。2013年11月迁移到Github。
iBATIS一词来源于“internet”...
10年前 (2016-03-16) 1622℃ 0评论
3喜欢