Lets suppose I have a parent child relationship
1 Parent -> n Children
If I want to edit the Parent, I would not load all his children (I just want to set some fields).
Since Parent.getChildren() == null, does Hibernate kills all the relationship when I update the object?
Suppose also that 1 Parent has 1,000,000 children, and I want to add one clhid to that count. Do I have to load all the 1,000,000 children in teh collection, add 1, ad then update?
I mean, if u need to do this, it can become quite expensive dealing with collections.
|