您的位置:首页 > 其它

Hibernate:More than one row with the given identifier was found解决办法

2017-01-11 09:27 381 查看
今天写一个Action 通过 HQL 查询一个表 出现异常 “More than one row with the given identifier was found”

问题原因: 数据库出现数据异常 存在多条主键不唯一的数据 (看来ORACLE也会出BUG呀)

问题解决: 找到数据库表 删除全部数据 然后重新导入 问题没了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: