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.  [ 2 posts ] 
Author Message
 Post subject: Dynamic table mapping
PostPosted: Wed Jan 30, 2008 3:37 pm 
Newbie

Joined: Tue Jan 08, 2008 7:44 pm
Posts: 3
I need some help to determine whether what I am attempting is even possible with NHibernate. I have searched this forum, and the documentation and I haven't been able to find any information.

I work for a retail company, and we have a table listing all of our store locations. In each stores' row there is a column that has the name of the appropriate inventory table associated with that store. This means that I have several inventory tables (one per store) with the exact same structure. Can I use the same class for all inventory tables, selecting on runtime what table I want to access based on the store inventory that needs to be accessed. Since NHibernate typically maps one class to one table is what I am trying to do possible with NHibernate? Is there a better way?

Thank you for your help.

_________________
Life is toilet. As soon as you get caught up, someone flushes you again.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 31, 2008 9:40 am 
Regular
Regular

Joined: Tue Dec 25, 2007 3:41 pm
Posts: 57
Location: Argentina
I'll never try, but you could see if this it's ported to NHibernate.
http://www.infoq.com/articles/hibernate-custom-fields

Best regards

_________________
Dario Quintana


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

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.