title: Can I create a DeepCopy of an Java Object/Entity with Mapstruct?
body: <p>I have a JPA entity (but this question is interesting in general) that consists of multiple child classes (aggregation).</p>
  
  <p>I need to create a new entry in the DB that is 90% identical to the existing one (a few business values and of course the IDs need to be different).</p>
  
  <p>As we need mapstruct for mapping between entity and TO I was thinking "Can mapstruct do this for me?" After Creating a deep copy I could simply update the remaining fields and persist the object.</p>
  
  <p>Writing a copy constructor by hand is error prone (as newly added fields could be forgotten), a generator aproach would be much appreciated.</p>