i am using a User:Table which has a child table UserRole:Table
I have inserted a record in User, two child records for the same UserRole using a test client. But while updating the the same user, i gave only one record for the child table.
But i can one record is updating and another is still there. Can you please tell me how can i solve the problem.
First read(load) two records of UserRole ,have one record(which you needed to update) and make the other record null and set into the User object.Do a save of User object atlast.
By this way the unwanted record of user role will not exist.
Hope this helps.
To get a wish, you need a genie. To get a genie, you need a lamp. To get a lamp, you need a tiny ad:
Gift giving made easy with the permaculture playing cards