title: Can I combine AND and OR conditions
body: <p>I am using the below method to query using Spring Data JPA.</p>
  
  <pre><code>findByUpdatedGreaterThanAndFromEmailOrToEmailInOrderByUpdatedAsc(final long updated, final String email, final String to);
  </code></pre>
  
  <p>The query is always passes because of the OR condition.</p>
  
  <p>My intention was  findBy(<strong>UpdatedGreaterThan</strong>)And(<strong>FromEmailOrToEmailIn</strong>)OrderByUpdatedAsc</p>
  
  <p>Is there anyway to do the same in Spring Data JPA.</p>