These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: ISession.Get() will never return an unitialized proxy
PostPosted: Sun Mar 09, 2008 8:34 pm 
Beginner
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]


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.