@Override
public Match findId(int id) throws SQLException {
Match m = null;
String QuerySelect = "Select * from users where id = ? ;";
step = connect.prepareStatement(QuerySelect);
res = step.executeQuery();
while (res.next()) {
m = new Match();
m.setId(res.getInt("id"));
m.setDate(res.getDate("date"));
m.setHomeTeam(res.getString("equipe_domicile"));
m.setGuestTeam(res.getString("equipe_invite"));
m.setHomeScore(res.getInt("score_domicile"));
m.setHomeScore(res.getInt("score_invite"));
}
return m;
}