title: How to transport data via REST but not perist them to JPA datasource?
body: <p>I have a REST API with Spring and <code>@RestController</code> and an entity with a JPA repository. Is there a way to transport data (fields) via REST but not persist the corresponding data to the database?</p>
  
  <p>I tried to use <code>@Transient</code> for the specific field, which works for persistence but not for transport. The data will not be marshalled/unmarshalled and thus omitted during transport.</p>
  
  <p>Any ideas?</p>