mybatis的面试一对一,一对多,多对多的mapper.xml配置

时间:2018-03-28 15:10:57   收藏:0   阅读:795

使用springboot完成一对一,一对多:

https://blog.csdn.net/KingBoyWorld/article/details/78966789

传统的mapper文件中的一对一,一对多:

一对一:

主要是<resultMap>与<association>

技术分享图片

 

技术分享图片

一对多:

主要是<collection>

技术分享图片

多对多:

技术分享图片

 

原文:https://www.cnblogs.com/fengli9998/p/8663633.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!