-
How to avoid child updates in hibernate (1 messages)
- Posted by: umar ali
- Posted on: February 12 2007 08:07 EST
Hi All! Whenever, there is a change in parent object in hibernate, child object gets updated. due to this when there were 258 updates to parent, 447 updates were fired. I'm using many to one bi-directional association and a bag. Can somebody help me find out what should i do to avoid it. ThanksThreaded Messages (1)
- Use Cascade Option by Tarun Arora on February 12 2007 23:59 EST
-
Use Cascade Option[ Go to top ]
- Posted by: Tarun Arora
- Posted on: February 12 2007 23:59 EST
- in response to umar ali
Pls make use of Cascade option in the bi-directional relationships. In ur case make use of cascade="none". there are 6 or 7 more options..jst hav a luk at then in hibernate documentation. Thanks