-->
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: One XML Mapping for 2 Databases?
PostPosted: Tue Jan 11, 2005 5:22 pm 
Senior
Senior

Joined: Tue Jan 11, 2005 5:03 pm
Posts: 137
Location: Montreal, Quebec
Hi,

I have search the forum for this topic but I havent found any data on it.

I would like to know if there is a way to have have a "unique" Hibernate persistence layer on 2 different databases. The "2 databases" requirement is important because we are planning to integrate the hibernate 3.0 layer on legacy systems.

Lets say you have a Sybase database on one side having 50 tables and on the other side a Oracle database with 50 tables. There's some "logical" relations between theses 2 databases: some foreign keys on some Sybase tables is "loosely linked" to the primary key on some of the Oracle tables. So theorically you could build a "many-to-one" relationship from one database to the other.

I guess that the best way to do it would be to "configure" in the xml mapping file the actual database implementation of all Hibernate VOs.

In other words, I would like to know if I could linked theses two databases (2 hibernate.cfg.xml probably?) by only one "mapping strategy", only one set of "mappings.hbm.xmls". That way I could isolate the persistence strategy (domain model or Hibernate VO) from the multi-databases.

Thanks For answering!

Etienne
Montreal


Top
 Profile  
 
 Post subject: found lots of answer...
PostPosted: Tue Jan 11, 2005 5:47 pm 
Senior
Senior

Joined: Tue Jan 11, 2005 5:03 pm
Posts: 137
Location: Montreal, Quebec
Hi all,

I just found a lots of answer on the forum on this topic...

Sorry.


Top
 Profile  
 
 Post subject: RE : found lots of answer...
PostPosted: Mon Oct 03, 2005 3:44 pm 
Newbie

Joined: Mon Oct 03, 2005 3:40 pm
Posts: 1
Location: Québec
Can you point the most pertinent ones ? I found a few references on that topics, but perhaps I missed better stuff.

Thanks.

_________________
"If you can't understand it, it is intuitively obvious." - http://www.murphys-laws.com/


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.