@Override
    public Article insert(Article obj) {
        PreparedStatement pst = null;
        try {
                            pst = this.connect().prepareStatement("INSERT INTO Article (titre, resume, date, id) VALUES (?,?,?,?);");
                            pst.setString(1, obj.getTitlre());
                            pst.setString(2, obj.getResume());
                            pst.setDate(3, obj.getDate());
                            pst.setInt(4, obj.getId());                           
                            pst.executeUpdate();
                            System.out.println("insertion Article terminé");
        } catch (SQLException ex) {
            Logger.getLogger(ArticleDao.class.getName()).log(Level.SEVERE, "insertion echoué", ex);
        }finally{
        
            try {
            if(pst != null)
            pst.close();
        } catch (SQLException ex) {
            Logger.getLogger(ArticleDao.class.getName()).log(Level.SEVERE, "liberation du preparedstatement echouée", ex);
        }
            
        }
        
        
        
        return obj;

    }