Could not synchronize database state with session
来源:互联网 发布:二手手机淘宝网 编辑:程序博客网 时间:2024/06/01 08:52
今天做一个简单保存时,db2数据库报的错误,网上收集了下问题的解决办法~
1.主键不是自动生成的,然后自己没手动设置。
2.插入的实体字段跟数据库的关键字冲突。
3.更新的时候,如果更新一个不存在的id实体,也会出现此问题。
4.自己在数据库里手工添加了数据,当利用程序添加数据而且主键是手动设置时,主键冲突导致报此错。
- Could not synchronize database state with session
- Could not synchronize database state with session
- Could not synchronize database state with session
- Could not synchronize database state with session
- Could not synchronize database state with session
- Could not synchronize database state with session
- Could not synchronize database state with session解决方法
- Data truncation -Could not synchronize database state with session
- Could not synchronize database state with session : Could not execute JDBC batch update
- 关于ssh中出现Could not synchronize database state with session 问题
- Could not synchronize database state with session Lock wait timeout exceeded; try restarting transa
- Hibernate大批量的数据更新缓存问题(Could not synchronize database state with session)
- JBPM工作流之出现Could not synchronize database state with session以及You have an error in your SQL syntax;的异
- jps could not synchronize with target
- [main] ERROR org.hibernate.event.def.AbstractFlushingEventListener - Could not synchronize database
- Cannot 'Synchronize with database' my entity objects
- Could not open CRS database
- could not initialize :no session
- VMware启动报错Reason: Failed to lock the file的解决方法
- android学习路线图
- struts2 中日期问题
- Storyboard的使用
- 如何在UIAlertView中显示进度条
- Could not synchronize database state with session
- 通过写framebuffer显示BMP图片
- C语言高效编程的的四大绝招
- 57 有舍才有得
- Ruby连Mysql数据库
- debug with dump at Visual Studio 2005
- UITableView UITableViewCell NSIndexPath
- 缓存几种形式
- Oracle DBlink