Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Tutorial problem

 
Alex Belt
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working on the tutorial in the first chapter of the Hibernate documentation, and having a problem with it. I've created all the files listed along with their content. The problem I have, is that when I run it, I get a Table not found error because it's not being created. I have the

entry in my hibernate.cfg.xml file, but when I look at the logs, there's nothing to indicate that the table was created, or even attempted, and I don't understand why. I'm using the latest Hibernate version, 3.2.5, and the recommended HSQLDB version 1.8.0.1 for the db. I'm fairly new to Hibernate, have never used HSQLDB before, and after banging on it for a while, I'm lost. Has anyone else run into this?

Thanks,
Alex
 
Alex Belt
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the exact same issue if I change the config file for MySQL and then proceed to use MySQL 5.1.22.
 
Alex Belt
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind - turned out to be a typo in the hibernate.cfg.xml file. DOH!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic