title: Search with Spring Data JPA
body: <p>I have a domain object <code>Item</code>:
  Item fields: <code>a</code>, <code>b</code>, <code>c</code>
  It has a lot more fields in reality.</p>
  
  <p>I know I can create methods like:</p>
  
  <ul>
  <li><p><code>findByAAndB(...)</code></p></li>
  <li><p>Use <code>@Query(SELECT ... WHERE ...)</code> on my custom find method</p></li>
  </ul>
  
  <p>But I still wonder if there is a better solution: What is the easiest to query the <code>items</code> table given that I may have a bunch of fields to query for at the same time?</p>
  
  <p>If I have a method as shown below, is there a way that automatically maps the fields that are say <code>!= null</code> into a <code>SELECT</code>?</p>
  
  <ul>
  <li><code>findBy(Item prototype)</code></li>
  </ul>