Use of association, use of association

Source: Internet
Author: User

Use of association, use of association

<ResultMap id = "wmsTaskMap" type = "WmsTask"> <id column = "ID" jdbcType = "DECIMAL" property = "id"/> <result column = "TYPE" jdbcType = "VARCHAR" property = "type"/> <result column = "INVENTORY_STATUS" jdbcType = "VARCHAR" property = "inventoryStatus"/> <result column = "SRC_INVENTORY_ID" jdbcType =" DECIMAL "property =" srcInventoryId "/> <result column =" SRC_LOCATION_ID "jdbcType =" DECIMAL "property =" srcLocationId "/> <result Column = "SRC_LOCATION_CODE" jdbcType = "VARCHAR" property = "srcLocationCode"/> <result column = "DEST_INVENTORY_ID" jdbcType = "DECIMAL" property = "destInventoryId"/> <result column = "DEST_LOCATION_ID" jdbcType = "DECIMAL" property = "destLocationId"/> <result column = "DEST_LOCATION_CODE" jdbcType = "VARCHAR" property = "destLocationCode"/> <result column = "comment "jdbcType =" DECIMAL "property =" planQuantity BU "/> <result column =" MOVED_QUANTITY_BU "jdbcType =" DECIMAL "property =" movedQuantityBU "/> <result column =" STATUS "jdbcType =" VARCHAR "property =" status" /> <result property = "info. creatorId "column =" CREATOR_ID "/> <result property =" info. creator "column =" CREATOR "/> <result property =" info. createdTime "column =" CREATED_TIME "/> <result property =" info. lastOperatorId "column =" LAST_OPERATOR_ID "/> <result proper Ty = "info. lastOperator "column =" LAST_OPERATOR "/> <result property =" info. lastOperatedTime "column =" LAST_OPERATED_TIME "/> <association property =" worker "column =" WORKER_ID "javaType =" User "> <id column =" ID "jdbcType =" DECIMAL "property = "id"/> </association> <association property = "productKey" column = "PRODUCT_KEY_ID" javaType = "WmsProductKey"> <id column = "ID" jdbcType = "DECIMAL" property = "id"/> </association> <Association property = "workDoc" column = "WORK_DOC_ID" javaType = "WmsWorkDoc"> <id column = "ID" jdbcType = "DECIMAL" property = "id"/> <! -- Document No. --> <result column = "CODE" jdbcType = "VARCHAR" property = "code"/> </association> <! --> <Association property = "moveDocDetail" column = "MOVE_DOC_DETAIL_ID" javaType = "WmsMoveDocDetail"> <id column = "ID" jdbcType = "DECIMAL" property = "id"/> <association property = "product" column = "PRODUCT_ID" javaType = "BisProduct"> <id column = "ID" jdbcType = "DECIMAL" property = "id"/> <result column = "CODE" jdbcType = "VARCHAR" property = "code"/> <result column = "NAME" jdbcType = "VARCHAR" property = "name"/> </assoc Iation> </association> <! -- Packaging level --> <association property = "packageLevel" column = "PACKAGE_LEVEL_ID" javaType = "BisPackageLevel" select = "com. jshuabo. logistics. server. dao. bis. product. IBisPackageLevelMapper. load "/> </resultMap>


Why is association unable to associate information, only Id:

<association property="moveDocDetail" column="MOVE_DOC_DETAIL_ID" javaType="WmsMoveDocDetail"><id column="ID" jdbcType="DECIMAL" property="id" /><association property="product" column="PRODUCT_ID" javaType="BisProduct"><id column="ID" jdbcType="DECIMAL" property="id" /><result column="CODE" jdbcType="VARCHAR" property="code" /><result column="NAME" jdbcType="VARCHAR" property="name" /></association></association>
Is there a problem with writing like this?


How to Use File Association Manager

You can specify to always use the same program to open a file with a specific file extension. You can also modify the existing File Association Manager-File Association Manager.
 
How to read Association? Standard

Association [region, s region usi 'ei region limit n, region, s region u region I 'ei-] Details»
N. Association, alliance, community; Association; Lenovo

Ele. Me search

Hope to help you

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.