Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Runtime Error in my first Hibernate program

 
Parthiban Malayandi
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I'm following book "Hibernate made easy" book and trying to compile my first Hibernate program.

I have configured classpath and path with appropriate library files and I'm not getting any compilation errors but I'm getting the below error when I try to run it

My config file
=========


Simple Class



Runtime Error



Could you guys please let me know what is the problem ?

Thanks in advance
 
Raja Sri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you missed mapping file for class User.
 
Santosh Manikandan
Greenhorn
Posts: 9
C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I bet you have written instead of
 
Parthiban Malayandi
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Santhosh,

The mistake I made was
instead of



I changed It and it works fine now.Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic