7172737475767778798081
nbMar ++; } if ((idArt % 2) == 0) { //pair a = new Service(idArt); } else { //impair a = new Materiel(idArt); } pm.makePersistent(a); a.setCatalogue(cat); mar.getArticles().add(a); }