【hibernate】org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
来源:互联网 发布:做虚拟现实的软件 编辑:程序博客网 时间:2024/05/17 05:13
错误提示
org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [cn.bss.model.FlCanteenbuild#353B107CC0A80C120000000007AE2D22];
原因
查数据库发现,flUnit表引用了flCanteenbuild表的Id。
flUnit中存在一条记录,引用的flCanteenbuildId为'353B107CC0A80C120000000007AE2D22'。
而flCanteenbuild表中没有id为'353B107CC0A80C120000000007AE2D22'的记录。
解决方法很简单,把数据库记录改正确即可。
困惑
但是困惑的是,参照下图:
1、标示1处,FlCanteenbuild_$$_javassist_16显示是一个对象,不为null。
2、标示2处,报错行为396行。
3、标示3处,获取buildtype字段时,报错。
4、标示4处,获取Id字段时,不报错。
不明白为什么获取id不报错,而获取buildtype报错。
错误如下:
0 0
- 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:
- 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
- rg.hibernate.ObjectNotFoundException: No row with the given identifier exists
- 【hibernate】错误org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- 【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 的快捷解决问题
- iOS RSA的网络安全模型、iOS签名机制总结
- 解决UIWebView上方总是会有一块空白的问题?
- Android 使用系统相机拍摄照片保存到本地并在系统相册中显示
- XCText
- 第六周项目2==书面实践
- 【hibernate】org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
- 安装cocoapods的时候显示没有权限:You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
- 线程的实现(通过继承Thread类实现调用run())
- 我的老师们
- 求二叉树的深度和宽度
- 回文子串(模板)Manacher O(n)算法
- CodeForces 658D Bear and Polynomials
- 数据结构与算法——表达式树类的C++实现(二叉树)
- nodejs 升级命令