title: Spring mongotemplate query result with subDocuments
body: <p>A document in <code>productChanges</code> collection looks like below.</p>
  
  <pre><code>{
      "_id" : NumberLong(9780876590034),
      "isbn" : NumberLong(9780876590034),
      "updDtime" : ISODate("2016-06-08T14:02:29.044Z"),
      "Audit" : {
          "LastProcCntrlNo" : 100192211,
          "UpdDtime" : ISODate("2016-06-08T14:02:29.044Z"),
          "AddDtime" : ISODate("2016-06-08T14:02:29.044Z")
      } 
  }
  </code></pre>
  
  <p>I have my <code>ProductChanges.java</code> class</p>
  
  <pre><code>public class ProductChanges {
       Long isbn;
       Date updDtime;
       Audit audit;
  
       // getters &amp; setters
  }
  </code></pre>
  
  <p>I use <code>mongoTemplate</code> to query the DB, but I can't get <code>Audit</code> object populated.</p>
  
  <pre><code>// query the DB
  List&lt;ProductChanges&gt; productChanges = mongoTemplate.find(query, ProductChanges.class, "productChanges");
  </code></pre>
  
  <p>This should be straightforward. Do I need to annotate my <code>Audit</code> object? Am I missing something trivial?</p>
  
  <p>Spring Data MongoDB documentation was not helpful in finding an answer to this problem.</p>