NHibernate: Mapping a join on a joined table?

Didn't try this, but maybe you can define a property on your second join an use a property-ref for key column in your third join.

I tried this but property-ref seems to have no effect on the query whatsoever... – isNaN Jul 28 at 11:39.

In NH you can't join in a join. The only way is to make it a reference, which does basicly the same thing class MyClass { public virtual MyClass2 MyClass2 { get; set; } public virtual int MyClass2_MyProperty { get { return MyClass2. MyProperty; } set { MyClass2.

MyProperty = value; } } } class MyClass2 { public virtual int MyProperty { get; set; } } Edit Option 2: if you don't want MyClass2 Maybe you can tweak this.

Thank you I will try this. But must I have a seperate class for the joined table? I can't just map to properties from my existing class?

– isNaN Jul 28 at 11:41 I did not get it to work with the same class (i don't know if I fully understand your example) but now it works fine in a subclass and that is good enough. Thanks! – isNaN Aug 8 at 9:55.

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