Hi there,
I am dealing with a simple one-to-one association from A to B
Whenever I am loading A, B gets loaded as well.
I can't get lazy loading of B to work.
What I am doing is:
<class name="A" >
<id name="id">
<generator class="native"/>
</id>
<one-to-one name="b"
class="B"
cascade="all"
/>
...some properties...
</class>
<class name="B" lazy="true">
<id name="id">
<generator class="foreign">
<param name="property">a</param>
</generator>
</id>
<one-to-one
name="a"
class="A"
constrained="true"/>
...some properties...
</class>
|