Jumpin'Jack Flash wrote:
I have a "pseudo" foreign key that always keep it's value even when the parent is deleted.
I don't know if it is possible... When loading a child, if the identifier of the <many-to-one> is not null, then NHibernate will try to load it...
How do you know when the value of this "pseudo" foreign key is "valid" (=> linked to a real parent) ? (you trying to load and if it fail, you know it is invalid !?!)
In your database, this "pseudo" foreign key is defined as a classic column; no ? (You will probably end up creating the relation yourself)