-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Catalog option vs one session factory multiple database
PostPosted: Wed Sep 23, 2009 2:16 am 
Newbie

Joined: Sat Sep 12, 2009 6:03 am
Posts: 5
hi
according to the hibernate documentation
use multiple session factory for multiple database
but why you give the option
catalog

Code:
<class name="com.myaplication.pojo.BusinessInformation" table="tablename" catalog="databasename">



in the hibernate hbm file
if i mention different database in the catalog
option the my query is executed in the
different database successfully

can you explain me what are uses of
catalog option in the hibernate hbm file

and what is the demerits of
one session factory for multiple database

here i clear that i m using
one database server
and in one database server , i have multiple database

please help me


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.