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

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: chlu (02 Jul 2004, 13:33) Replies: 0, Views: 42013
Subject: Make sure you enable proxy or lazy for referenced class
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.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]