It is not valid to have a relationship by only part of a PK. This is not an NHibernate restriction but a relational db requirement.
If you need to use only part of a PK, they you need to decompose your tables further. Either your DB design is wrong or your Object Model is wrong. John Davidson On Sat, Jun 25, 2011 at 5:43 AM, Leonid Krogliak <[email protected]>wrote: > > It doesn't solve the problem . > The problem is relationship by part of PK. > > > On Jun 24, 11:38 pm, John Davidson <[email protected]> wrote: > > If you absolutely must use a composite key then the link below will help > you > > > > http://nhforge.org/blogs/nhibernate/archive/2010/07/01/nhibernate-and... > > > > John Davidson > > > > On Fri, Jun 24, 2011 at 12:43 PM, Leonid Krogliak <[email protected] > >wrote: > > > > > > > > > > > > > > > > > anyone??? > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "nhusers" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group at > > >http://groups.google.com/group/nhusers?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
