【发布时间】:2017-01-23 06:01:41
【问题描述】:
select s.id,s.a.id,s.siteName from site s where s.a.id=:b
我无法执行此语句。
ERROR:
Cannot create TypedQuery for query with more than one return using requested result type [com.a.b.entity.site]
【问题讨论】:
-
谢谢你。但是我使用了本地查询并且它有效。
-
我为此使用了本机查询。我按如下方式存储了对象列表..“List
标签: java jpa hql entitymanager