Hi all,
I am having some pretty severe problems with lazy loading. Basically, none of my collections are being loaded lazily when speciified. Several of my classes have several collections. Here is an example of my mappings, other association mappings in the classes are omitted for clarity:
The 'one-to-many' class:
Code:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" default-access="field">
<class name="Case,Api" table="Case">
<id name="caseID" column="caseID" type="Int32" unsaved-value="0">
<generator class="native" />
</id>
<set name="issues" inverse="true" lazy="true" cascade="all-delete-orphan">
<key column="caseID" />
<one-to-many class="Issue, Api" />
</set>
</hibernate-mapping>
The many-to-one class:
Code:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" default-access="field">
<class name="Issue,Api" table="Issue">
<id name="caseIssueID" column="caseIssueID" type="Int32" unsaved-value="0">
<generator class="native"/>
</id>
<many-to-one name="Case" column="caseID" class="Case,Api" />
</hibernate-mapping>
This is how I map most of my collections. As I said, none of them are being lazy loaded. Any help would be much appreciated as I wil be running into performance issues if I can't get this fixed. I am using version 0.8.2. Outer join fetching is set to false in my web.config file as default.
Many thanks,
Tony