-->
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: Passing Database Username/Password On the Fly
PostPosted: Thu Mar 11, 2004 5:28 am 
Newbie

Joined: Tue Feb 10, 2004 11:15 pm
Posts: 7
Dear All,

For all this time (not long .. anyway), I pass the Database password and usename in the hibernate properties/configuration file.

My Question is, how can I set the Database password and usename from a method or class constructor. By doing this I am able to make the program requesting a password and usename interactively rather than let the password available for everyone to look at (when founding the properties/configuration file).

Thank you very much.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 12, 2004 2:09 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
1. Use a UserConnection
2. or build the appropriate configuration file after getting the user password.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 15, 2004 11:17 pm 
Newbie

Joined: Tue Feb 10, 2004 11:15 pm
Posts: 7
OK .. Many thanks to you ...


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.