title: Save entity with NULL value using CrudRepositoty in Spring
body: <p>Using Spring Boot, Cassandra, org.springframework.data.repository.CrudRepository for save entity.</p>
  
  <p>I have next entity:</p>
  
  <pre><code>@Table("user")
  public class User implements Serializable {
      @PrimaryKey
      private UUID id;
      private String name;
  ...
  }
  </code></pre>
  
  <p>Repository:</p>
  
  <pre><code>public interface UserRepository extends CrudRepository&lt;User, UUID&gt; {}
  </code></pre>
  
  <p>Saving entity:</p>
  
  <pre><code>user.setName(null);
  userRepository.save(user);
  </code></pre>
  
  <p>CrudRepository doesn't write attribute with NULL value to database because</p>
  
  <pre><code>if (value != null) {
                      log.debug(String.format("Adding insert.value [%s] - [%s]", prop.getColumnName().toCql(), value));
                      insert.value(prop.getColumnName().toCql(), value);
                  }
  </code></pre>
  
  <p>in MappingCassandraConverter.java</p>
  
  <p>Are There some way to save NULL value using CrudRepository?</p>