Skip to content

Commit

Permalink
association标签顺序错误导致“The content of element type "resultMap" must matc…
Browse files Browse the repository at this point in the history
…h "(constructor?,id*,result*,association*,collection*,discriminator?)".”
  • Loading branch information
dienaso committed Feb 22, 2018
1 parent 1176ff2 commit f64546f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/resources/mappings/modules/sys/RoleDao.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down

0 comments on commit f64546f

Please sign in to comment.