correction de bug MPD et premiere navigation Groupe et Etudiant
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package fr.iutfbleau.projetIHM2022FI2.Test;
|
||||
import fr.iutfbleau.projetIHM2022FI2.API.*;
|
||||
import fr.iutfbleau.projetIHM2022FI2.Graphic.Graphic;
|
||||
import fr.iutfbleau.projetIHM2022FI2.Graphic.Model;
|
||||
import fr.iutfbleau.projetIHM2022FI2.MNP.*;
|
||||
import java.util.*;
|
||||
import org.mariadb.jdbc.*;
|
||||
@@ -26,7 +26,7 @@ public class TestTexteMNP{
|
||||
|
||||
////System.out.println("Test de l\'API");
|
||||
//System.out.print("Création des étudiants");
|
||||
Graphic ga=new Graphic();
|
||||
Model ga=new Model();
|
||||
|
||||
Etudiant e1=new EtudiantNP("césar","lycurgus");
|
||||
Etudiant e2=new EtudiantNP("denis","uranus");
|
||||
@@ -238,11 +238,11 @@ public class TestTexteMNP{
|
||||
acf.deleteChangement(itch.next());
|
||||
for (Changement cgt : acf.getAllChangements()){
|
||||
////System.out.println(cgt.monPrint());
|
||||
}*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
||||
try{
|
||||
Class.forName("org.mariadb.jdbc.Driver");
|
||||
try{
|
||||
@@ -252,12 +252,13 @@ public class TestTexteMNP{
|
||||
try{
|
||||
PreparedStatement pst = cnx.prepareStatement(
|
||||
"INSERT INTO `CONTIENT` (`idGroupe`, `idEt`) VALUES (?, ?);");
|
||||
Groupe g=agf.getPromotion();
|
||||
for(Etudiant et: g.getEtudiants()){
|
||||
pst.setInt(1, g.getId());
|
||||
for(Groupe k: racineDeLaPartition.getSousGroupes()){
|
||||
for(Etudiant et: k.getEtudiants()){
|
||||
pst.setInt(1, k.getId());
|
||||
pst.setInt(2, et.getId());
|
||||
pst.executeQuery();
|
||||
}
|
||||
}
|
||||
pst.close();
|
||||
}catch(SQLException ef){
|
||||
System.out.println("erreur dans la preparation");
|
||||
|
Reference in New Issue
Block a user