title: How to refresh entity after "manual" backend query update
body: <p>Let's suppose to have this situation:</p>
  <p>We have Spring Data configured in the standard way, there is a <code>Respository</code> object, an <code>Entity</code> object and all works well.</p>
  <p>Now for some complex motivations I have to use <code>EntityManager</code> (or <code>JdbcTemplate</code>, whatever is at a lower level than Spring Data) directly to update the table associated to my <code>Entity</code>, with a native SQL query. So, I'm not using <code>Entity</code> object, but simply doing a database update manually on the table I use as entity (it's more correct to say the table from which I get values, see next rows).</p>
  <p>The reason is that I had to bind my spring-data <code>Entity</code> to a MySQL view that makes UNION of multiple tables, not directly to the table I need to update.</p>
  <p>What happens is:</p>
  <p>In a functional test, I call the &quot;manual&quot; update method (on table from which the MySQL view is created) as previously described (through entity-manager) and if I make a simple <code>Respository.findOne(objectId)</code>, I get the old object (not updated one). I have to call <code>Entitymanager.refresh(object)</code> to get the updated object.</p>
  <p>Why?</p>
  <p>Is there a way to &quot;synchronize&quot; (out of the box) objects (or force some refresh) in spring-data? Or am I asking for a miracle?
  I'm not ironical, but maybe I'm not so expert, maybe (or probably) is my ignorance. If so please explain me why and (if you want) share some advanced knowledge about this amazing framework.</p>