zoukankan      html  css  js  c++  java
  • mybatis 一对一association ,一对多collection

    <association property="sysUser" column="user_id"
                 javaType="com.foen.common.core.domain.entity.SysUser">
        <id property="user_id" column="user_id"/>
        <result property="userName" column="user_name"/>
        <result property="niceName" column="nice_name"/>
    </association>
    

      

    一对多


        <result property="remark" javaType="String" column="remark" />
            <collection property="entry"
                ofType="com.foen.cloud.entity.kingdee.MakeMouldDetailEntity">
                <result property="faEntryID" jdbcType="VARCHAR" column="faEntryID" />
                <result property="medolNum" jdbcType="VARCHAR" column="medolNum" />
                <result property="lot" jdbcType="VARCHAR" column="lot" />
                <result property="modelNum" jdbcType="VARCHAR" column="modelNum" />
                <result property="spec" jdbcType="VARCHAR" column="spec" />
                <result property="materialNumber" jdbcType="VARCHAR" column="materialNumber" />
                <result property="stockNumber" jdbcType="VARCHAR" column="stockNumber" />
                <result property="stockLocNumber" jdbcType="VARCHAR" column="stockLocNumber" />
                <result property="holeCount" jdbcType="DECIMAL" column="holeCount" />
                <result property="realQty" jdbcType="DECIMAL" column="realQty" />
                <result property="auQty" jdbcType="DECIMAL" column="auQty" />
                <result property="preferenceJT" jdbcType="VARCHAR" column="preferenceJT" />
                <result property="roddDiameter" jdbcType="DECIMAL" column="roddDiameter" />
                <result property="price" jdbcType="DECIMAL" column="price" />
                <result property="rate" jdbcType="DECIMAL" column="rate" />
                <result property="color" jdbcType="VARCHAR" column="color" />
                <result property="width" jdbcType="DECIMAL" column="width" />
                <result property="alloyStatus" jdbcType="VARCHAR" column="alloyStatus" />
                <result property="remark1" javaType="String" column="remark1" />
            </collection>
  • 相关阅读:
    <linux程序设计> 第四章 [ 程序参数 / 环境变量 / 日期与时间]
    阻塞分析
    架构设计分类
    软件测试
    C#中常用的加密类
    SQL2005
    用异或的性质实现简单加密解密
    在sql中取系统时间?日期?年?
    SQL Server常用到的几个设置选项
    Connection Command[ExecuteNonQuery ExecuteScalar ExecuteReader] DataReader DataAdapter DataSet
  • 原文地址:https://www.cnblogs.com/gzhbk/p/13503329.html
Copyright © 2011-2022 走看看