@Override public Numero UpdateByTypeNum(Numero numero, String type, String numTel) throws DAOException { try { numero = findById(numero.getId()); numero.setType(type); numero.setTel(numTel); em.merge(numero); return numero; } catch (PersistenceException e) { throw new DAOException("rreur dans NumeroDAOImpl UpdateByTypeNum " + e.getMessage(), e); } }