posted 15 years ago
So, isn't updating a primary key somewhat against the whole idea of a primary key?
Shouldn't it just be a simple load of the record (object), evict the object, delete a clone of the object, set the primary keys of the evicted record to zero, (which will save the record with new a new primary/compound key), and then save the entity, which will force the creation of a new primary key/compound key set.
-Cameron McKenzie