This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Hibernate" Watch "Hibernate" New topic
Author

Hibernate

Dagadu Akambe
Greenhorn

Joined: Sep 04, 2008
Posts: 1
Hi, all
I am new to Hibernate and I am using Struts and Hibernate..
My Problem is such that .. I want to switch databases dynamically.
In Short.. suppose there are two customers A and B when a logins I want to load "AAA" database and when B login i want to load his own database like.."BBB". please help me if any one know.....

Thanks in Advance.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi there and welcome to javaranch,

Firstly just as an admin matter, you'll need to change your screen name as it is Javaranch policy to show real first and last names.

I'd first like to ask why each user needs their own database? If you had 500 users for example I think you can see my concern.


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
GeeCON Prague 2014
 
subject: Hibernate