I have this mapping
Code:
<hibernate-mapping>
<class name="com.rgdsft.hibernate.core.models.DBContainerGraphic" lazy="false">
<id name="id" type="long">
<generator class="native"/>
</id>
<list name="containables" access="field" lazy = "false">
<key column="ContainerID" not-null="true"/>
<list-index column="sortOrder"/>
<one-to-many class="com.rgdsft.hibernate.core.models.DBContainableGraphic"/>
</list>
</class>
</hibernate-mapping>
As you can see, in the class tag I have lazy="false". I figured that this would disable lazy loading for everything as the documentation implies. But then I got a lazy loading exception. So I had to set lazy="false' explicitely on the list itself. Now I do not get the lazy exception.
Did I misunderstand the class level lazy="false' setting??