Code:
<class name="Calls" table="Calls" >
<id name="CallID" column="CallID" type="Int32" unsaved-value="0">
<generator class="identity" />
</id>
<properties name="Calls_l_ref">
<property name="Location" column="Location" type="String" length="25" />
<property name="CustID" column="CustID" type="Int32" length="4" />
<property name="Library" column="Library" type="String" length="50" />
</properties>
...
<bag name="Locations" >
<key property-ref="Calls_l_ref">
<column name="Library"/>
<column name="Location"/>
<column name="CustID"/>
</key>
<one-to-many class="Calls_l"/>
</bag>
</class>
Class B
<class name="Calls_l" table="Calls_l" >
<composite-id>
<key-property name="CustID" column="CustID" type="Int32" length="4" />
<key-property name="Location" column="Location" type="String" length="25" />
<key-property name="Library" column="Library" type="String" length="50" />
</composite-id>
...
</class>