@Override
    public List Listar() {
        Session session = null;
        List<Liga> liga = null;
        try {
            session = NewHibernateUtil.getSessionFactory().openSession();
            Query query = session.createQuery("from Liga");
            liga = (List<Liga>) query.list();
        } catch (HibernateException e) {
            System.out.println(e.toString());
        } finally {
            if (session != null) {
                session.close();
            }
        }
        return liga;
    }