This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes new to hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "new to hibernate" Watch "new to hibernate" New topic
Author

new to hibernate

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

Hi all,
i am very new in hibernate , can hibernate connect to different dbs in the same time , i know that we write the db's url , password , driver..etc in hibernate.cfg.xml so can we another tag with another db properties ?


Thanks,
Sherif
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


can hibernate connect to different dbs in the same time

Yes. Each database will require its own SessionFactory however.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

Originally posted by Paul Sturrock:

Yes. Each database will require its own SessionFactory however.

Thanks for your reply , by the way is there a major difference between hibernate 3.2 and 3.3 because i'm using a tutorial for 3.2 and i'm using 3.3
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

No, not really.
 
wood burning stoves
 
subject: new to hibernate
 
Similar Threads
New to Hibernate
How to integrate struts 1.x and Hibernate 3
Design related doubt
struts, hibernate 2.1 and jboss 4.0.0
How to persist an Object