-->
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: Connect to the same DB by different users using JPA
PostPosted: Mon Aug 22, 2011 12:17 pm 
Newbie

Joined: Fri Jun 03, 2011 3:50 am
Posts: 14
Location: Ukraine
Hi, I looked everywhere for solution of my issue but unfortunatelly didn't find it.

Ok, I have hibernate, spring, oracle. I have DB and many users who use this DB. This database is made in the way that users see only allowed to them information.

Each user has its own username/password. I'm trying to build spring based hibernate JPA application which will allow all of these users connect to DB and perform actions (CRUD). In case of only one user it's clear, I'm using

Code:
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" > and
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager" >


but in case of many users they are not good, because I cannot change username/password at runtime.
Maybe it's not correct place where ask this question, maybe Spring forum is the right place, but currently I'm looking for solution how to implement it using hibernate/JPA, after that I'll look how to attach it to spring.

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.