HIBERNATE JBoss.org
 |  Register  | 
     
News 
About 
   Feature List 
   Road Map 
Documentation 
   Related Projects 
   External Documentation 
Download 
Forum & Mailinglists 
Support & Training 
JIRA Issue Tracking
Wiki Community Area


Hibernate Public Training Courses


Get Hibernate in Action eBook!


JavaWorld 2003 Finalist


Jolt Award 2004 Winner
      
Documentation > Community Area > Some explanations on lazy loading > Comments > Make sure you enable proxy or lazy for referenced class


Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
Subject: Make sure you enable proxy or lazy for referenced class 02 Jul 2004, 13:33
From: chlu Replies: 0, Views: 278
 
The one-to-one reference is only loaded lazily if the object used as the
class has a proxy or is lazy (proxy is the object itself). I didn't read
it the first time, so it didn't work out as it should.

Just use

<class name="C" lazy="true">

or

<class name="C" proxy="CProxy">

and it will do.
 

Thread:
 Make sure you enable proxy or lazy for referenced ... 
 chlu   02 Jul 2004, 13:33 
      

coWiki