I have a list of BigDecimal
, and a list of the entity which have a long field, I want to add any entity that it's long attribute contained in the BigDecimal
list.
I don't know what's happening, I get an empty list.
public List<Utilisateur> signataireUsersOfDoc (List<BigDecimal> list) {
List <Utilisateur> filledList = utilisateurDAO.findAll();
List <Utilisateur> filteredList = new ArrayList<Utilisateur>() ;
BigDecimal n;
for (Utilisateur temp : filledList) {
n = new BigDecimal(temp.getPoste().getIdPoste());
if (list.contains(n)) {
filteredList.add(temp) ;
}
}
return filteredList;
}