| 
					
						 Hi 
 
 I am trying to map to classes together using a many to many link. 
 
 I have no problem joining the two classes together when using the <bag> tag. However when I map the two classes together using the <map> tag as I want to use and Idictionary and run into a mapping error 'Repeated column in mapping for collection'
 
 Is it possible to set nHibernate up so that the many-to-many will create a IDictionary list in the same way it would for a one-to-many
 
 My current mapping file
 
 <hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
  <class name="ClassLibrary1.ClassA, ClassLibrary1" table="ClassA">
   <id name="Id" column="Id" unsaved-value="00000000-0000-0000-0000-000000000000" access="field.camelcase">
    <generator class="NHibernate.Id.GuidGenerator" />
   </id>    
   <property name="Description" column="Description" access="field.camelcase" type="String" />
   <map name="ClassBs" table="ClassAClassB" cascade="none" lazy="true" access="field.camelcase">
    <key column="ClassAId"/>
    <index column="ClassBId" type="Guid"/>
    <many-to-many class="ClassLibrary1.ClassB, ClassLibrary1" column="ClassBId" />
   </map>
  </class>
 </hibernate-mapping>
 
 Regards
 
 Richard 
					
  
						
					 |