NHibernate mapping bag with keys from property of a property
<p>I have the following structure:</p>

<pre><code>public class Version
{
    public Status Status;
}

public class Status
{
    Action Action;
    Area Area;

    public IList&lt;Version&gt; Versions
}

public class Action
{
    public int Id;
}

public class Area
{
    public int Id;
}
</code></pre>

<p>And I would like to map the List of versions with a bag, but I might be mapping it the wrong way.
Here is the parte of the Status.hbm.xml file that maps the list:</p>

<pre><code>&lt;bag name="Versions" cascade="save-update" inverse="true" lazy="true" generic="true" order-by="num_version desc"&gt;
  &lt;key&gt;
    &lt;column name="id_action"&gt;&lt;/column&gt;
    &lt;column name="id_area"&gt;&lt;/column&gt;
  &lt;/key&gt;
  &lt;one-to-many class="Version" /&gt;
&lt;/bag&gt;
</code></pre>

<p><code>id_action</code> and <code>id_area</code> are foreign keys from <code>Status</code>, which is a property of <code>Version</code>. Do I need to reference <code>Status</code> on this bag mapping?
How am I supposed to map this case?</p>

<p>Thank you</p>