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: Map POJO to multiple tables
PostPosted: Thu Sep 04, 2008 12:51 pm 
Newbie

Joined: Thu Sep 04, 2008 12:45 pm
Posts: 2
I have the situation where I need to map an object to history tables in a database that has the name in the form of History_Year_Month.

This table gets generated every month, and depending on when messages are closed, the message needs to get put in the table matching the message closure month and year.

Is the possible?
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 04, 2008 2:37 pm 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
It should be possible. There is a short text about how to map your class at: http://www.hibernate.org/hib_docs/v3/re ... entityname

And here is another post: http://forum.hibernate.org/viewtopic.php?t=989341


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 04, 2008 4:03 pm 
Newbie

Joined: Thu Sep 04, 2008 12:45 pm
Posts: 2
Thanks nordborg. That should help.


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.