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
|