I have my classes set to lazy="true" but all my collections (sets) are being populated anyway. Everything else appears to be working fine, so I think I have my mapping files correct, but here they are.
Code:
<class name="Ideaca.NHTest.Entities.BusinessAssociate, Ideaca.NHTest.Entities" table="business_associate" lazy="true">
<id name="Id" column="ba_id" type="Int32" unsaved-value="0">
<generator class="native" />
</id>
<property name="FirstName" column="f_name" type="String(50)"/>
<many-to-one name="BAType" class="Ideaca.NHTest.Entities.BAType, Ideaca.NHTest.Entities" column="ba_type_id" insert="true" update="true"/>
<set name="AddressesNH" table="ba_address">
<key column="ba_id"/>
<many-to-many class="Ideaca.NHTest.Entities.Address, Ideaca.NHTest.Entities" column="address_id"/>
</set>
</class>
All my properties are virtual (I read another post that this was required). I have also tried putting lazy="true" on the 'set'
Thanks