Hi,
I have a table where one column is primary key, other two columns are references to other two tables primary key's. The fourth column is a rank column.
My task is to update the rank for a person .Here rank is unique for a person so, when i update the rank for a person from 2 to 1, the person already having rank 1 should be updated to 2.
I tried to use cascadeType.SAVE_UPDATE.
Using this, i could only update the person from 2 to 1 , but unable to update
the person having rank 1 to 2.
I am using hibernate annotations.
Please Help me..
Thank you.
|