读书人

处理JPA错误: More than one row wit

发布时间: 2012-10-28 09:54:44 作者: rapoo

处理JPA异常: More than one row with the given id entifier was found

在使用hibernate entitymanager的时候,我们会用 entityManager.createQuery("xxx").getResultList(); 来获取对象。在某些时候,就会产生如下的异常:

?

  

读书人网 >软件架构设计

热点推荐