posted 15 years ago
Dear friends,
I have run into a problem and need your help in solving it.
I am trying to map the values of the fields of an object into a relational database table.
The file hibernate.cfg.xml looks like the following :
The POJO class named ContactDetails.java looks like the following :
And the class used to set the values into the POJO is named as FirstExample.java. It looks like the following:
But when i execute FirstExample.java, i am getting a NulPointerException corresponding to the statement session.flush(); which is in the finally block.
What should i do now ? Kindly help me out.
Subhash