Yes use the property-ref attribute on your many to many node in the
mapping file:
<many-to-many class="(...)" property-ref="ColumnName">

On Jun 17, 9:11 am, Sly <[email protected]> wrote:
> Is there any way to map associations not on primary key column but on
> specific?
>
> I have a user and service entities. user has a list of services. The
> problem is that this association is not made by primary key. Is there
> any way to say to NHibernate that when it joins a many-to-many
> relation it used specific column from user table?

-- 
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.

Reply via email to