org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.zero.space.entity.TblJd#38]解决方法
2010-05-26 11:37
579 查看
现在这个提示说是TblJd这个表中
没有特定的标识符行, 是#38 , 一开始是真晕了 , 都不知道是哪里错了。
问了下朋友, 这很有可能是
"多(TblFwxx) 对一(TblJd)" 在多(TblFwxx)中有那麽一列数据,但是在
一(TblJd)表中很可能没有那条数据的相关信息.
我一查 靠 还真是,
TblJd表中唯独了一个标识列为 38 的数据行, 同时在TblFwxx表中存在那么一条 jdid 为 38 的数据 ,
要改么
我就在数据库中直接更新了房屋信息的 街道id 就好了!
其实依照我的想法就是外键关系,在一次添加的时候出现添加错误,把外键当中没有的数据表示列给添加到另一张表里面了,在添加的时候没有出现错误,结果在查询的时候把错误爆出来了。找到38行数据就能看到外键的错误了。
没有特定的标识符行, 是#38 , 一开始是真晕了 , 都不知道是哪里错了。
问了下朋友, 这很有可能是
"多(TblFwxx) 对一(TblJd)" 在多(TblFwxx)中有那麽一列数据,但是在
一(TblJd)表中很可能没有那条数据的相关信息.
我一查 靠 还真是,
TblJd表中唯独了一个标识列为 38 的数据行, 同时在TblFwxx表中存在那么一条 jdid 为 38 的数据 ,
要改么
我就在数据库中直接更新了房屋信息的 街道id 就好了!
其实依照我的想法就是外键关系,在一次添加的时候出现添加错误,把外键当中没有的数据表示列给添加到另一张表里面了,在添加的时候没有出现错误,结果在查询的时候把错误爆出来了。找到38行数据就能看到外键的错误了。
相关文章推荐
- Hibernate报错: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.hibernate.ObjectNotFoundException: No row with the given identifier exists 的快捷解决问题
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [cn.facekee.cms.entity.CmsFansgroup#195]
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.gaidea.ptims.po
- 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: 原因
- 【hibernate】org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [cn.itcast.erp.auth.
- 【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.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: [com.chint.model.bas.Vendor#
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists: