-->
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 to put hibernate.cfg.xml and hibernate.properties
PostPosted: Fri Jun 17, 2005 5:15 am 
Newbie

Joined: Fri Jun 17, 2005 3:59 am
Posts: 4
Hi All,

I put hibernate.cfg.xml and hibernate.properties file along with my package files(source files). but still it is showing the error unable to find these files.

Again I tried with putting these files along with all .JAR files but still it is not working.
Please suggest me where is the proper location to put these files.

Thankx In advance
Anshu
Germany

_________________
Anshu Bansal


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 17, 2005 5:20 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Stop posting, start reading here and follow the instructions step by step: http://www.hibernate.org/152.html


Top
 Profile  
 
 Post subject: place all xmls in application's classpath
PostPosted: Fri Jun 17, 2005 5:24 am 
Newbie

Joined: Wed Jun 08, 2005 3:15 am
Posts: 5
Hi



To get start with Hibernate you place all your xml files in your application's classpath. And to configure hibenate to your application., you can have either of two files (hibernate.cfg.xml or hibernate.properties).
You can have two files in your application.,but hibernate.properties file has more prioprity the hibernate.cfg.xml file.


so even if u have those two files.,your application will be configured with the porperties that are in hibernate.properties file.


---Vijay


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.