Uniandes-ISIS2603-backup / s2_Boletas

MIT License
0 stars 0 forks source link

dtos/CompraDetailDTO.java - Check constructor from Entity implementation in DetailDTO #149

Open camendoza94 opened 5 years ago

camendoza94 commented 5 years ago

Issue: Check constructor from Entity implementation in DetailDTO

Found on file: dtos/CompraDetailDTO.java

On commit: 79e85df79c4ecd5d907af7a45647838e03803def

Go to the Knowledge Base to find more info about this violation

gaHamilton commented 5 years ago

compraDetailDTO ya tiene un constructor con entity: public CompraDetailDTO(CompraEntity compraEntity) { super(compraEntity); if (compraEntity != null && compraEntity.getBoletas() != null) {

        boletas = new ArrayList<>();
        for (BoletaEntity entityBoleta : compraEntity.getBoletas()) {
            boletas.add(new BoletaDTO(entityBoleta));
        }            
    }
}