mybatis 的collection標簽的使用


<collection property="releaseNotificationDtos" javaType="ArrayList" column="id" ofType="com.zyt.dto.appversion.AppReleaseNotificationDto" select="findReleaseNotifications" fetchType="lazy"/>

  javaType:結果集類型

  column:入參是上個查詢的那個字段

  ofType:結果集中的類型

  select:查詢語句

 fetchType:是否懶加載

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM