-
mybatis association和collection标签怎么用
- <resultMap type="Bill" id="ResultBill">
- <id property="id" column="id"/>
- <result property="dh" column="dh" />
- <result property="rq" column="rq"/>
- <association property="author" javaType="Author" >
- <id property="id" column="idAutor" />
- <result property="name" column="authorName" />
- <result property="email" column="authorEmail"/>
- </association>
- <collection property="det1" javaType="ArrayList" ofType="BillDet1" >
- <id property="id" column="idDet1"/>
- <result property="dh" column="dhDet1"/>
- <result property="wlbm" column="wlbm"/>
- <result property="wlmc" column="wlmc"/>
- <result property="unit" column="unit"/>
- <result property="qty" column="qty"/>
- </collection>
- </resultMap>
- <resultMap type="com.sailod.shiro.dto.HtAuthorityMenuDTO" id="OneMenuAuthority">
- <id property="htAuthorityId" column="htAuthorityId" javaType="java.lang.Long" />
- <result property="name" column="name" javaType="java.lang.String" />
- <result property="currentUserId" column="currentUserId" javaType="java.lang.Long" />
- <collection property="htAuthorityDTO" ofType="com.sailod.shiro.dto.HtAuthorityDTO"
- select="selectAuthority" column="{htAuthorityId2 = htAuthorityId ,currentUserId2 = currentUserId}" >
- </collection>
- </resultMap>
-
相关阅读:
MSP430程序库<二>UART异步串口
MSP430程序库<五>SPI同步串行通信
MSP430程序库<四>printf和scanf函数移植
短信猫的实现(C#)类库开源啦
短信猫软件的实现(C#)<十三>超长短信
Linq to SQlite的使用
MSP430程序库<三>12864液晶程序库
查看Linux中自带的jdk ,设置JAVA_HOME
[linux] vimrc
[C#] socket demo
-
原文地址:https://www.cnblogs.com/panxuejun/p/7476058.html
Copyright © 2020-2023
润新知