title: Spring Data IGNORE optional parameter in query method
body: <p>I want to write some query methods in repository layer. This method must  ignore null parameters. For example:</p>
  
  <pre><code>List&lt;Foo&gt; findByBarAndGoo(Bar barParam, @optional Goo gooParam);
  </code></pre>
  
  <p>This method must be return Foo by this condition:</p>
  
  <pre><code>bar == barParam &amp;&amp; goo == gooParam;
  </code></pre>
  
  <p>if gooParam not null. if gooParam was null then condition change to:</p>
  
  <pre><code>bar == barParam;
  </code></pre>
  
  <p>Is there any solution? Can someone help me?</p>