Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

new to hibernate

 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

can hibernate connect to different dbs in the same time

Yes. Each database will require its own SessionFactory however.
 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, not really.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic