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呀)

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

原文地址:https://www.cnblogs.com/telwanggs/p/6272376.html