Nhibernate one-to-one mapping a class with itself?

You could use the many-to-one element: Note that you need a column in your table to define the relation.

This is correct. I just wanted to add that the reason it doesn't compile is that you can't specify domain classes in a 'type' attribute; you have to use one of the elements that support the 'class' attribute (like many-to-one). – Stuart Childs Mar 12 '09 at 20:00 @darin - Ahh, thanks for the info, this solution worked!

@Stuart - helpful tip, thank you! We were getting a lot of errors that it couldn't find the type with the original mapping – Jeffrey Cameron Mar 12 '09 at 20:46.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions