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.
-Cameron McKenzie
_________________ Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?" http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials
|