private void jButtonVoteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonVoteActionPerformed
 
        SondageReponseDao srd = SondageReponseDao.getInstance();
        List<SondageReponse> listReponses = srd.findAll();
        SondageReponse sr_vote = new SondageReponse(lastSondage.getId(), lastSondage.getId(), sondageChoix, 1);
        
        for(SondageReponse sr : listReponses){
            if(sr_vote.equals(sr)){
                sr_vote = sr;
                sr_vote.setNombreChoix(sr.getNombreChoix()+1);
                srd.update(sr_vote);
                break;
            }
        }
        
        if(sr_vote.getNombreChoix() == 1)
            srd.insert(sr_vote);
        
        System.out.println("Vote ajouté " + sr_vote);
    }//GEN-LAST:event_jButtonVoteActionPerformed