Expert |
|
Joined: Tue May 13, 2008 3:42 pm Posts: 919 Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
|
Deleting a previous record, and saving it again as a new record isn't too tough.
You can just load the record, evict it - which gives you the POJO with all of its information, delete it, and then re-save it. It'll go in with a new Id.
Just an idea.
_________________ Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?" http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials
|
|