Ok thanks Jan I will look at how this can be done and try to get back to
you.

2008/9/29 Jan Limpens <[EMAIL PROTECTED]>

>
> Hi Paul,
>
> > On 29 сент, 14:03, "Paul Batum" <[EMAIL PROTECTED]> wrote:
> > > If you can provide example hbm files or fragments, it will make
> > > things much easier.
>
> I am without access to my code right now, but if am not mistaken I
> have an element key
>
>        <set name="Orders" inverse="true" lazy="true">
>            <key column="customer_id" foreign-key="xyz"/>
>            <one-to-many class="Order"/>
>        </set>
>
> inside the many-to-one mapping.
>
> On Sep 29, 7:26 am, ZeusTheTrueGod <[EMAIL PROTECTED]> wrote:
> > "foreign-key" is attribute which allows to set a name for foreign key
> > constraint
> @Zeus: I tried SetAttribute("foreign-key", "foo"), but got a nh
> mapping error. I think this attribute is not allowed directly on many-
> to-one (because sometimes nh does not seem too picky in that respect).
>
> I am just thinking, how great it would be when we can define named
> queries by nh.linq and map them fluently. On that note, is there a
> nhfi branch that targets nh2.1 (trunk)?
>
> jan
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to