This is my first time using Hiberante
.
I am trying to create a Hibernate session
within my application using the following:
Session session = HiberanteUtil.getSessionFactory().openSession();
It gives me this error:
org.hibernate.HibernateException: /hibernate.cfg.xml not found
However I do not have a hibernate.cfg.xml
file within my project.
How can I create a session without having this file?