jQuery in Action, 3rd edition
The moose likes Object Relational Mapping and the fly likes Hibernate example error message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate example error message" Watch "Hibernate example error message" New topic

Hibernate example error message

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238

I am trying following hibernate example from link


It is giving error as given below

My code looks like

Main.java file looks like this

Address.java looks like

student.java looks like

hibernmate.cfg file looks like

How can i resolve this issue. Any ideas, suggestions, resources, links highly appreciated. Thanks in advance
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

You forgot to declare the mappings in hibernate.cfg.xml

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238
Thank you very much.
I agree. Here's the link: http://aspose.com/file-tools
subject: Hibernate example error message
It's not a secret anymore!