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.  [ 3 posts ] 
Author Message
 Post subject: Managing two Databases with Hib. Synchronizer
PostPosted: Fri Nov 19, 2004 5:51 am 
Newbie

Joined: Thu Sep 30, 2004 6:00 am
Posts: 13
Hibernate version: 2.1.6

Name and version of the database you are using: MySQL


Hello,

I'm using the Hibernate Synchronizer Eclipse plugin.
A _RootDAO initializes my db connection.

Do you know if it's possible to access tables that are stored in two different databases?
I don't know how to configure my hibernate.cfg.xml file with two databases.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 19, 2004 9:15 am 
Newbie

Joined: Mon Nov 15, 2004 12:27 pm
Posts: 4
Location: Aschaffenburg, Germany
I managed 2 Databases with 2 hibernate.cfg.xml files.

a.b.c.d._BaseRootDAO.initialize("/datagbase1.cfg.xml");
d.e.f.g._BaseRootDAO.initialize("/database2.cfg.xml");


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 19, 2004 9:49 am 
Newbie

Joined: Thu Sep 30, 2004 6:00 am
Posts: 13
Thank you for your answer!

So I just have to declare two different packages and two different cfg.xml files.
It looks simpler than I thought.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

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.