title: How can ignore null value in spring data?
body: <p>if deletedAt is null ignore it, like use <code>findById</code>,if not null use <code>findByIdAndDeletedAt</code>,if in more and more properties, it's a trouble.how can i do?like <code>IgnoreCase</code> custom <code>IgnoreNull</code> and <code>AllIgnoreNull</code>?</p>
  
  <pre><code>public interface AreaRepository extends CommonJpaRepository&lt;AreaEntity, Integer&gt; {
  
    AreaEntity findByIdAndDeletedAtIgnoreNull(Integer id,Date deletedAt);
   }
  </code></pre>
  
  <p>like this,</p>
  
  <pre><code>if (review.getDeletedAt() != null){
     query.addCriteria(new Criteria("deletedAt").is(review.getDeletedAt()));
  }
  </code></pre>
  
  <p>but I do not want to write this for every table,so hope to write <code>IgnoreNull</code> key word with spring data.</p>