title: How to deep copy a Hibernate entity while using a newly generated entity identifier
body: <p>I'm using a relational DB using a single column pk with a few nested tables.</p>
  <p>I need to add a simple archiving to my project. The archiving only happens when the application reaches a particular state, so what I was hoping to do was copy my existing hibernate object into a new instance where the new instance would be saved with a new ID while leaving the existing object intact.</p>
  <p>I can't seem to figure out how to copy the existing object into a new instance without manually having to set every single new instance field.</p>
  <p>Does anybody know of a simple way of doing this?</p>