개발놀이터

Querydsl 오류 org.hibernate.hql.internal.ast.InvalidPathException: Invalid path: 'order1.orderStatus' / antlr.NoViableAltException: unexpected end of subtree / antlr.SemanticException: left-hand operand of a binary operator was null 본문

오류해결

Querydsl 오류 org.hibernate.hql.internal.ast.InvalidPathException: Invalid path: 'order1.orderStatus' / antlr.NoViableAltException: unexpected end of subtree / antlr.SemanticException: left-hand operand of a binary operator was null

마늘냄새폴폴 2021. 10. 3. 17:45

InvalidPathException, NoViableAltException, SemanticException 이 세개가 동시에 떠서 굉장히 당황했다. 구글링을 해봐도 별다른 수확이 없었다. 그렇게 30분동안 내 코드를 뚫어져라 쳐다본 결과 굉장히 어이없는 실수였다.

 

select절엔 연관관계가 매핑된 다른 테이블의 데이터를 가져오고 싶어하는데 조인이 없네..?

그렇다 조인이 없다... 어이없어서 다신 실수하지 말자는 의미로 이렇게 글을 남긴다. 

 

조인넣어서 해결!