syril
syril

Reputation: 271

how to update composite primary key values using hibernate?

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

Answers (1)

Sudhir Mane
Sudhir Mane

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

Related Questions