title: How to use hibernate @DynamicUpdate with spring data jpa?
body: <p>I am using spring data-jpa. I want update only one column.</p>
  
  <p>My repository is;</p>
  
  <pre><code>public interface UserRepository extends JpaRepository&lt;User,Long&gt; {
  }
  </code></pre>
  
  <p>my Service is;</p>
  
  <pre><code>public User save(User user) {
      return userRepository.save(user);
  }
  </code></pre>
  
  <p>my Entity;</p>
  
  <pre><code>@Entity
  @DynamicUpdate(true)
  public class User implements Serializable {
      // column definitions, etc.
  }
  </code></pre>
  
  <p>How can I update only one column in <code>User</code>?</p>