-->
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: Need a collection within a composite element
PostPosted: Thu Feb 24, 2011 4:26 pm 
Newbie

Joined: Fri Feb 04, 2011 9:49 pm
Posts: 11
I have a table setup such that I need:

entity -> bag -> composite-element -> set

The documentation very blandly states that you can't put a collection inside of a composite-element, but does not say what to do about it. I just need to store an array of simple values, I'm not trying to do anything that complicated!

My join table is something like:

PARENT_CHILD_VALUES
-----------------------
PARENT_ID
CHILD_ID
VALUE

Where all three columns are part of the primary key, and Child is another entity. So basically, this is my parent to child join table, but it may contain multiple values, so PARENT_ID/CHILD_ID can repeat. I'm able to do this with 1 value per PARENT/CHILD, but not with multiple.

It seems to me that if I declare this as an intermediate entity, that I would have the same mapping issue. But I'd rather not define it as standalone, since this is the only place the combination exists.


Top
 Profile  
 
 Post subject: Re: Need a collection within a composite element
PostPosted: Sun Mar 06, 2011 3:24 pm 
Newbie

Joined: Fri Feb 04, 2011 9:49 pm
Posts: 11
Well, it's been a month. Is this a dead forum, we shouldn't post new questions?


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.