Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Hibernate Tutorial problem

 
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!
 
    Bookmark Topic Watch Topic
  • New Topic