}
public List<VendaItem> obterPorVenda(int codVenda) throws Exception {
DB db = DBFactory.getInstancia();
String sql = "select cod_venda_item, cod_venda, cod_produto from venda_item where cod_venda = {cod_venda} ";
sql = sql.replace("{cod_venda}", String.valueOf(codVenda));
List<VendaItem> itens = new ArrayList<VendaItem>();
ResultSet rs = db.execConsulta(sql);
while(rs.next()) {
itens.add(popularEntidade(rs));
}