I have written a simple hibernate code to save an object. When I type session.save(0 or session.beginTransaction(), it is throwing an exception. My code is given below
Change the code in ( probably it may work..I'm not sure..)
SessionFactory sessionFactory=new Configuration().configure("hibernate.cfg.xml").buildSessionFactory();
and run with exception full stack trace...
we hope the best..