开源中国 2018 年度最后一场技术盛会邀你来约~错过就要等明年啦!点此立即预约

GVPThinkGem / JeeSiteJavaApache-2.0

Watch 2.5k Star 5.1k Fork 3.1k
已合并
!23 association标签顺序错误导

ping199143:masterThinkGem:master

ping199143 创建于: 2018-02-22 14:23

association标签顺序错误导致报错: The content of element type "resultMap" must match "(constructor?,id*,result*,association*,collection*,discriminator?)".

0 条评论, 1 人参与

展开详细操作日志 收起操作日志
ThinkGem 合并了 Pull Request 2018-03-02 11:18

登录 后才可以发表评论

1 文件发生了变化 ,影响行数: +5 -5
src/main/resources/mappings/modules/sys/RoleDao.xml
@@ -4,17 +4,17 @@
 
<resultMap id="roleResult" type="Role">
<id property="id" column="id" />
- <association property="office" javaType="Office">
- <id property="id" column="office.id" />
- <id property="name" column="office.name" />
- </association>
<result property="name" column="name" />
<result property="enname" column="enname" />
<result property="roleType" column="roleType" />
<result property="dataScope" column="dataScope" />
<result property="remarks" column="remarks" />
<result property="useable" column="useable" />
- <result property="sysData" column="sysData" /><!--
+ <result property="sysData" column="sysData" />
+ <association property="office" javaType="Office">
+ <id property="id" column="office.id"/>
+ <id property="name" column="office.name"/>
+ </association><!--
<collection property="userList" ofType="User">
<id property="id" column="userList.id" />
<id property="loginName" column="userList.loginName" />

搜索帮助