Hibernate version: 2.0 GA
Under what conditions will NHibernate create proxies? I have lazy set to false yet I always get a proxy for Invoice.
Code:
<hibernate-mapping
      xmlns="urn:nhibernate-mapping-2.2"
      default-cascade="none"
      auto-import="true"
      assembly="
MC.NHibernate.Collections.Tests"
      namespace="
MC.NHibernate.Collections.Tests.Entities"
      default-access="field.camelcase-underscore"
      >
  <class  name="Invoice"
            table="INVOICE">
    <id name="RecordId">
      <generator class="native" />
    </id>
    <property name = "number"
                  column = "NUMBER" length="255"
              />
    <property name = "description"
              column = "DESCRIPTION" length="255"
              />
    <property name = "date"
                  column = "INV_DATE"
              />
    <!-- m 4 -->
    <bag name="lineItems" inverse="true" lazy="false" table="LINE_ITEM" cascade="all-delete-orphan" 
        collection-type="MC.NHibernate.Collections.PersistentBagType`1[
            [MC.NHibernate.Collections.Tests.Entities.LineItem, MC.NHibernate.Collections.Tests]], MC.NHibernate.Collections">
      <key column="Inv_RecordId"/>
      <one-to-many class="MC.NHibernate.Collections.Tests.Entities.LineItem"/>
    </bag>
  </class>