title: No converter found capable of converting from type org.bson.types.ObjectId to type int
body: <p>I am using Spring data and mongodb to get all <code>Products</code> using this function:</p>
  
  <pre><code>@Repository
  public class ProductDao  {
  
      @Autowired
      private MongoOperations mongoOperations;
      public List&lt;Product&gt; getAll() {
              return mongoOperations.findAll(Product.class);
          }
  }
  </code></pre>
  
  <p><strong>My product class:</strong></p>
  
  <pre><code>@Document(collection = Product.COLLECTION_NAME)
  public class Product implements Serializable {
  
      public Product() {
      }
  
      public static final String COLLECTION_NAME = "product";
  
      @Id
      private String _id;
      private String name;
      private DateTime date_time;
      private int fk_properties;
      private List&lt;Integer&gt; fk_parts;
  }
  </code></pre>
  
  <p><strong>Error:</strong> </p>
  
  <pre><code>    org.springframework.core.convert.ConverterNotFoundException: 
  No converter found capable of converting from type org.bson.types.ObjectId to type int
  </code></pre>
  
  <p>How to fix it?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I do have <code>spring-core-4.1.0.RELEASE.jar</code>  in lib folder which suppose to include required converter.</p>
  
  <p><strong>UPDATE 2:</strong>
  Document</p>
  
  <pre><code>{ 
      "_id" : ObjectId("5449567cdf97f277c50d1ce2"), 
      "name" : "2014 ISF", 
      "auction_start" : ISODate("2014-12-08T12:00:00.000+0200"), 
      "auction_end" : ISODate("2014-12-08T14:00:00.000+0200"), 
      "listed" : "F", 
      "fk_product_property" : ObjectId("5229567cdf97f277c50d1ce2"), 
      "fk_parts" : [
          ObjectId("5339567cdf97f277c50d1ce2"), 
          ObjectId("5349567cdf97f277c50d1ce2")
      ]
  }
  </code></pre>