-->
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: how to create multiple tables for one entity via hibernate
PostPosted: Thu Aug 07, 2008 6:33 am 
Newbie

Joined: Mon Aug 04, 2008 9:48 am
Posts: 3
I have an Entity lets say Person. hbm2dll will create table for me. How can I tell hibernate to create not just one table but several using only one persistent class Person.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 07, 2008 6:42 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
You can map a single class to multiple tables. Read this documentation for information about how to do it:

http://www.hibernate.org/hib_docs/v3/re ... entityname


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.