-->
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.  [ 5 posts ] 
Author Message
 Post subject: Simple question
PostPosted: Sun Nov 11, 2007 12:51 am 
Newbie

Joined: Sat Nov 10, 2007 7:19 pm
Posts: 10
Hi all,

I'm new to hibernate, and I was wondering about this probalby stupid/simple question.

Is it possible to utilize several tables to describe one class?
The examples I've seen so far all refer to an object class that seems to be unique?

Thanks


Top
 Profile  
 
 Post subject: Re: Simple question
PostPosted: Sun Nov 11, 2007 5:04 am 
Newbie

Joined: Mon Nov 05, 2007 4:05 am
Posts: 4
bumhova wrote:
I'm new to hibernate, and I was wondering about this probalby stupid/simple question.

Is it possible to utilize several tables to describe one class?
The examples I've seen so far all refer to an object class that seems to be unique?


Yes, you can map multiple tables to a single class


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 11, 2007 12:26 pm 
Newbie

Joined: Sat Nov 10, 2007 7:19 pm
Posts: 10
oh yeah, I figured that, but can you provide a mapping example?

I can't seem to find any, and I'm sure my mental paradigm of it is wrong.

Thanks again.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 11, 2007 2:41 pm 
Expert
Expert

Joined: Thu Jul 05, 2007 9:38 am
Posts: 287
At least with annotations it's called secondary table.

If you don't find an example in the reference documentation you'll probably find one in the svn repository


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 11, 2007 4:23 pm 
Newbie

Joined: Sat Nov 10, 2007 7:19 pm
Posts: 10
Thank you for the replies.

I've actually got it working after rereading the documentaiton for the 3rd time. I was just somewhat frustrated.


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