aspose file tools*
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
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate example error message" Watch "Hibernate example error message" New topic
Author

Hibernate example error message

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238
Hi,

I am trying following hibernate example from link

http://www.vaannila.com/hibernate/hibernate-example/hibernate-mapping-many-to-one-using-annotations-1.html.

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