Ashcrow wrote:
'tit up, en faite pour avoir un set dans une classe fille en utilisant un mapping du style <subclass><join></join></subclass> et bien il suffit de déclarer son set en dehors du tag <join> comme suit:
Code:
<subclass>
<set>
<key/>
<machin-to-many>
</set>
<join>
<key/>
</join>
</subclass>
For the english speakers in the audience (I found this via google and it seems to be the only solution to the problem in google)...
When using a join subclass, one-to-many relations don't actually require changes to the schema on the one side, since the id of the one side is added to the many side of the relation. As such, the
Code:
<join>
tag will not even accept the various collection tags (bag, set, list, etc) as children. Instead, any property which isn't reflected in the schema of the subclass should be defined within the subclass element, but outside the join element. Additionally, it turns out that the join element must come
after the properties defined outside of the join element.