瀏覽代碼

完善说明

zhouhao 7 年之前
父節點
當前提交
292805e33c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      hsweb-examples/hsweb-examples-custom-entity/README.md

+ 2 - 1
hsweb-examples/hsweb-examples-custom-entity/README.md

@@ -120,6 +120,7 @@ java类
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="org.hswebframework.web.dao.organizational.OrganizationalDao">
+     <!--修改type为新的实体类型-->
     <resultMap id="OrganizationalResultMap" type="org.hswebframework.web.example.custom.entity.CustomOrganizationalEntity">
         <id property="id" column="u_id" javaType="string" jdbcType="VARCHAR"/>
         <result property="name" column="name" javaType="String" jdbcType="VARCHAR"/>
@@ -143,7 +144,7 @@ java类
         <bind name="resultMapId" value="'OrganizationalResultMap'"/>
         <bind name="tableName" value="'s_organization'"/>
     </sql>
-
+    <!--修改parameterType为新的实体类型-->
     <insert id="insert" parameterType="org.hswebframework.web.example.custom.entity.CustomOrganizationalEntity">
         <include refid="config"/>
         <include refid="BasicMapper.buildInsertSql"/>