title: Deserialized document from mongo missing one field. Using Spring Data Mongo
body: <p>I have a Mongo collection that has documents that look like the following.  In reality there are many other fields, but alternateIds is unique in its structure and is a problem.</p>
  
  <pre><code>{
      "_id": 99999,
      "alternateIds": {
          "id": [{
              "id": "999",
              "idSpace": "SPACE1"
          }]
      }
  }
  </code></pre>
  
  <p>I am using Spring Data Mongo to get the document into a POJO as follows.  </p>
  
  <pre><code>MongoOperations mongoOperations = mongoInstance.getMongoOperations("myMongoDb");
  
  MongoMyDocument myDocument = mongoOperations.findOne(
      new Query(Criteria.where("_id").is(Long.parseLong(idUnderTest))),
      MongoMyDocument.class, "myMongoCollection"
  );
  </code></pre>
  
  <p>The classes for receiving the document as are follows.  Again, the actual POJO has many other fields, but all the other fields are getting populated fine, so I've excluded them for the sake of simplicity.</p>
  
  <pre><code>public class MongoMyDocument {
      private Long id;
      private MongoAlternateIdSegment alternateIds;
  
      public Long getId() {
          return id;
      }
      public void setId(Long id) {
          this.id = id;
      }
      public MongoAlternateIdSegment getAlternateIds() {
          return alternateIds;
      }
      public void setAlternateIds(MongoAlternateIdSegment alternateIds) {
          this.alternateIds = alternateIds;
      }
  }
  
  public class MongoAlternateIdSegment {
      private List&lt;MongoIdSegment&gt; id;
  
      public List&lt;MongoIdSegment&gt; getId() {
          return id;
      }
  
      public void setId(List&lt;MongoIdSegment&gt; id) {
          this.id = id;
      }
  }
  
  public class MongoIdSegment {
      private String id;
      private String idSpace;
  
      public String getId() {
          return id;
      }
      public void setId(String id) {
          this.id = id;
      }
      public String getIdSpace() {
          return idSpace;
      }
      public void setIdSpace(String idSpace) {
          this.idSpace = idSpace;
      }
  }
  </code></pre>
  
  <p>When I run the code, the myDocument object gets populated properly with all the values from the mongo document, except for field alternateIds.  This field is null.  Any thoughts on what I'm doing wrong here.  Using 1.10.9 RELEASE for the Spring Data Mongo version.</p>