尝试运行此 Hibernate 查询时出现以下错误:
could not resolve property: candidateID of: result [select SUM(A.Points) from answer A Left Join A.Results R where R.candidateID = '465b4eb2-c306-4092-8914-d272b5a70b11']
QueryString select SUM(A.Points) from answer A Left Join A.Results R where R.candidateID = '465b4eb2-c306-4092-8914-d272b5a70b11'
代码
select SUM(A.Points)
from answer A
Left Join A.Results R
where R.candidateID = '1234'
但是,candidateID 在结果中,所以我不明白这个错误。