mybatis一对多关联查询——(九)
1.需求:
查询所有订单信息及订单下的订单明细信息。
订单信息与订单明细为一对多关系。
2. sql语句
确定主查询表:订单表
确定关联查询表:订单明细表
在一对一查询基础上添加订单明细表关联即可。
SELECT
orders.*,
USER.username,
USER.sex,
USER.address,
orderdetail.id orderdetail_id,
orderdetail.items_id,
orderdetail.items_num,
orderdetail.orders_id
FROM
orders,
USER,
orderdetail
WHERE orders.user_id = user.id AND orderdetail.orders_id=orders.id
3. 分析(只能使用resultMap)
使用resultType将上边的 查询结果映射到pojo中,订单信息的就是重复。
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXUAAABiCAIAAAAgO9QIAAAN2UlEQVR4nO1dvWojTRat5zFWZI2eYBOziRXbYkCJQzNvIGgwdGDwC0xgJhAIRvEXG2bQBAsfYpJNDRMocbIdbbIbdHd1/dxbfaurZalv38sJrJqquufUz1F1S9NS7//5r8b+328CgUCQCG0pSvxFIBD0C/EXgUBwLIi/CASCYwH2l5WEhIREcsD+8vvv3aBRajs5DVE3Qjljhj+VsL/8+vnXcGHqPDkZUTcqOWMGOJXiLwMDM3XM5IwZ4i8cwEwdMzljRid/2dxP1PUz1N3zjVLIP52hzo/DkUesX3VfLpW6vB/vZNGBT6ugRP/nly+X5zji57xk00esb3XZfAz+srmf3GQ91xTYiPaX5xullPeW+3RdlqqbbBD+0pwaSuZ6O23uJ5WS60kt5PvDRVWmLr5syg6zefnyqawfkvwBI+ao+/5wodTF5NLiDEkuVWgaunI2v7zXqudPVZbEcUhblJrqxfzmuiIJpYZIGoV6ovX41/JRjUhNb1qxwYQpjQTgymw/v1hbwjglDuj6yJDQvF0/35ir6vq5VGe6j/HG/nxTr5in68nD1zCBo46Yr+75pt4JT9d6SwCSayZfLtXk4WstJJs3WzGblxp7Goeuk1Xb3OZ+YuxSNzVG8inT7tMw9E8lWHP8/AJOqzWY+LiNAeDKjPOX7w8X+i3u189sPmR/Md+sSlHGm4/7FtSYEQFHHTFoFo0jRq0O9peb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1q3ytEIwEZw9Njw5yvmNdyIf81fe237gPtAnpXV43IjJsVkjc7dqRpAvgC0DUxJ/KYpiu5zl+Yyhv+QztdwWjrTCUAdW2JelRTkw+14KwUQYvdhw5JSp1SyP5bPPZ6S9FezTyU5vvl0qXRi2XJB8bHOHJ518UfM2CWBTmewvMb9vf57+ss9n/tDw8JcyAv4CVjBebpfN+ksqxJhghVEBTVYXPnR/CfSJF5KbtxmE10moeXkoQ6u2kQebg1sGpJTqL9vlwP1ln89meeENjfiL83diIcYEK4wKf7L2Rqd0Pub1UZhToE8ne1zzigFpQIAkUPOAv4A8nUKgObJlwJJEf9kukeczgI3P0F/0+VT8BXw5RH/Z5zPzhB/LpyiK5gxgWo5xbyLQp5U9vrmZPBzE8wsWzigFCr3u4S0DliT6Sz4buL9Y82+MrPhLURRDvD7aLpVCk5L4UFhhffrZo5oTs7fWaW0O8iSTh7cMmHfs/qJDzi869vmyugvR/JVaiDHBCqPCvL/rv3WT+WyX+qOT+hIAC7BPMDu5uZGddIcVJ2839y9wQJ4Y+cDllVwfEaP5XE8X8fAX+3TezL21If0KzaneuN2ZVggmwujFRiXHvRgJyYkQDoZfE8tObB6TPYq8axAgT5w84i/ulsGmcvT3d5Hg4S9YMFPHTA6nkM+n4eC9ZJmpYyaHU8j36+DgvWSZqWMmh1OIv8DBe8kyU8dMDqcQf4GD95Jlpo6ZHE5xLH850sOsBALBgCDPr5OQkDhWpG/5Lv4iEAhGBfEXgUBwLIi/CASCYyHdX/4PIMuLrJbhi2cAAAAASUVORK5CYII=" alt="" />
要求:
对orders映射不能出现重复记录。
在orders.java类中添加List<orderDetail> orderDetails属性。
最终会将订单信息映射到orders中,订单所对应的订单明细映射到orders中的orderDetails属性中。
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA6kAAABiCAIAAAA9egIOAAAgAElEQVR4nO1dz4skyXWOP0aWYTwD3q3qBIMRLCyCRpcZkCXZ3cUMKdCALsOCMUiLRImEHiVixPhgDNaslp4+FFu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N1syO728xu5XxTvIJ+6p3XaN/mKdNzKsV5ysGEl0Jx9aYAAAGYSURBVDyJb8oQnCmJq78Daz5DK4dpCG0g/tatGL0QpfLb4dR3nDEWxTF/oi5No9JL/pbfLIM6GbUvTvlaVe/WQbAqHCeCYkcG+rODLGUdNKuMd3FYr/mJ6br2BUA7l8TYEaPjM4wvgRoIQ7/NKk/TOJYWizxNs2oVkefO5W3hhp+FMGo+0FvoW2VESUI5DIpVMeAsMsI7zgaEh5RBeBuHoH0dAzF2xOj4DMPL/4cC/odgNgg12SMIV4WjREB4WPMeUgbhbRyC9nUMxNgRo+MzyKSSDJExgEwwyRABQZsdCA8pg/A2DkH7OgZi7IjR8RlkUkmGyBhAJphkiICgzQ6Eh5RBeBuHoH0dAzF2xOj4DDKpJENkDCATTDJEQNBmB8JDyiC8jQOgfZ89XQULFixYsGDBggULRs8A7ft5QEBAQEBAQEBAAEUE7RsQEBAQEBAQEOALgvYNCAgICAgICAjwBUH7BgQEBAQEBAQE+IKgfQMCAgICAgICAnxB0L4BAQEBAQEBAQG+IGjfgICAgICAgIAAX9DQvv8PV8GgAQEZqxoAAAAASUVORK5CYII=" alt="" />
映射成的orders记录数为两条(orders信息不重复)
每个orders中的orderDetails属性存储了该订单所对应的订单明细。
4. 在orders中添加list订单明细属性
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZgAAAFBCAIAAADFaC7lAAAdKUlEQVR4nO2dPYsrybmAK/bvuL+ig93I+SaKHGxiGo7TPWxmFJgFh61AYFh7QycCT2BoJjmgAQeXBi8nuJqk4TAbjI+ZAze5TOKkbtBf9d0f0zOqkp6HNxh1dVWXetSP3qqSWuJ//+8/BEEQSYc4ew8IgiBeGIiMIIjkA5ERBJF8COnhfz7+t68IACAqEBkAJA8iA4DkQWQAkDyIDACSB5EBQPIgMgBIHkQGAMmDyAAgeRAZACQPIgOA5EFkAJA8iAwAkgeRXQhlLkRenrEDdZEJIYTIivqMvYAr5fVE9niXbbbi/Z3rZf2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y21NeXp+ntYcrFBwAAAMsad71k/TmlJcnpVXRHeslrGhof5hVv5zx5qpjhuF4SAACsyqj7h0kj9I0xwbWKXkjyr2Q89Sp+fQk6H60Ox9hSxjh9oPrqzpO4fxgAAFiZEffTb758YGw7AADAXP4PqPcTlpJ864UAAAAASUVORK5CYII=" alt="" />
5.2 resultMap定义
<!-- 订单及订单明细的resultMap
使用extends继承,不用在中配置订单信息和用户信息的映射
-->
<resultMap type="cn.itcast.mybatis.po.Orders" id="OrdersAndOrderDetailResultMap" extends="OrdersUserResultMap">
<!-- 订单信息 -->
<!-- 用户信息 -->
<!-- 使用extends继承,不用在中配置订单信息和用户信息的映射 --> <!-- 订单明细信息
一个订单关联查询出了多条明细,要使用collection进行映射
collection:对关联查询到多条记录映射到集合对象中
property:将关联查询到多条记录映射到cn.itcast.mybatis.po.Orders哪个属性
ofType:指定映射到list集合属性中pojo的类型
-->
<collection property="orderdetails" ofType="cn.itcast.mybatis.po.Orderdetail">
<!-- id:订单明细唯 一标识
property:要将订单明细的唯 一标识 映射到cn.itcast.mybatis.po.Orderdetail的哪个属性
-->
<id column="orderdetail_id" property="id"/>
<result column="items_id" property="itemsId"/>
<result column="items_num" property="itemsNum"/>
<result column="orders_id" property="ordersId"/>
</collection> </resultMap>
6. mapper.java
public List<Orders>findOrdersDetailList () throws Exception;
7 总结
在一个里面添加多个list集合。
mybatis使用resultMap的collection对关联查询的多条记录映射到一个list集合属性中。
使用resultType实现:
将订单明细映射到orders中的orderdetails中,需要自己处理,使用双重循环遍历,去掉重复记录,将订单明细放在orderdetails中。
mybatis一对多关联查询——(九)的更多相关文章
- mybatis一对多关联查询+pagehelper->分页错误
mybatis一对多关联查询+pagehelper->分页错误. 现象: 网上其他人遇到的类似问题:https://segmentfault.com/q/1010000009692585 解决: ...
- 7.mybatis一对多关联查询
和第5节一对一查询类似,但是不同的是,一对一使用的是association,而一对多使用collection. 实例: 1个班级Class,对应1个老师Teacher,对应多个学生Student 1. ...
- MyBatis 一对多关联查询
sqlxml文件 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC ...
- Mybatis 一对多 关联查询查询
一对多 与 一对一 查询有许多相似之处. 最主要的区别是 查询结果是list,与之对应的标签为collection. 班级和学生,一个班有多个学生,而每个学生只能属于一个班. 此时班级编号作为学生表的 ...
- MyBatis从入门到放弃四:一对多关联查询
前言 上篇学习了一对一关联查询,这篇我们学习一对多关联查询.一对多关联查询关键点则依然是配置resultMap,在resultMap中配置collection属性,别忽略了ofType属性. 搭建开发 ...
- MyBatis:一对多关联查询
MyBatis从入门到放弃四:一对多关联查询 前言 上篇学习了一对一关联查询,这篇我们学习一对多关联查询.一对多关联查询关键点则依然是配置resultMap,在resultMap中配置collecti ...
- MyBatis关联查询,一对多关联查询
实体关系图,一个国家对应多个城市 一对多关联查询可用三种方式实现: 单步查询,利用collection标签为级联属性赋值: 分步查询: 利用association标签进行分步查询: 利用collect ...
- mybatis collection 一对多关联查询,单边分页的问题总结!
若想直接通过sql实现多级关联查询表结构得有2 个必不可少的字段:id ,parentId,levelId id:主键id, parentId:父id levelId:表示第几级(表本身关联查询的时候 ...
- MyBatis初级实战之六:一对多关联查询
欢迎访问我的GitHub https://github.com/zq2599/blog_demos 内容:所有原创文章分类汇总及配套源码,涉及Java.Docker.Kubernetes.DevOPS ...
随机推荐
- #Linux第四周学习总结——扒开系统调用的三层皮(上)
Linux第四周学习总结--扒开系统调用的三层皮(上) 一.用户态.内核态和中断 系统调用通过库函数. 1.用户态和内核态 区分(不同的指令执行级别): 用户态:在相应的低执行状态下,代码的掌控范围受 ...
- Linux第五周学习总结——扒开系统调用的三层皮(下
Linux第五周学习总结--扒开系统调用的三层皮(下) 作者:刘浩晨 [原创作品转载请注明出处] <Linux内核分析>MOOC课程http://mooc.study.163.com/co ...
- 团队冲刺随笔合集—Beta阶段
第一篇:http://www.cnblogs.com/Team-Blog/p/9049271.html 第二篇:https://www.cnblogs.com/Team-Blog/p/9064478. ...
- ElasticSearch 2 (32) - 信息聚合系列之范围限定
ElasticSearch 2 (32) - 信息聚合系列之范围限定 摘要 到目前为止我们看到的所有聚合的例子都省略了搜索请求,完整的请求就是聚合本身. 聚合与搜索请求同时执行,但是我们需要理解一个新 ...
- 『编程题全队』Alpha 阶段冲刺博客Day8
1.每日站立式会议 1.会议照片 2.昨天已完成的工作统计 孙志威: 1.修复了看板任务框拖拽时候位置不够精确的问题 2.向个人界面下添加了工具栏 3.个人界面下添加了任务框测试 孙慧君: 1.个人任 ...
- Alpha冲刺——day7
Alpha冲刺--day7 作业链接 Alpha冲刺随笔集 github地址 团队成员 031602636 许舒玲(队长) 031602237 吴杰婷 031602220 雷博浩 031602634 ...
- 免费SSL证书申请 2018年至简教程
Let’s Encrypt是国外一个公共的免费SSL项目,由 Linux 基金会托管,它的来头不小,由Mozilla.思科.Akamai.IdenTrust和EFF等组织发起,目的就是向网站自动签发和 ...
- 关于程序设计中INF和MOD值的设定
在取模操作中,我们常把MOD设置为1000000007 模一个大数和模一个质数可以减少冲突 而1e9+7又有一个很好的特点,就是相加不会爆int,相乘不会爆long long 在设置无穷大值时中我们常 ...
- ssm框架配置过程
1.pom.xml配置 1.1<build>标签中配置<plugins>和<resources>,即插件和资源文件 1.2 <properties>标签 ...
- spring.net框架配置和使用
spring.net框架学习笔记 spring.net框架是用于解决企业应用开发的复杂性的一种容器框架,它的一大功能IOC(控制反转),通俗解释就是通过spring.net框架的容器创建对象实体,而不 ...