myBatis org.apache.ibatis.reflection.ReflectionException

:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property 'id' of 'class com.yitu.jubao.vo.extension.MySupervisorUserVO' with value '1' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'id' in 'class com.yitu.jubao.vo.extension.MySupervisorUserVO'

<collection property="supervisorPermissions"  ofType="com.yitu.jubao.vo.extension.MySupervisorUserVO">
            <id property="id" column="p_id"/>
            <result property="name" column="pname" />
            <result property="parentid" column="pparentId" />
            <result property="url" column="pUrl" />
            <result property="level" column="pLevel" />
            <result property="sort" column="pSort" />
            <result property="createtime" column="pcreateTime" />
            <result property="updatetime" column="pupdateTime" />
            <result property="voided" column="pvoided" />
  </collection>

需要在ofType  指定具体的某个 model

相关推荐