Hi,
I have an object and related hibernate mapping file, with lots of sets (Lot of association to other tables).
There is generic search page in our requirement and so when we search, we load the master table/Object with all the related tables/objects data.
From this search page, I do to my functionality and my question is that, even though I got this tree structure of object, I change only 2 objects and I would like to update them only.
Right now when I give
Code:
Session.update(masterObject),
it update master and also all the child tables.
What is the approach to you would take to update only 2 targeted tables in the tree structure.
How do I do using hibernate.
Is there a way to say that you got the tree of object and you would like to update only some of the tables of that tree structure.