• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate Tutorial problem

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Never mind - turned out to be a typo in the hibernate.cfg.xml file. DOH!
 
reply
    Bookmark Topic Watch Topic
  • New Topic