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

今天写一个Action 通过 HQL 查询一个表 出现异常 “More than one row with the given identifier was found”

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

问题解决: 找到数据库表 删除全部数据 然后重新导入 问题没了

posted @ 2017-01-11 09:27  疯子110  阅读(3588)  评论(0编辑  收藏  举报