Slide 157
Slide 157 text
select nf.* from NotaFiscal nf
select i.* from Item i where i.nota_fiscal_id
in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
select i.* from Item i where i.nota_fiscal_id
in (?, ?, ?, ?, ?)
Hibernate executa n/10+1 selects
List notas = dao.listaTudo();
for (NotaFiscal nf : notas) {
processaItensDaNota(nf);
}