title: How to write a select query in Spring Data Jpa that accepts four combinations of parameters
body: <p>I am trying to display results when the user search for several combinations, the options he can search by - </p>
  
  <blockquote>
    <ol>
    <li>country</li>
    <li>state </li>
    <li>district</li>
    <li>zipCode</li>
    </ol>
  </blockquote>
  
  <p>example combinations he can search are (country,state), (country,district), (state,zipCode) etc..</p>
  
  <p>I am using Spring Data Jpa for my queries and pagination as well. </p>
  
  <p>I am new to Spring Jpa, Any help will be appreciated. </p>
  
  <p>Thank you!</p>