Hi All,
I am learning to use hibernate and studied a few tutorials and starting an example which loads data into oracle database.What i get is an null pointer exception.The same example and the same exception problem has been posted before,but their solution are not working for me.Here is the code that I am working on.
This is hibernate.cfg.xml.I use eclipse for development and this file i have it in the src folder.
This file contact.hbm.xml is also in the src folder where all the
java files reside
Contact.java
FirstExample.java
The line where i get the null pointer exception is
.Meaning that the session is null.is it connection that is the problem? can someone please help me??