Hi,
A question on lazy loading. I have three class:
Class A has one-to-many association with Class B;
cascade="save-update" inverse="false" lazy="true"
Class B is defined as a List in Class A;
Class B has one-to-many association with Class C;
cascade="save-update" inverse="false" lazy="true"
Class C is defined as a List in Class B;
So when I retrieve Class A, Class B will be retrieve also;
But Class C is not;
1) Does it mean I have to manually retrieve C then ?
2) If the chain is longer (for example, Class C has one2many with Class D), does it mean that I should not use lazy loading ?
sorry too new to this.
|