-->
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: Hibernate connection with multiple db having same table name
PostPosted: Wed Sep 30, 2015 1:25 pm 
Newbie

Joined: Wed Sep 30, 2015 1:14 pm
Posts: 1
Hi,

i am using hibernate with JPA, we have multiple dbs and all the dbs are having same set of tables.

Ex db1 is having table1
ex db2 is having table1

when a particular user log in to our application based on some information we show that user data from only one db. now problem is that to me it looking like for table1 i will need to create 2 entities class each for one entitymanager.

if we go by above approach it will be very tough for us to manage as we are having 15 dbs and each db is having around 20 tables.

Can you please suggest some solution to this problem.

Many thanks,
Pankaj


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.