title: Spring Data JPA - how to set transient fields after retrieval
body: <p>After an entity is fetched using the <code>JpaRepository</code> methods of Spring Data JPA, e.g. <code>findOne</code>, <code>findBy...</code>, etc., I was wondering what would be the best way to automatically execute some custom code, say to initialize some transient fields.</p>
  
  <p>In other words, suppose I have a User entity with a <code>fullName</code> transient field, which should be set as a concatenation of <code>firstName</code> and <code>lastName</code> after fetching from the database, what should I do?</p>