Segue o SQL gerado pelo JPA.
select
itens0_.idItens as idItens1_1_0_,
itenslanca2_.cotacao_id as cotacao_1_2_1_,
itenslanca2_.item_id as item_id2_2_1_,
itenslanca2_.parceiro_id as parceiro3_2_1_,
itens0_.codigoPlu as codigoPl2_1_0_,
itens0_.descricaoItem as descrica3_1_0_,
itens0_.eanItem as eanItem4_1_0_,
itens0_.embalagem as embalage5_1_0_,
itens0_.setor_codSetor as setor_co7_1_0_,
itens0_.statusItem as statusIt6_1_0_,
itenslanca2_.dataLancamento as dataLanc4_2_1_,
itenslanca2_.qtdDigitada as qtdDigit5_2_1_,
itenslanca2_.valorDigitado as valorDig6_2_1_,
itenslanca2_.item_id as item_id2_1_0__,
itenslanca2_.cotacao_id as cotacao_1_2_0__,
itenslanca2_.item_id as item_id2_2_0__,
itenslanca2_.parceiro_id as parceiro3_2_0__
from
Itens itens0_
inner join
Setor setor1_
on itens0_.setor_codSetor=setor1_.codSetor
left outer join
ItensLancados itenslanca2_
on itens0_.idItens=itenslanca2_.item_id
left outer join
ItensLancados itenslanca3_
on itens0_.idItens=itenslanca3_.item_id
inner join
Parceiro parceiro4_
on itenslanca3_.parceiro_id=parceiro4_.codParceiro
and (
parceiro4_.codParceiro=1
)
inner join
Cotacao cotacao5_
on itenslanca3_.cotacao_id=cotacao5_.codCotacao
and (
cotacao5_.codCotacao=50
)
where
setor1_.codSetor=1