title: many-to-one mapping with composite key in nhibernate
body: <p>I have following nhibernate mapping , I want to save composite key values into separate column in other entity TimesheetCellTransactionLine with one to one mapping. any ideas ? following doesnt save the values passes null in both foreign key column.</p>
  
  <pre><code>&lt;hibernate-mapping
      xmlns="urn:nhibernate-mapping-2.2"
      assembly="ManpowerUK.Indigo.Domain"
      namespace="ManpowerUK.Indigo.Domain.Timesheets"&gt;
      &lt;class name="CMSTimesheetCell" lazy="false" table="vw_TimesheetCell" mutable="false"&gt;
          &lt;composite-id &gt;
              &lt;key-property name="TimesheetCellId"/&gt;
              &lt;key-property name="TimesheetCellVersion" column="Version"/&gt;
          &lt;/composite-id&gt;
          &lt;property name="TimesheetId" not-null="true" /&gt;
          &lt;property name="IsRemoved" /&gt;
      &lt;/class&gt;
  &lt;/hibernate-mapping&gt;
  
  
  &lt;hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="ManpowerUK.Indigo.Domain" namespace="ManpowerUK.Indigo.Domain"&gt;
    &lt;class name="TimesheetCellTransactionLine" lazy="false"&gt;
        &lt;id column="TransactionLineId"/&gt;
        &lt;many-to-one name="Timesheet" class="ManpowerUK.Indigo.Domain.Timesheets.TimesheetCellWrite" column="TimesheetId" not-null="true" lazy="proxy"/&gt;
        &lt;many-to-one name="CMSTimesheetCell" class="ManpowerUK.Indigo.Domain.Timesheets.CMSTimesheetCell" not-null="true" lazy="proxy" cascade="none"&gt;
          &lt;column name="TimesheetCellId"/&gt;
          &lt;column name="TimesheetCellVersion"/&gt;
        &lt;/many-to-one&gt;
    &lt;/class&gt;
  &lt;/hibernate-mapping&gt;
  </code></pre>