各位 springboot 使用 mybatis 连表查询时,xml 里面会使用 assocation 以及 collection 去关联实体关系吗?还是直接写每个属性对应的 result 标签
各位 springboot 使用 mybatis 连表查询时,xml 里面会使用 assocation 以及 collection 去关联实体关系吗?还是直接写每个属性对应的 result 标签
|
zm8m93Q1e5otOC69Jan 20, 2021
1
要写 resultMap https://www.cnblogs.com/canger/p/9997422.html
|
|
hodurJan 21, 2021
2
result 标签可以代替 collection 吗
|