-->
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 table to persist into
PostPosted: Mon Dec 05, 2005 2:35 pm 
Newbie

Joined: Mon Dec 05, 2005 2:19 pm
Posts: 1
Can the table for which an object is stored be changed dynamically at run time?

I'm adding persistence to an existing project and I'm concerned about the following: I have a 'project' object which contains a collection (from a few dozen to a few hundred) of an 'item' object. When I generate the mapping file for the 'item' object it specifies a table name. If all 'item' objects (for all 'project' objects) are stored to the same table, then over time -years- that table could grow huge and selects would grow slower. Since my application can only have one 'project' open at a time is there some way to override the table in the item.hbm.xml file so that all 'item' objects go to a table with a 'project' specific name (like ITEMS_IN_PROJECT__PROJECTNAME)?

thanks much


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.