title: How to update only specific field with spring jpa repository?
body: <p>I have a below Student entity and I want to update only not null fields when I call CrudRepository save method. For example;</p>
  
  <pre><code>Student student = new Student();
  student.setName("test");
  student.setNumber("32323");
  studentRepository.save(student); 
  </code></pre>
  
  <p>When I call save method It also updates address field to null value. What I want to do is "if it has null value then don't update". Is there any way to do this?</p>
  
  <pre><code>@Entity
  @Table(name = "student")
  public class Student implements Serializable{
  
      @Id
      @Column
      private String name;
  
      @Column
      private String number;
  
      @Column
      private String address;
      ....
  }
  </code></pre>