title: ExampleMatcher to filet data from database using Java
body: <p>I have a database of templates :</p>
  <p>Fields : <code>Name, Identifier, Type, Version</code></p>
  <p>Now, I have a filter query, wherein from the UI, I would get values of Type and Version.</p>
  <p>Now, I have to get those templates from the DB that matches the values given from the UI.</p>
  <p>How Can I do it using ExampleMatcher</p>
  <p>Trials :</p>
  <p>When I use <code>ExampleMatcher.matching()</code>, It fetches all the templates that have the type OR version values that matches those given by UI.
  But, I want those templates that have the type AND version values that matches those given by UI.
  Note the use of OR and AND in the above scenario.</p>
  <p>When I use <code>ExampleMatcher.matchingAll()</code>, It doesn't fetch any template as the values given for Name and Identifier is null from UI and those values are not there in any of the template.</p>
  <p>How can I implement Filtering here?</p>