Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: XML
Posted by: JUNE CHERN
Added: Dec 15, 2019 4:21 PM
Views: 7
Tags: no tags
  1.         <resultMap type="User" id="userRoleResult">
  2.                 <id property="id" column="id"/>
  3.                 <result property="userCode" column="userCode" />
  4.                 <result property="userName" column="userName" />
  5.                 <result property="userRole" column="userRole" />
  6.                 <association property="role" javaType="Role" >
  7.                         <id property="id" column="r_id"/>
  8.                         <result property="roleCode" column="roleCode"/>
  9.                         <result property="roleName" column="roleName"/>
  10.                 </association>
  11.         </resultMap>