문서의 이전 판입니다!
Parent - Child
가 1:1 관계일 때 다음과 같이 쿼리했더니 inner join과 cross join이 함께 발생했다.QParent parent = QParent.parent; QChild child = parent.child; from(parent).innerJoin(parent.child).fetch() .where(parent.something.gt(parent.child.somthing))....;
innerJoin
에 PATH를 지정했더니 cross join이 사라졌다.QParent parent = QParent.parent; QChild child = QChild.child; // 여기 달라짐 from(parent).innerJoin(parent.child, child).fetch() // as 처리가 필요함. .where(parent.something.gt(child.somthing))....;