object references an unsaved transient instance - save the transient instance before flushing
来源:互联网 发布:http协议 json 编辑:程序博客网 时间:2024/05/18 01:04
Struts has detected an unhandled exception:
Messages:
- object references an unsaved transient instance - save the transient instance before flushing: net.binxia.po.School
- object references an unsaved transient instance - save the transient instance before flushing: net.binxia.po.School; nested exception is org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: net.binxia.po.School
小编在使用Hibernate的时候,遇到了这个错误,之前在查询过程中并没有遇到,在update时就出现了这样的错误,问题出在据库表的级联上。
需要在many-to-one 中加上cascade="save-update,persist"即可
0 0
- object references an unsaved transient instance - save the transient instance before flushing
- object references an unsaved transient instance - save the transient instance before flushing异常
- object references an unsaved transient instance - save the transient instance before flushing(异常总结)
- object references an unsaved transient instance - save the transient instance before flushing
- object references an unsaved transient instance - save the transient instance before flushing
- object references an unsaved transient instance - save the transient instance before flushing .
- object references an unsaved transient instance - save the transient instance before flushing
- object references an unsaved transient instance - save the transient instance before flushing
- object references an unsaved transient instance - save the transient instance before flushing
- object references an unsaved transient instance - save the transient instance before flushing
- object references an unsaved transient instance - save the transient instance before flushing(异常总结)
- object references an unsaved transient instance - save the transient instance before flushing
- object references an unsaved transient instance - save the transient instance before flushing
- object references an unsaved transient instance - save the transient instance before flushing
- object references an unsaved transient instance - save the transient instance before flushing
- object references an unsaved transient instance - save the transient instance before flushing
- 异常object references an unsaved transient instance - save the transient instance before flushing
- object references an unsaved transient instance - save the transient instance before flushing:
- 线程和进程区别
- java生成md5校验码
- android 关于Make sure the plugin is properly configured问题的解决办法
- Hibernate 集合排序
- Linux DDos(SYN Flood)攻击的检测和防范
- object references an unsaved transient instance - save the transient instance before flushing
- Sphinx武林秘籍(下)
- makefile中解决Makefile:XX:missing separator. Stop.问题
- leetcode-Valid Sudoku
- 如何找回回收站清空的重要文件
- Android SDK开发包国内下载地址
- php 导出CSV
- iphone 开源代码 绝对经典!
- Effective C++ Item 24 若所有参数皆需类型转换,请为此采用non-member函数