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: One class and hbm used for different tables with the same st
PostPosted: Fri Sep 21, 2007 11:30 am 
Newbie

Joined: Fri Aug 24, 2007 10:11 am
Posts: 5
Hibernate version: 1.2.0.3001

Name and version of the database you are using:
10g Enterprise Edition Release 10.2.0.1.0

Hi,

I have an Order class (a hierarchy of subclasses) and a corresponding hbm FILE that describes the mapping for this class (and related subclasses).

I have an archive db and I trasnfer the orders that are closed every month in the corresponding monthly archive table ORDER_YYYYMM.
ORDER_YYYYMM tables have exactly the same structure as the original ORDER table.
These archive records are no longer modified (= readonly/immutable)

Now I want to reuse the Order class and hbm when loading archive Order entities.

Lets say I know I will load Orders for 200707. Is there any way to notify NHibernate to load data from ORDER_200707 instead from ORDER table.

Working with archive tables with the same structure as the original one is a common scenario, so I suppose that any solution exists.


Thanks in advance


Top
 Profile  
 
 Post subject: Re: One class and hbm used for different tables with the same st
PostPosted: Sun Nov 15, 2009 5:24 am 
Newbie

Joined: Fri Aug 24, 2007 10:11 am
Posts: 5
Hi,

Still no one has answered on my post?

I already use nHibernate 2.0.1 and still looking forward this funtionality.


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.