| 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.
|
 |
 |
|
|
subject: Hibernate example error message
|
|
|