resultMap多个
时间: 2023-10-30 18:07:21 浏览: 107
引用和提供了关于MyBatis的多表操作中使用ResultMap封装结果集的详细信息。在MyBatis中,可以通过ResultMap将多个查询结果映射到实体类中。
在一对一查询中,可以通过创建相应的实体类,并在Mapper接口和Mapper.xml文件中进行配置,来封装一对一查询的结果集。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [mybatis多表操作 ResultMap](https://blog.csdn.net/ifspirt/article/details/122822011)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [mybatis实现单表多表resultMap方式](https://blog.csdn.net/qq_35023382/article/details/97482523)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文