-->
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: Change Tablename in mapping file at runtime?
PostPosted: Mon Mar 31, 2008 11:28 am 
Beginner
Beginner

Joined: Mon Mar 26, 2007 5:47 am
Posts: 22
Hi,

We have this strange accountancy-system in which the same tables are reprocuced for different child-companies. These tables have the same structure, but just a different suffix. For isntance: tblAccounts01, tblAccounts02, tblAccounts03.

I really would like to use NHibernate for this project, but the only way is that I would be able to change at runtime the tablename in the mapping file. Is there a way to do this? And if so: how?

Or any other nice way?
What I basicly want is: only doing selects from these kidn of tables, and being able to select values by different criteria (with the Session.CreateCriteria-clause).

I'm using NHibernate version 1.2.1.



Thanks a lot in advance,


Pieter


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.