Skip to content

Commit

Permalink
Merge pull request #164 from abes-esr/test
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
willdonn-abes authored Jan 9, 2025
2 parents e9e8a8b + 16b618d commit c1220f1
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,20 @@ public boolean existeMail(String email) {

public List<EtablissementEntity> findAll() {
List<EtablissementEntity> list = etablissementDao.findAll();
return list.stream().map(e ->
new EtablissementEntity(
return list.stream().map(e -> {
EtablissementEntity etablissement = new EtablissementEntity(
e.getId(),
e.getNom(),
e.getSiren(),
e.getTypeEtablissement(),
GenererIdAbes.genererIdAbes(e.getIdAbes()),
e.getContact()
)
);
etablissement.setDateCreation(e.getDateCreation());
etablissement.setValide(e.isValide());
etablissement.setIps(e.getIps());
return etablissement;
}
).collect(Collectors.toList());
}

Expand Down

0 comments on commit c1220f1

Please sign in to comment.