Re: [Hibernate] composite key update

2005-09-19 Thread Max Rydahl Andersen
read the docs which states primary keys are immutable and if that is not enough go to the user forum... /max Hi, The scenario: I have a table with a compostite primary key, say cloumn X+Y. My query is, how can i update column Y (i wish to change the primary key but change only one column) u

[Hibernate] composite key update

2005-09-19 Thread narender reddy
Hi, The scenario: I have a table with a compostite primary key, say cloumn X+Y. My query is, how can i update column Y (i wish to change the primary key but change only one column) using hibernate 2.1.7 Basic SQL would be, update tableName set Y=? where X=? and Y=?. Any light on this please... T