title: Update statement in Spring Data Rest with @Query throws EntityRepresentationModel not found
body: <p>I'm facing some strange issue with my latest project.</p>
  <p>I am using hibernate and spring data jpa + controller out of the box coming from @RepositoryRestResource.</p>
  <p>as it is mentioned in the Spring <a href="https://docs.spring.io/spring-data/rest/docs/current/reference/html/#reference" rel="nofollow noreferrer">documentation</a></p>
  <p>you can have delete and update methods when you annotate your method with @Query and @Modyfing.</p>
  <p>Well, i want to have a custom query which is updating an entities by a parent Id.</p>
  <p>For example if we have :</p>
  <pre><code>{
  @Entity
  User
  
  @OneToMany
  private Set&lt;Book&gt; books;
  
  }
  </code></pre>
  <p>and as well the bookrepository:</p>
  <pre><code>{
  @RepositoryRestResource
  public interface BookRepository extends CrudRepository&lt;BookEntity, Long&gt;{
  
  @Modifying
  @Query(UPDATE books SET books.price=0 where user_id=:userId&quot;,nativeQuery=true)
  void updateBookPriceByUserId(@Param(&quot;userId&quot;) Long Id)
  
  }
  </code></pre>
  <p>}
  have in mind that i have the other classes implemented, that above is a pseudo code for the relation.</p>
  <p>i want to update them by the user id.</p>
  <p>When i reach the endpoint through postman, with @Param long id it says:</p>
  <blockquote>
  <p>ResourceNotFoundException: EntityRepresentationModel not found! at
  org.springframework.data.rest.webmvc</p>
  </blockquote>
  <p>Any ideas, guys?</p>
  <p><a href="https://i.stack.imgur.com/MYzv2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MYzv2.png" alt="enter image description here" /></a></p>