title: Jsf Netbeans, Hibernate, Get Session Factory cannot find symbol error
body: <p>Im doing a JSF Project using Netbeans for school. I got a simple Problem. My Code is:
  `</p>
  
  <pre><code>public class PlayerData{
  
     private Player pl;
     private HibernateUtil helper;
     private Session session;
  
      public void addMember(){
         pl=new Player ("Example")
         session=helper.getSessionFactory().getCurrentSession();
         session.beginTransaction();
         session.save(pl);
         session.getTransaction().commit();
         session.close()
  
  }
  
  }
  </code></pre>
  
  <p>`</p>
  
  <p>My Error = 
  cannot find symbol 
       symbol:method getSessionFactory()
       location: variable helper of type HibernateUtil</p>