Beginner |
 |
Joined: Tue Jan 18, 2005 6:44 pm Posts: 39
|
Hi,
I was curious about the unique key constraint for the column attribute in the mapping file. I have a multiple column unique key constraint and a primary key which is sequence generated.
Say I create a new instance for a row with values for the multiple column key to be the same as a preexisting row in the database and I call the saveOrUpdate function on it. In this case it should do an update is what I assumed would happen but I am wrong. Could someone please throw light on what really happens? I noticed that it always generates an insert statement rather than an update.
Jeevak
|
|