Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem running web app using hibernate

 
Varun Nayudu
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to hibernate and am using hibernate for the first time . I want to build a small web app in which the data base interaction is carried out through hibernate mapping
I have tried to build it using the reference provided from the following site http://jpa.ezhibernate.com/Javacode/learn.jsp?tutorial=01howtogetstartedwithhibernate
Please let me know what else needs to be done

here is what i have done till now

hibernate.cgf.xml



a simple pojo





what else do i require that this code works???
 
Chinna Eranna
Ranch Hand
Posts: 174
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need a mapping xml from your object to database table..

http://www.roseindia.net/hibernate/firstexample.shtml
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Be aware the roseindia tutorials are not very good. A better bet would be this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic