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. |