@Override
    public void Borrar(Object value) {
        Session session = null;
        try {
            Cuentas cuenta = (Cuentas) value;
            session = NewHibernateUtil.getSessionFactory().openSession();
            session.beginTransaction();
            session.delete(cuenta);
            session.getTransaction().commit();

        } catch (Exception e) {
            System.out.println(e.getMessage());
            session.getTransaction().rollback();
        } finally {
            if (session != null) {
        //      session.close();

            }

        }
    }