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即可;
#后的是说在这个表中的记录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即可;
相关文章推荐
- Caused by: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xxx.xx.model.info.News#15]
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.chint.model.bas.Vendor#
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [xx]
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- 【hibernate】org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
- (已解决)org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.zero.space.entity.TblJd#38]解决方法
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists .
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- Caused by: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: 原因
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- Hibernate报错:org.hibernate.ObjectNotFoundException: No row with the given identifier exists 解决办法
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists解决办法
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists