Date datainicio = new Date();
Date datafim = new Date();
Date horainic = new Date();
Date horafim = new Date();
Date data = new Date();
TurmaPis trp = null;
try {
uo = Fachada.getInstance().getUoControle().pesquisarUoPorCodigo(1);
pf = Fachada.getInstance().getProfPisControle().pesquisarProfPisPorCodigo(1);
pis = Fachada.getInstance().getPisControle().pesquisarPisPorCodigo(1);
trp = new TurmaPis (uo, pf, pis, datainicio, datafim, horainic, horafim, 25, 1, data);
Fachada.getInstance().getTurmaPisControle().salvarTurmaPis(trp);
JOptionPane.showMessageDialog(null, "Turma de PIS cadastrado com sucesso!");
TurmaPis trp2 = Fachada.getInstance().getTurmaPisControle().pesquisarTurmaPisPorCodigo(1);
System.out.print(trp2.getCodTurmaPis());
} catch (Exception ex) {
Logger.getLogger(TurmaPisGUI.class.getName()).log(Level.SEVERE, null, ex);
}