Hibernate 级联查询: More than one row with the given identifier was found 报错
来源:互联网 发布:sql表连接 编辑:程序博客网 时间:2024/05/06 02:25
今天看运营数据,突然得不到数据,看系统日志发现“ More than one row with the given identifier was found”这个报错,之前都一直用得好好的,怎么突然就出问题了呢?
直接网上找答案,说是hibernate One To One 或 Many To One 级联查询时,One的一方对应的id有多条数据造成的。后来仔细找了下确实有一条渠道消息删除过,后来又新建了一条同一渠道的数据,因此造成了冲突。由于当时没有考虑到hibernate级联查询没有判断数据状态的问题,造成了错误,所以下一次还需要逻辑严谨些。
0 0
- Hibernate 级联查询: More than one row with the given identifier was found 报错
- more than one row with the given identifier was found
- Hibernate:More than one row with the given identifier was found解决办法
- org.hibernate.HibernateException: More than one row with the given identifier was found: 116, for cl
- HibernateException:More than one row with the given identifier was found: 1, for class....
- More than one row with the given identifier was found 问题
- no row with the given identifier was found: 200
- 关于使用Hibernate出现报错No row with the given identifier exists:
- 关于Hibernate:No row with the given identifier exists报错的解决办法
- no row with the given identifier exists报错
- mybatis ---- 级联查询 一对多 (集合映射)mybatis中:returned more than one row, where no more than one was expected
- More than one file was found with OS independent path
- Hibernate: No row with the given identifier exists
- Hibernate: No row with the given identifier exists错误
- Hibernate: No row with the given identifier exists
- Hibernate中No row with the given identifier exists
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists
- Hibernate异常No row with the given identifier exists 解决方法
- linux下fork函数创建进程
- C++ 返回嵌套类的指针(必须加typename限制)
- 哈希表
- 06-java.util.ConcurrentModificationException
- EXCEL在.NET操作下的错误System.InvalidCastException: QueryInterface for interface Excel._Application failed.
- Hibernate 级联查询: More than one row with the given identifier was found 报错
- 黑马程序员——类加载器&代理
- 题目1119:Integer Inquiry
- hdu 1556 Color the ball&&hdu 4883 TIANKENG’s restaurant
- 动态改变字体大小
- ZOJ-1539
- Linux驱动子系统之输入子系统(6)-gpio-keys
- 一个简单的使用SDL播放YUV文件的示例
- 这几年的经历感想