I’m getting the following error when trying to run this Hibernate query:
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'
code
select SUM(A.Points)
from answer A
Left Join A.Results R
where R.candidateID = '1234'
However,candidateID is in results so i don’t understand this error.
With the exception of names of Java classes and properties, HQL queries are case-insensitive. So org.hibernate.eg.FOO is not org.hibernate.eg.Foo. Try changing the case on your query for classes and properties. Also verify the case for candidateID.