*
The moose likes Object Relational Mapping and the fly likes Multiple Schemas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Multiple Schemas" Watch "Multiple Schemas" New topic
Author

Multiple Schemas

jyothsna vamsi
Greenhorn

Joined: Jun 08, 2007
Posts: 2
Hi, i would like to know how to connect to multiple schemas using hibernate.
i have one default schema with session factory. i would like to access diffrent schema without creating another session facotry.

Please post your views.

Thanks

Jyo
Edvins Reisons
Ranch Hand

Joined: Dec 11, 2006
Posts: 364
See the Hibernate SessionFactory configuration reference, especially
"User provided JDBC connection".
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Multiple Schemas