• 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系统常见的压缩与打包
    java 语言规范 java language specifications
    java 枚举
    github邮箱验证技巧
    关于 python
    博客园 编程基础 精华
    fiddler
    一个牛人写的博客
    使用xmarks同步 chrome ie firefox safari书签
    linux 中的 tar 解压
  • 原文地址:https://www.cnblogs.com/gzhbk/p/13503329.html
Copyright © 2020-2023  润新知