Beginner |
 |
Joined: Mon Feb 04, 2008 1:48 pm Posts: 30
|
It seems that I need to add the attribute fetch="join" to all associated one-to-one and many-to-one objects otherwise I get an error "Creating a proxy instance failed"
Is this the only way to user ISession.Get<>()? I need to fetch all my associated objects? Is there a better way?
Hibernate version:1.2.0.GA
Mapping documents:<many-to-one name="Company" class="Company" column="CompanyID" not-null="true" access="nosetter.camelcase-underscore"/>
[b]Session.Get<SiteProduct>(siteProductID.Value, LockMode.None);b]
|
|