-->
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 Mar 26, 2008 10:57 am 
Newbie

Joined: Tue Jan 22, 2008 9:53 am
Posts: 18
Hey ppl,

have anybody faced a problem like this:

I have a data structure where i have a new table each day. So my data is spreading in many structurally identical tables. How can i map or make my query in this kind of data structure using hibernate ?

thanks in advance for any information


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 26, 2008 1:06 pm 
Newbie

Joined: Thu May 17, 2007 9:49 am
Posts: 9
I think it depends if you want to have mapped one table or all tables. You can do it by managing mappings(with one class) or by combining changes in mappings with building new classes(I don't think there is good solution for this in hibernate, maybe using dynamic-class, but it is new developed feature). You would need to build new SessionFactory and Sessions. On this page you should find more clues http://www.hibernate.org/171.html
Btw - I am not database developer, but building new daily tables seems to be really bad database design...


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.