I have an class with an IDictionary on it.
<map name="CodedExamples" table="tOwnedCodedExample">
<key>
<column name="OwnerClassID"/>
</key>
<index type="string" column="ExampleCode"/>
<many-to-many class="CodedExample" column ="CodedExampleClassID"/>
</map>
as you can see it uses a many-to-many to get the CodedExamples from their table using the tOwnedCodedExample table to find which are owned by the OwnerClass.
I realise that this is a very basic (and hopefully standard) mapping but am struggling and can't find any documentation for it, therefore would be very grateful of any help possible.
Many Thanks
Stu
I have a working example, this should make it clear to you.
Classes:
And then the map:
Resulting xml:
Generated SQL:
Map the
book.name
as the key instead of the nickname.