-->
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.  [ 3 posts ] 
Author Message
 Post subject: when will hibernate return a proxy not a real table object
PostPosted: Wed Apr 25, 2007 12:31 am 
Newbie

Joined: Mon Nov 28, 2005 1:41 am
Posts: 3
for example----criteria.uniqueResult()

sometimes it returns a real table object, such a Employee
sometimes it returns a proxy

I want to know when it will return a proxy and when it will not

thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 25, 2007 2:17 am 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Hi newme,

When ever you have specified lazy =true or class as proxy then it will return Proxy object for you

_________________
Dharmendra Pandey


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 25, 2007 8:58 am 
Newbie

Joined: Mon Nov 28, 2005 1:41 am
Posts: 3
thanks a lot

After doing a lot of debug things, I knew when hibernate will return a proxy to me now.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.