Hi
I have an entity:
public class Message:Entity
{
public virtual IList<
Message> ReplayMessages { set; get; }
public virtual Message ParentMessage { set; get; }
}
I try to override the mapping: mapping.HasMany(x => x.ReplayMessages) .AsSet() .KeyColumnNames.Add("ParentId");
but in the hbm.xml file I get:
<
set name="ReplayMessages">
<
key column="MessageFk" />
<
one-to-many class="Edi.Core.Model.Message, Edi.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
<
/set>
Why the column key name didn't change?