When modelling a self-referencing relationship in ED for Nhibernate (as 1-many), the hbm file is generated with not-null="true" option for the 1 part of the relationship.
This, of course, does not work as the top level element would not have a parent.
Is there a property that I can set on End1 generated property of the relationship to force not-null=false.
Example:
NHibernate - self-referencing relationship
Setting the Not Null attribute of the column to False in the Columns mapping section of Association Editor produces the following entry in *.hbml:
Is that what you mean?
Code: Select all