Hi...
I am sathish.I have the problem while updating an object using
session.update(ob) in the different session.
I save an item which has id,name,color and address properties. i save this item using session.save(item). It stored in the table with id=1
In different session i created an item and set the id=1 and set the name.
Then i used session.update(item). It is updated the new name in the table but other propereties updates as null values. How can i restrict that only avialble values are updated so that other values are safe.
Can we do the updation without loading the object.
Thank you ,
Sathish.G
|