Hibernate可以做到这一点吗?
select A.something, B.something, C.something, D.something , E.*
from A
LEFT OUTER JOIN B on A.id = B.id_fk
LEFT OUTER JOIN C ON B.id = C.id_fk
LEFT OUTER JOIN D ON C.id = D.id_fk
LEFT OUTER JOIN E ON A.abc = E.abc;
此查询在 SQL 中运行良好,但在 Hibernate 中出现以下异常:
org.hibernate.hql.ast.QuerySyntaxException: expecting IDENT, found '*' near line 1