Left join operation performed in querydsl gives 'path expected error in querydsl'

牧云@^-^@ 提交于 2019-12-11 12:28:37

问题


Here is my code:

QueryFactory.selectFrom(table1)
  .leftJoin(table2).on(table1.id.eq(table2.id)).fetch();

When I execute the below code in querydsl I get the following error:

08:08:54.866 ERROR o.h.h.i.a.ErrorCounter - Path expected for join! 08:08:54.870 ERROR o.h.h.i.a.ErrorCounter - Path expected for join! antlr.SemanticException: Path expected for join! at org.hibernate.hql.internal.ast.HqlSqlWalker.createFromJoinElement(HqlSqlWalker.java:369) ~[hibernate-core-4.2.1.Final.jar:4.2.1.Final]

来源:https://stackoverflow.com/questions/30954610/left-join-operation-performed-in-querydsl-gives-path-expected-error-in-querydsl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!