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.
|