title: updating boolean value in spring data jpa using @Query, with hibernate
body: <p>I have spring-data and hibernate configured and running. I can save records using spring-data but for some reason I am not able to run query that will update all Boolean fields in a table.</p>
  
  <p>I tried this:</p>
  
  <pre><code>@Query("update Content v set v.published = false where v.division = :division and v.section = :section")
  void unPublishContent(@Param("division") String division, 
                           @Param("section") String section);
  </code></pre>
  
  <p>I also tried this:</p>
  
  <pre><code> @Query("update Content v set v.published = 0 where v.division = :division and v.section = :section")
  void unPublishContent(@Param("division") String division, 
                           @Param("section") String section);
  </code></pre>
  
  <p>Parameters division and section are coming true but no change on the table.</p>
  
  <p>p.s. I am also using mysql database.</p>