-->
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: Spring & hibernate DB login using user inputs
PostPosted: Tue Nov 10, 2009 3:18 pm 
Newbie

Joined: Tue Nov 10, 2009 1:41 pm
Posts: 2
Hi all,
I got this issue, is there a good way to pass parameters (username/password) to hibernatesessionfactory or how would i approach this.
I'm using Spring - hibernate,
the issue is that each user got different access to db, so on form submit of login page username/password need to pass to hibernate config to hit the db with that instead of a app specific username/password. so login success means that the username/password are valid and hibernate can make the db connection.

HibernateSessionFactory - i set configuration properties with hard code username/password. (work, just can't seem to get username/password from the form submit).

hibernate.cfg.xml - hold all the hbm.xml mapping

thanks


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.