title: MongoDB Spring data comparison between fields
body: <p>I'm trying to simply do a comparison between my fields but it doesn't seems to work with spring data :</p>
  
  <pre><code>query.addCriteria(Criteria.where("active").gt("limit"));
  </code></pre>
  
  <p>Active and limit are 2 fields of my collection, and I wand to display all fields that exceed the limit. This limit is different for each item so I cannot do gt(200) for example...</p>
  
  <p>There is anyway to do that ?</p>