title: Simple @Modifying - @Query issue Spring JPA
body: <p>I am still a bit new to the Spring framework, I just have a quick question to ask.</p>
  
  <p>I have loaded up the following query, however for some reason I am getting: </p>
  
  <blockquote>
    <p>Validation failed for query for method public abstract void</p>
  </blockquote>
  
  <p>this happens before i begin the application, if i comment it out it works just fine.</p>
  
  <p>The rest of the query work just fine</p>
  
  <p>The query in question is :</p>
  
  <pre><code>@Transactional
  @Modifying(clearAutomatically = true)
  @Query("UPDATE user u SET u.name=:name WHERE u.internalId=:internalId")
  public  void markEntryAsRead(@Param("internalId") String internalId, @Param("name") String name);
  </code></pre>
  
  <p>Just need to know if the query is done correctly </p>
  
  <p>Thanks :)</p>