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.  [ 2 posts ] 
Author Message
 Post subject: Lazy Proxy and ObjectNotFound problem
PostPosted: Fri May 08, 2009 7:12 am 
Newbie

Joined: Thu Jun 22, 2006 12:51 pm
Posts: 10
I Have a mapping with lazy enabled.

when I do session.Load( type, id ); it was return a proxy something like
CProxyTypeMyType_NHibernate_ProxyINHibernateProxy_System_Runtime_SerializationISerializable2

EVEN IF OBJECT IS NOT EXISTS.

so i push this proxy somewhere and erorr ObjectNotFound thrown in unexpected place.

Can i force load object without proxy creation by way different to set lazy=false in mapping?


Top
 Profile  
 
 Post subject: Re: Lazy Proxy and ObjectNotFound problem
PostPosted: Fri May 08, 2009 8:59 am 
Beginner
Beginner

Joined: Wed Oct 03, 2007 4:10 am
Posts: 46
if you use session.get(JJJ.class, id) then you will get the initialized object.

_________________
Alexandru BARBAT


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

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.