-->
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.  [ 2 posts ] 
Author Message
 Post subject: Obtaining a new Connection Programmatically
PostPosted: Thu Apr 12, 2007 12:20 pm 
Newbie

Joined: Thu Mar 08, 2007 10:44 pm
Posts: 5
Hibernate version: 3

Hi,

I'd like to verify that a user can log into the Oracle database before they can use the application. I would like to use their Oracle user name and password for the verification. In VB, I would write something like:

Code:
ConnectString = "Server=" & m_dataSource & ";uid=" & m_userid & ";pwd=" & m_password
conn = New OracleClient.OracleConnection(ConnectString)


However, since hibernate handles the connections for (very nicely) I am not sure how I can verify if a user has a access to the Oracle database.

Does hibernate provide a way to connect programatically? How so?
If not, does it provide a way to dynamically change the user parameters programatically? How so?


Thank you,

Marc


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 1:37 pm 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
This is the forum for Hibernate Tools, you are better off posting your question on the main forum.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.