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.  [ 3 posts ] 
Author Message
 Post subject: dynamicly change an entity's refrence to a table
PostPosted: Sat Jun 16, 2007 3:33 pm 
Beginner
Beginner

Joined: Fri Jun 15, 2007 6:32 am
Posts: 23
hi ,

i have a very large DB that holds complete life cycles with intraday data in 1 minute intervals of stock options , now all the tables are the same (same columns , same column names) but each of them is named with the paper's id and i have one java class that i want to change it's table's reference according to what i choose i want to see is that possible ?

allso maybe u guys know how more efficient (if at all) is it to keep data like that and not in one huge table (of cours i will have to use paperId+DateTime as PK as appose to just DateTime)
thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 17, 2007 12:55 pm 
Beginner
Beginner

Joined: Fri Jun 15, 2007 6:32 am
Posts: 23
guys it's realy important to me , i'm aware of @Secondarytable but i have something in the area of 1000 tables and each month 20 more added so it's not practical .


Top
 Profile  
 
 Post subject: Re:
PostPosted: Sun Jun 17, 2007 4:29 pm 
Senior
Senior

Joined: Tue Jun 12, 2007 4:49 pm
Posts: 127
Location: India
Hi,

All these records are going to be a referenced as a collection in your paper class may be ?

If thats the case try using a stored procedure to load these, it can be referenced using "loader" tag inside set tag in hibernate.

Regards,
Jitendra


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.