-->
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: Changing Catalog in Runtime
PostPosted: Thu Jan 31, 2013 4:53 pm 
Newbie

Joined: Thu Jan 31, 2013 4:14 pm
Posts: 1
Dear All;

I am newbie user for hibernate. I want to make sample mrp projects with Java,Hibernate and GWT. My projects runing with multiple database. I have a master database. The role of Master database is holding with common data (User,Authentication and other database config[server,dbname]).Other database creates by users and uses. The structure of other databases is same.

1- I want to make join query and mapping between master database and other database.
For example

SELECT * FROM master.locale ml INNER JOIN userdatabase.address ua (ml.country=ua.country);

2- I want to change dynamically the name of catalog in runtime
For example

Step-1 : User login to application.
Step-2 : User going to select a database to work.
Step-3 : Catalog name of my mapping is going to change according to selected database in runtime.

Best regards


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.