title: MongoDB Spring Data Criteria Not operator
body: <p>I have following code to search in mongo db using spring data mongodb ( version 1.2.3.RELEASE)</p>
  
  <pre class="lang-java prettyprint-override"><code>Criteria searchCriteria = Criteria.where("NAME").is("TestName")
          .and("ID").is("TestID").not().and("Age").is("23");
  </code></pre>
  
  <p>I got following query ( without not operator )</p>
  
  <pre class="lang-javascript prettyprint-override"><code>Query: { "NAME" : "TestName" , "ID" : "TestID", "Age" : "23" }
  </code></pre>
  
  <p>I was expecting following query</p>
  
  <pre class="lang-javascript prettyprint-override"><code>Query: { "NAME" : "TestName" , "$not" : { "ID" : "TestID"}, "Age" : "23" }
  </code></pre>
  
  <p>What am i doing wrong ?
  Any help is greatly appreciated. 
  Thanks</p>