최대 절전 모드 4.3.11.final 사용. (괄호가 추가 둘러싼)최대 절전 모드 : 하위 선택 쿼리에서 IN 절을 사용할 때 stange 오류
select distinct doc from DocumentType doc join doc.usages u where u.institute not in :institutes and doc.id not in (select distinct doc1.id from DocumentType doc1 join doc1.usages u1 where u1.institute in :institutes)
제대로 생성되는 조항의 첫 번째하지만 하나
우리는 우리가 하위 선택 쿼리의 예에 에 절을 사용 @query 주석과 요청을 subselect에 없습니다.
생성 된 SQL은 다음과 같습니다
select distinct doc from fr.itce.pen.model.customer.folder.DocumentType doc join doc.usages u where u.institute not in (:institutes_0_, :institutes_1_) and doc.id not in (select distinct doc1.id from fr.itce.pen.model.customer.folder.DocumentType doc1 join doc1.usages u1 where u1.institute in :institutes_0_, :institutes_1_)]
업무용 주위로 선언 된 쿼리에 괄호 부분에 서라운드하는 것입니다
select distinct doc from DocumentType doc join doc.usages u where u.institute not in :institutes and doc.id not in (select distinct doc1.id from DocumentType doc1 join doc1.usages u1 where u1.institute in (:institutes))
작동 할 수있는 더 나은 방법이 있나요, 최근의 최대 절전 모드 버전에서이 '버그'가 수정 되었습니까? 최대 절전 모드 문제를 살펴 봤지만이 동작에 대한 정보를 찾을 수 없었습니다.
감사합니다.
내가 물린 것처럼 보인다 https://hibernate.atlassian.net/browse/HHH-5126?focusedCommentId=62841&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment- 62841 – Nemesis