Ibatis自我关联
来源:互联网 发布:电脑小白编程软件 编辑:程序博客网 时间:2024/05/29 12:20
在menu.xml中配置
<resultMap class="menu" id="MenuResult"> <result property="mId" column="MID"/> <result property="mName" column="MNAME"/> <result property="mSuperior_name" column="MSUPERIOR_NAME"/> <result property="mType" column="MTYPE"/> <result property="mPath" column="MPATH"/> <result property="mDescription" column="MDESCRIPTION"/> <result property="children" column="mName" select="getChildren"/> </resultMap> <select id="getChildren" resultClass="menu" parameterClass="String" resultMap="MenuResult"> select MID,MNAME,MSUPERIOR_NAME,MTYPE,MPATH,MSTATUS,MDESCRIPTION from MENU where mSuperior_name=#mName# </select>
项目截图
0 0
- Ibatis自我关联
- ibatis 一对多关联
- iBATIS关联关系
- sqlserver 自我关联 更新问题
- SQL中单表的自我关联
- Ibatis的关联查询和关联结果
- Ibatis的一对多关联
- Ibatis left join关联查询
- ibatis多表关联查询
- 关联函数的位置 自我总结
- [Java][ibatis]ibatis批量处理+多表关联查询
- ibatis 关联关系与缓存的配置
- ibatis批量处理+多表关联查询
- iBatis/MyBatis 主子表关联查询
- Ibatis的多对多关联
- ibatis学习笔记(三) 数据关联
- Ibatis多表关联的例子 .
- ibatis实战之一对多关联
- Linux那些事儿之我是Sysfs(11)sysfs 创建普通文件
- android 流量统计
- 【CF 675D】 Tree Construction(离线二分+左右指针)
- Scala 课堂!
- [转]Innodb index
- Ibatis自我关联
- 形、音、义的纠葛——《语文常谈》读书笔记(3)
- 微信支付集锦
- 深入JVM内核
- scanf 用法及陷阱(转)
- Codeforces 675D Tree Construction【构造,BST】
- xcodebuild命令打包失败解决方法
- fiddler进行断点调试
- android Event Bus解耦android模块