Ibatis多表关联的例子 .
来源:互联网 发布:淘宝网口罩图片大全 编辑:程序博客网 时间:2024/06/08 10:30
多表关联的例子
<sqlMap namespace="ProductCategory">
<resultMap id=”categoryResult” class=”com.ibatis.example.Category” groupBy=”id”>
<result property=”id” column=”CAT_ID”/>
<result property=”description” column=”CAT_DESCRIPTION”/>
<result property=”productList” resultMap=”ProductCategory.productResult”/>
</resultMap>
<resultMap id=”productResult” class=”com.ibatis.example.Product”>
<result property=”id” column=”PRD_ID”/>
<result property=”description” column=”PRD_DESCRIPTION”/>
</resultMap>
<select id=”getCategory” parameterClass=”int” resultMap=”categoryResult”>
select C.CAT_ID, C.CAT_DESCRIPTION, P.PRD_ID, P.PRD_DESCRIPTION
from CATEGORY C
left outer join PRODUCT P
on C.CAT_ID = P.PRD_CAT_ID
where CAT_ID = #value#
</select>
</sqlMap>
- Ibatis多表关联的例子 .
- Ibatis的一对多关联
- ibatis多表关联查询
- ibatis 一对一多表关联查询的问题
- ibatis多对一表关联映射的解决过程
- Ibatis的多对多关联
- Mybatis(ibatis)的一对多关联配置
- [Java][ibatis]ibatis批量处理+多表关联查询
- ibatis批量处理+多表关联查询
- ibatis 一对多关联
- ibatis的入门例子
- ibatis的缓存例子
- Ibatis的关联查询和关联结果
- ibatis连表查询出关联的所有数据
- 多对多关联的例子
- 多视图关联选择的例子
- sql关联表选择的一个例子
- 理解关联的例子
- UvaOJ 10361 - Automatic Poetry
- 随机图形
- 音视频相关协议
- Linq——Count、Sum、Min、Max、Average
- 实现能动的图形
- Ibatis多表关联的例子 .
- C#封装RichTextBox实现鼠标停留,显示当前单词文本的tooltip提示
- POJ 3469 第一次AC总结(Dinic+多路增广)
- 分布式经典论文
- Linq to Entities in Ado.net EF的事务
- 第八周任务三实现分数类中的运算符重载,在分数类中可以完成分数的加减乘除(运算后再化简)、求反、比较(6种关系)的运算。
- Dictionary到List转换中的性能问题
- 【转]ubuntu 环境变量设置方法
- An entity object cannot be referenced by multiple instances of IEntityChangeTracker.