• Post Reply Bookmark Topic Watch Topic
  • New Topic

Modified HibernateUtils from CaveatEmptor to support multiple databases

 
Junilu Lacar
Marshal
Posts: 10411
125
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm about to (try to) adapt the HibernateUtil class from the CaveatEmptor example so that it supports loading of multiple configurations. Does anybody know if this has already been done and if so, can I get it and how?

TIA!
 
Junilu Lacar
Marshal
Posts: 10411
125
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My initial attempts were kludgy at best and hard-wired the class to my configuration files. Has anybody seen a clean way to make HibernateUtil support multiple configurations/sessionFactories or should I try to go about it some other way? Any suggestions? TIA.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!