-->
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: Ternary association logic problem
PostPosted: Wed Sep 15, 2004 11:01 am 
Regular
Regular

Joined: Tue Jan 27, 2004 12:22 pm
Posts: 103
Hello,

I have this relation that gives me headaches, I don't know how to map it to hibernate.
I have three first-rank classes; User, Element and Parameter.
An user has multiple elements and the user has multiple parameters per element.
The relation looks like this: UserPerElementPerParameter(userid,elementid,parameterid).
I tried a composite-element with an Element instance and one Parameter instance but then I get one compostie instance per element-parameter entry. What I want is a composite-element with an Element instance and a List of parameter instances.
Thanks in advance.

_________________
Dencel
- The sun has never seen a shadow -


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 15, 2004 7:38 pm 
Pro
Pro

Joined: Tue Aug 26, 2003 8:07 pm
Posts: 229
Location: Brisbane, Australia
This topic might be helpful:
http://forum.hibernate.org/viewtopic.php?t=933592

_________________
Cheers,
Shorn.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 16, 2004 3:06 am 
Regular
Regular

Joined: Tue Jan 27, 2004 12:22 pm
Posts: 103
This is not a solution to my problem. I think I didn't describe it correctly.
This is what I want:
Code:

A - AB - B
        \ - AB(PK) C  -  C



So, A has a set/list of a composite entity which contains B and a Set/List of C. <composite-element> can's contain a <set> / <list> declaration so I wonder how I should do this.

Thanks for helping.

_________________
Dencel
- The sun has never seen a shadow -


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.