This discussion is archived
0 Replies Latest reply: Jul 19, 2010 9:22 AM by 807574 RSS

Multiple Database configurations with Hibernate and caching

807574 Newbie
Currently Being Moderated
Hi,
I am building an webservice app which has 2 different DBs( Oracle and DB2). Please let me know whats the best way of designing the hibernate layer to access both the DBs ; I have some cross reference tables in both of them.

I am planning to create a logical model of the physical DB model ( combining both Oracle and DB2) and use property files or some configuration to map my logical to the actual physical table. What would be the best design for this? Do you recommend caching these conversion values?

Please let me know the best practice / way to work on my above situation.

fyi - I am neither a novice nor an expert in J2EE.