|
If I have a collection of PVH objects in my class, PV, and the mapping specifies that LAZY fetching is used for the collection, shouldn't the following HQL for the PV class result in the PV object having a collection of PVH proxy objects?
list = (session.CreateQuery("from PropertyValue pv")).List();
Instead, the PV object's PVH collection is null. Am I missing something?
DETAILS:
public class PV
{
public virtual IList<PVH> PVHValues { ... }
}
public class PVH
{
public virtual PropertyValue PVParent { ... }
}
<class name="PV, Domain" table="dbo.tblPV">
<bag name="PVHValues">
<key column="PVID"/>
<one-to-many class="PVH, Domain"/>
</bag>
</class>
<class name="PVH, Domain" table="dbo.tblPVH">
<many-to-one
name="PVParent"
column="PVID"
class="PV, Domain"
/>
</class>
_________________ metazone
|