簡體   English   中英

JPA選擇查詢具有多個值

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM