title: How to actualize entity in Spring JPA? Actualize or create new one?
body: <p>I'm wondering what is best practice to update JPA entity in Spring project - update original entity or create new? I see these two approaches:</p>
  
  <ol>
  <li>Use original - Actualize necessary fields in original entity and save this updated entity back to the repository.</li>
  <li>Use copy - manually create new instance of entity, set all field from original entity (+ updated fields) into new entity and save the entity back to the repository.</li>
  </ol>
  
  <p>What approach do you use / is recommended? And why?</p>