-->
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: hibernate.properties
PostPosted: Tue Dec 16, 2008 5:04 am 
Newbie

Joined: Mon Dec 15, 2008 3:57 am
Posts: 11
In my requirement i have to read hibernate.properties from external loaction (i.e. not in class path), in that case how do i read the external
hibernate.properties for creating Hibernate Session Factory


Top
 Profile  
 
 Post subject: Re: hibernate.properties
PostPosted: Tue Dec 16, 2008 5:09 am 
Senior
Senior

Joined: Wed Sep 19, 2007 9:31 pm
Posts: 191
Location: Khuntien (Indonesia)
pvmk wrote:
In my requirement i have to read hibernate.properties from external loaction (i.e. not in class path), in that case how do i read the external
hibernate.properties for creating Hibernate Session Factory



You can load the hibernate.properties by using java.util.Properties. After that, just call setProperties(Properties) in org.hibernate.cfg.Configuration


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 16, 2008 5:39 am 
Newbie

Joined: Mon Dec 15, 2008 3:57 am
Posts: 11
Thanks for your support, it worked fine


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.