-->
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: Configuration to access different schemata
PostPosted: Mon Apr 03, 2006 4:04 am 
Beginner
Beginner

Joined: Tue Mar 28, 2006 3:44 am
Posts: 22
NHibernate version: 1.0.2

Hi all :)

To separate data I have to create a couple of schemata with the same table structure. Just a bunch of copies of the original schema.
Now the question is what's the best practise to configure such an application?
Do I need to define a complete new configuration file for each schema? Like illustrated here...
Code:
ISessionFactory sessionF1 = new Configuration()
.Configure("/home/schema1.cfg.xml")
.BuildSessionFactory();

ISessionFactory sessionF2 = new Configuration()
.Configure("/home/schema2.cfg.xml")
.BuildSessionFactory();

Or is there another - maybe shorter - way?

Many thanks in advance!
Chavez


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.