Just answered here
Diego Mijelshon
2010-04-27 14:24:57
Try this:
public class Person {
public virtual int Id { get; set; }
public virtual string FirstName { get; set; }
public virtual IList<PersonAddress> PersonAddress { get; set; }
... }
public class PersonAddress {
public virtual int Id { get; set; }
public virtual Person Person { get; set; }
... }
You should have a reference to the Person, and not just a PersonId. And if you have difficulties with the .hbm.xml mapping files, consider using Fluent NHibernate instead. Its automatic mapping feature works like a charm.
There is also a video series on NHibernate, which covers the subject pretty well.