[英]JPA select query with multiple values
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]
您的子问题的解决方法:使用这些将new Integer((int) object[0])
转换为整数
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.