Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

basic app Hibernate

 
vendikonda sravan
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I have written fallowing code to and getting fallowing error

resource: connect.hbm.xml not found
where as i have allredy written the resource: connect.hbm.xml file in current package.
can some buddy explain the problem.
main code


config file

HibernateSessionFactory class

hbm file
 
Varun Phadnis
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It obviously cannot find the "connect.hbm.xml" file. Check your directory structure to determine the correct path of the file. as a last resort try putting the file in the same directory as your Hibernatedemo source file.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

<!-- mapping resource="\Hibernatedemo\Hibernatedemo\src\firstpackage\connect.hbm.xml"-->

This line looks very suspect. For one thing it's commented out, for another that is an odd looking path. Is \Hibernatedemo really the root of your classpath?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic