|
Hello,
I have classes with a composite key, consisting of 2 fields (Id and Revision).
<composite-id>
<key-property name="Id" column="Id" type="Int64" />
<key-property name="Revision" column="Revision" type="Int64"/>
</composite-id>
I would like to have a one-to-many association. In normal cases, the foreign key would have 2 fields as well (i.e. refId, refRevision), but in my case, I would like to link only regarding the Id field.
In a one-to-many association, is there a way to specifiy which field(s) should be uses instead of the primary key ?
Thanks in advance
Best regards
Phil
|