Spring Data JPA/Boot: findBy ... or
<p>I want to write a finder method in my repository to find an object based on one field OR another one while supplying one parameter like:</p>

<pre><code>@RepositoryDefinition(domainClass = Person.class, idClass = Long.class)
public interface PersonRepository extends CrudRepository&lt;Person, Long&gt; {

    List&lt;Person&gt; findAllByIdOrAnotherId(someId);
}
</code></pre>

<p>How can I do that without using SQL?</p>