aspose file tools*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: new to hibernate