public static CommuneViewModel getCommune(int idCommune) { CommuneDAO pDAO = CommuneDAO.getCommune(idCommune); int idDepartement = pDAO.DepartementCommuneDAO; DepartementViewModel m = DepartementORM.getDepartement(idDepartement); CommuneViewModel p = new CommuneViewModel(pDAO.idCommuneDAO, pDAO.nomCommuneDAO, pDAO.CodePostaleDAO, m); return(p); }