| Author |
Hibernate Collection
|
tanaka ryouichi
Greenhorn
Joined: Sep 24, 2004
Posts: 2
|
|
Hello, I have lots of objects mapped to hibernate. One object has <many-to-one> relation with cascade=all. And referenced object has <many-to-one> that has tons of objects to lookup and so on. For deletion, that behavior is what I want, delete top object, cascade the effect to all children. But, when I'm updating few field on the object, load() will get all the associated object issuing 100's of SQL that I don't need (lazy init is on so they will get only ids, but still tons of join sql). So, I'm going with "Select new TopObject( )...." query. So it won't try to get all association. But when I'm updating with the changes, how can I associate the ID I already have and change the only field value I want to update without resolving all the association? I tried load( ), but it will try to resolve all the association. Could someone point me to the right direction?
|
 |
 |
|
|
subject: Hibernate Collection
|
|
|