Spring data JPA query with varying params
<p>I´m trying to find necessary elements of the table by several parameters like </p>

<pre><code>List &lt;Person&gt; findByLastname(String lastname);
</code></pre>

<p>But what if some of this parameters will be added/deleted in a future? How to make some parameters optional using Spring Data JPA, something like this</p>

<pre><code>List &lt;Person&gt; findByOptionalLastnameAndOptionalFirstNameAnd...(String lastname, String firstname,...);
</code></pre>