-->
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: Mapping help
PostPosted: Thu Oct 14, 2004 7:03 pm 
Regular
Regular

Joined: Thu Jul 29, 2004 11:55 pm
Posts: 75
Hi,


I have this table structure:

C->B->A by foreign keys.

C B A
---- ---- ----
B_id A_id ...

When I load the A object, I want to load all the C's attached to A through B. Is this possible with the current structure? How would I map it?

I could add a many-to-many table to reference A->C->A, but this table doesn't really represent the data.

We are using hibernate 2.1.6.

chuck


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 14, 2004 7:04 pm 
Regular
Regular

Joined: Thu Jul 29, 2004 11:55 pm
Posts: 75
Sorry,

it removed the spaces

C
---
B-id

B
---
A_id

A
---
...

chuck


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.