I'm pretty new to hibernate. I've been trying to add some data to an existing table in mysql database using hibernate. But there is an error in my code. The session object is not being built. My code is as below:
add_user.java:
Users.java :
hibernate.cfg.xml:
users.hbm.xml:
The stack trace is as follows:
Can someone please help me. I've no idea why this is happening.
add_user.java:
Users.java :
hibernate.cfg.xml:
users.hbm.xml:
The stack trace is as follows:
Can someone please help me. I've no idea why this is happening.