-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Where hibernate.cfg.xml. Contact.hbm.xml to be kept
PostPosted: Thu Jun 16, 2005 5:16 pm 
Newbie

Joined: Wed Jun 08, 2005 1:09 pm
Posts: 3
Hello All,

Application files
1) hibernate.cfg.xml
2) contact.hbm.xml
3) com.test.contact.java Mapping class
4) com.test.TestHibernate.java

Package name is com.test

After comilation xml files kept in com\test\ *.xml

But when i execute the application using TestHibernate.java it saysan error "hibernate.cfg.xml' cannot be found.

Where these xml files to be placed.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 16, 2005 5:24 pm 
Regular
Regular

Joined: Thu Apr 21, 2005 9:05 am
Posts: 50
Location: Boston, U.S
To keep it simple for learning, keep all your configuration files
along with your class files (i.e. your classpath)

This will definetly work. Later on once you master the basics you
may organize your configuration files into different folders.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 16, 2005 5:40 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://www.hibernate.org/Documentation/GettingStarted


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.