0
我試圖執行與別名HQL查詢用別名
select **clbs.id as id**
from ClaimDO cl, ClaimBillSummaryDO clbs, HospitalDO h
where clbs.parentGuidObj.id=cl.id and h.id=cl.hospitalSeq and cl.id= '10721'
一個HQL查詢,我收到以下錯誤
org.hibernate.QueryException: , expected in SELECT
但是查詢,而不錯誤運行,如果我刪除別名
select **clbs.id**
from ClaimDO cl, ClaimBillSummaryDO clbs, HospitalDO h
where clbs.parentGuidObj.id=cl.id and h.id=cl.hospitalSeq and cl.id= '10721'