Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 2.1
Mapping documents:
Code between sessionFactory.openSession() and session.close():Not yet reached this stage
Full stack trace of any exception that occurs:net.sf.hibernate.HibernateException: C:/AgitarWorkspace/HibernateBasic/bin/hibernate.cfg.xml not found
net.sf.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:877)
net.sf.hibernate.cfg.Configuration.configure(Configuration.java:901)
ostfold.startUp.HibernateStartUp.init(HibernateStartUp.java:43)
Name and version of the database you are using:postgresql
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Hi folks,
I'm new to hibernate. I started with creation of session factory. I have written a piece of code which creats session factory.
But the below statement is throwing HibernateException.
new Configuration().configure("C:/AgitarWorkspace/HibernateBasic/bin/hibernate.cfg.xml").buildSessionFactory()
Above statement is throwing
net.sf.hibernate.HibernateException: C:/AgitarWorkspace/HibernateBasic/bin/hibernate.cfg.xml not found
Please help me out to resolve this.
Thanks,