title: spring data mongodb "id" field mapping
body: <p>I have a document with an array field with</p>
  
  <pre><code>"chapters": [
    { "id" : "14031871223912313", ...}
    ...
    ]
  </code></pre>
  
  <p>I would like to query return the id's with Spring Data's MongoTemplate using the following:</p>
  
  <pre><code>class Chapter {
   private String id;
   public String getId() {
          return id;
      } 
  }
  </code></pre>
  
  <p>This way the id is not populated. I have tried using the different mapping options with @Field described here <a href="http://docs.spring.io/spring-data/mongodb/docs/current/reference/html/#mapping.conventions.id-field" rel="nofollow">http://docs.spring.io/spring-data/mongodb/docs/current/reference/html/#mapping.conventions.id-field</a></p>
  
  <p>What am I doing wrong? I know I can always to back to mongo java driver, but I thought this should work.</p>
  
  <p>Thanks in advance for any help.</p>