现在的位置: 首页 > 综合 > 正文

org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.gaidea.ptims.po

2018年02月04日 ⁄ 综合 ⁄ 共 350字 ⁄ 字号 评论关闭

错误提示:org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.gaidea.ptims.po.practice.pro.PracticePro#0]

#后的是说在这个表中的记录ID不存在

方法一:更改多对一配置如下:

 <many-to-one name="genSyjxcenter" class="com.gaidea.ptims.po.GenSyjxcenter" not-found="ignore" fetch="select" lazy="false">

            <column name="CENTER_ID"/>

        </many-to-one>

方法二:修改数据库数据,增加指定的记录ID即可; 

抱歉!评论已关闭.