-->
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: Switching class schema dynamically
PostPosted: Thu May 01, 2008 4:42 am 
Newbie

Joined: Mon Jul 18, 2005 7:45 am
Posts: 16
We have converted an existing login system to use NHibernate but have hit a problem:

It turns out that there are 2 versions of an application using this code in production using 2 different versions of the security database. This is acheived by having 2 copies of the database with different names. Previously there was a security database specific connection string, so this could be adjusted on a app by app basis. Now however, we are using the schema attribute in the security specific mapping files to specify the database name.

Unfortunately we have already used the default_schema attribute in the app config file to point to another content database.

So the question is, does anybody know of a way to switch the schema for a particular group of class mappings at runtime? Or any other way we could address this?


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.