MongoDb not saving Java POJO part of a spring application <p>I have the following Java Pojo part of an application I am making:</p> <pre><code>@Document public class Resume implements ResumePlan,Serializable { private static final long serialVersionUID = -5332235643191283709L; @Id private String id; @Autowired(required=false) private Objective objective; @Autowired private PersonalDetails personalDetails; @Autowired private Skills skills; @Autowired(required=false) private Experience experience; @Autowired private Education education; @Autowired(required=false) private References references; @Autowired(required=false) private Publications publications; } </code></pre> <p>I am saving it by the following code:</p> <pre><code>mongoOperations.insert(resume); </code></pre> <p>When I check on the backend in the mongodb console: following is getting stored:</p> <blockquote> <p>db.resume.find(); { "_id" : "test@abc.com+919876543210", "_class" : "com.springmyresume.resume.Resume" }</p> </blockquote> <p>It is not storing the rest of the bean objects like PersonalDetails etc..</p> <p>Can someone tell me what I am doing wrong here.</p> <p><em>It is solved. I made the following changes. 1) Removed @Autowired annotation 2) Added @DBRef annotation With the @Autowired annotation the field objects were not getting saved. I don't know why this is the behaviour.</em></p>