您的位置:首页 > 移动开发 > Objective-C

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

2014-03-17 15:48 597 查看
错误提示: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即可; 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐