Nhibernate : mapping to column other than primary key?

Ah, I see. Thanks again :) – frosty May 15 '10 at 12:09 thanks! That helped me a lot!

I noticed a property-ref attribute was required and on my many-to-one class on the child relationship. But this was causing a select N+1 problem – Vasile Bujac Feb 9 at 15:22.

I would have a Basket entity, which contains the order items. Your order then refers to this basket, and the basket contains the items. The explicit basketID in Order is circumventing some of the ORM that hibernate does.

I've inherited this db structure which is a mess. Ideally I would change it like you said, but i'm not really sure how this would the rest of the app, kinda caught in no mans land, – frosty May 15 '10 at 11:08.

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