private void btGravarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btGravarActionPerformed

        boolean segunda = this.cbSegundaFeira.isSelected();
        boolean terca = this.cbTercaFeira.isSelected();
        boolean quarta = this.cbQuartaFeira.isSelected();
        boolean quinta = this.cbQuintaFeira.isSelected();
        boolean sexta = this.cbSextaFeira.isSelected();
        boolean sabado = this.cbSabado.isSelected();
        boolean domingo = this.cbDomingo.isSelected();

        diasaula = "";
        if (segunda) {
            diasaula = diasaula.concat("Segunda|");
        }
        if (terca) {
            diasaula = diasaula.concat("Terca|");
        }

        if (quarta) {
            diasaula = diasaula.concat("Quarta|");
        }

        if (quinta) {
            diasaula = diasaula.concat("Quinta|");
        }

        if (sexta) {
            diasaula = diasaula.concat("Sexta|");
        }

        if (sabado) {
            diasaula = diasaula.concat("Sabado|");
        }

        if (domingo) {
            diasaula = diasaula.concat("Domingo|");
        }

        try {

            new DaoGenerics<Turma>(Turma.class) {
            }.saveOrUpdate(getTurma());
            JOptionPane.showMessageDialog(null, "Turma Cadastrado");
        } catch (Exception ex) {
            Logger.getLogger(CadastroTurmas.class.getName()).log(Level.SEVERE, null, ex);
        }

    }//GEN-LAST:event_btGravarActionPerformed