I wrote the following HQL:
select currency, rate from Currency as currency left outer join ExchangeRate as rate where currency.code = rate.currencyCode
And when I execute it I get: No data type for node: org.hibernate.hql.ast.tree.IdentNode \r\n \\-[IDENT] IdentNode: 'rate' {originalText=rate}\r\n
I found some questions on stackoverflow such as What's wrong with this HQL? "No data type for node" but in my case rate is defined in my join. And suggestions are appreciated.