-->
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.  [ 1 post ] 
Author Message
 Post subject: Prevent use of hibernate.properties
PostPosted: Sun Sep 12, 2004 2:37 am 
Senior
Senior

Joined: Tue Mar 02, 2004 6:17 pm
Posts: 151
Hi,

By default Configuration() reads from hibernate.properties. My code actually reads:

new Configuration().configure("/../hibernate.cfg.xml").buildSessionFactory();

everywhere, but recently I've had a bad hibernate.properties file lieing around and it caused major havoc (problems connecting to the datasource, etc) until I tracked it down. I was under the impression that with the above code hibernate.properties would never get used. Can someone please explain how to:

a) prevent hibernate.properties from ever getting used?
b) why the above code still makes use of it?

Thank you,
Gili


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

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.