Reputation: 271
I have one table having composite primary key of four fileds like userId,firstname,lastname,password and if the user allowed to change these four values, based on which condition can i update these values in UserData table using hibernate
Upvotes: 3
Views: 2801
Reputation: 306
As You are updating composite primary key, the only way I can see is delete the existing record & insert the new record.
Upvotes: 1