title: Same ouput repeats many times when I use one-to-one mapping
body: <p>I'm just starting to learn spring-boot-jpa. 
      I tried using one-to-one mapping in my program and when I fetch the output using Getmapping I get same data repeated multiple times. 
      I'm not sure what the problem is with the code.</p>
  
  <p>One to One parent relationship</p>
  
  <pre><code>@OneToOne(mappedBy = "question", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
      private Options options;
  </code></pre>
  
  <p>One to One Child relationship       </p>
  
  <pre><code>@OneToOne (cascade = CascadeType.ALL, fetch = FetchType.LAZY)
      @JoinColumn(name = "questionId")
      private Question question;
  </code></pre>
  
  <p>Below is the Controller Class</p>
  
  <pre><code>@RestController
  public class QuizController {
      List&lt;Question&gt; question = new ArrayList&lt;Question&gt;();
  
      @Autowired
      QuestionRepo questionRepo;
  
  
      @Autowired
      OptionsRepo optionsRepo;
  
      @GetMapping("/question")
      public List&lt;Question&gt; getQues() {
           return questionRepo.findAll();
      }
  
  
      @PostMapping("/question")
      public void setQues(@RequestParam String ques, String choice1, String choice2, String choice3, String choice4) {
          Question setQues = new Question();
          setQues.setQuestion(ques);
          Options setOp = new Options();
          setOp.setOption1(choice1);
          setOp.setOption2(choice2);
          setOp.setOption3(choice3);
          setOp.setOption4(choice4);
  
          setQues.setOptions(setOp);
          setOp.setQuestion(setQues);
          questionRepo.save(setQues);
  </code></pre>
  
  <p>This is the output I'm getting, same options repeating multiple times,</p>
  
  <pre><code>[{"questionId":1,"options":{"option1":"Red","option2":"Black","option3":"Yellow","option4":"Green","question":{"questionId":1,"options":{"option1":"Red","option2":"Black","option3":"Yellow","option4":"Green"}]
  </code></pre>