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

problem in hibernate code

 
Hamzah khammash
Greenhorn
Posts: 23
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello , i am new to hibernate and this stuff ,i try to code a student-course example hibernate but always got a set of exception
this are the exception i will but the hibernate.cfg.xml file and the main class and factory class and hope somebody helps me in this example i used Mysql database:

here is the factory class which is the factory of SessionFactory
and my main class is : and my XML File is
so any help will be appropriated .
 
Vijitha Kumara
Bartender
Pie
Posts: 3930
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to define the xml declarations in the config file above <hibernate-configuration> tag. Check the sample code from Hibernate distribution to get the correct code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic