员工和职能的关系:
多个员工对应一个职能,当我通过员工查看员工职能时,出现ognl.NoConversionPossible,在网上看说是lazy没有设置为false。
lazy=true时,加载员工数据而不加载职能的数据
<many-to-one name="duty" class="cn.baiTeXi.empl.entity.Duty" cascade="save-update,delete"
lazy="false" fetch="select">
<column name="duty_id" length="32" not-null="true" />
</many-to-one>
如果有错误的地方,还请大家说一下哈。谢谢了!