Discussions

General J2EE: How to avoid child updates in hibernate

  1. How to avoid child updates in hibernate (1 messages)

    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. Thanks

    Threaded Messages (1)

  2. Use Cascade Option[ Go to top ]

    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