Hi all!
In my system I have a Project class and a Volunteer class. Any number of Volunteers can participate in a Project while a Project can have any number of Volunteer participants. I'm using a relation table (T_ProjectsVolunteers) to establish the relation between Projects and Volunteers.
My nhibernate configuration for a Project looks like this (shortened for simplicity)
Code:
   <class name="Project" table="T_Projects">
      <id name="ID" access="property" column="ProjectID" type="Guid">
         <generator class="guid.comb" />
      </id>
      <bag name="Volunteers" table="T_ProjectsVolunteers">
         <key column="ProjectID" />
         <many-to-many class="Volunteer" column="VolunteerID" /> 
      </bag>
   </class>
The relation table looks like this:
Code:
CREATE TABLE [dbo].[T_ProjectsVolunteers] (
   [VolunteerID] [uniqueidentifier] NOT NULL ,
   [ProjectID] [uniqueidentifier] NOT NULL ,
   [AllowViewMasterData] [bit] NOT NULL 
)
As you can see, there is an additional flag (AllowViewMasterData) that is set in combination of ProjectID and VolunteerID. Now my question is how can I access this flag with nhibernate (how can I model it my code and config file)? Do I have to write an own association class? 
Thanks
Markus