query did not return a unique result: 2; nested exception is javax.persistence.NonUniqueResultException

前端 未结 0 615
谎友^
谎友^ 2021-01-18 18:04

I am using this: List result = entityManager.createQuery(query).getResultList();

but when the result is not unique it throws " query did not return a unique resu

相关标签:
回答
  • 消灭零回复
提交回复
热议问题