-->
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.  [ 4 posts ] 
Author Message
 Post subject: two tables, one class ?
PostPosted: Tue Sep 23, 2003 3:14 am 
Newbie

Joined: Tue Sep 16, 2003 4:59 am
Posts: 10
Hello,

I was wandering if it is possible to map two tables to one java class and where to get sample or info to do that.

thx in advance


Top
 Profile  
 
 Post subject: Joined-subclass
PostPosted: Tue Sep 23, 2003 10:50 am 
Regular
Regular

Joined: Tue Sep 09, 2003 9:37 pm
Posts: 56
Location: Ogden, Utah, USA
You can map two tables to one object by using a joined subclass, but this means you have a parent class mapping to one table and a subclass which extends the parent class and adds the data from the second table. Will that work for you?

Jenica


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 30, 2004 5:46 am 
Newbie

Joined: Wed Feb 25, 2004 10:57 am
Posts: 2
Is there any more info or examples on that?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 31, 2004 9:45 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
The reference guide, and lost of external tutorials will help.

_________________
Emmanuel


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