https://www.cnblogs.com/azhqiang/p/6492195.html

 

 <resultMap type="XX" />  

        <id property="name" column="colname"/>  

        <collection property="list" javaType="ArrayList" column="{id = colid,name=colname}" select="getSubXXX"/>
 </resultMap> 

前为别名后为主查询getXXX语句中字段

<select >  
        SELECT colid,colname FROM table1

 </select> 

 <select > #{id} AND name = #{name}
  </select>

Mybatis ResultMap Collection 复合主键
[Mybatis ResultMap Collection fùhé zhǔjiàn]
Mybatis ResultMap Collection 复合主键
    





            
Mybatis ResultMap Collection 复合主键
Mybatis ResultMap Collection composite primary key

相关文章:

  • 2020-10-21
  • 2021-08-08
猜你喜欢
  • 2021-08-25
  • 2021-06-15
  • 2021-06-11
  • 2021-10-05
  • 2022-01-25
  • 2022-12-23
相关资源
相似解决方案