Im doing a JSF Project using Netbeans for school. I got a simple Problem. My Code is: `
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()
}
}
`
My Error = cannot find symbol symbol:method getSessionFactory() location: variable helper of type HibernateUtil
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.