Sorry but that's not supported. We support composite-ids that are built up from properties in the same entity, but not from a component; if you need this functionality, I'm afraid you're out of luck. Either raise an issue, or even better provide us with a patch. However, I would wholeheartedly recommend you do not use composite-ids, always use surrogate keys if at all possible.
On Fri, Mar 13, 2009 at 9:55 PM, epitka <exptrade2...@yahoo.com> wrote: > > I need something like this > > UseCompositeId().WithKeyProperty(x => x.Id.ClientID).WithKeyProperty > (x => x.Id.EffectiveDate) > .SetAttribute("class", > "ClientAccountTypeCompositeID"); > > but it throws > > {"The method or operation is not implemented."} > > > > On Mar 13, 1:20 pm, James Gregory <jagregory....@gmail.com> wrote: > > Try: > > > > UseCompositeId() .WithKeyProperty("xxx") > > .WithKeyProperty("yyy"); > > > > On Fri, Mar 13, 2009 at 6:14 PM, epitka <exptrade2...@yahoo.com> wrote: > > > > > This is what I meant. > > >http://nhforge.org/doc/nh/en/index.html#components-compositeid > > > > > On Mar 13, 9:45 am, James Gregory <jagregory....@gmail.com> wrote: > > > > As far as I'm aware components don't have IDs. Please clarify what > you > > > want > > > > to do.http://www.nhforge.org/doc/nh/en/#components > > > > > > On Fri, Mar 13, 2009 at 2:32 PM, epitka <exptrade2...@yahoo.com> > wrote: > > > > > > > How do we map composite Id on components with fluent Nhibernate? Is > it > > > > > possible? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---