title: A findById operation on the child entity in the 'One to many mapping' scenario returns recursive child entities. Need solution
body: <p>I have 2 entities with me. JobOfferEntity and JobApplicationEntity. JobOfferEntity has one to many mapping with the JobApplicationEntity. Below are the entities :- </p>
  
  <pre><code>public class JobOfferEntity {
  
  @JsonManagedReference
      @OneToMany(mappedBy = "relatedJobOffer",fetch = FetchType.LAZY)
      private List&lt;JobApplicationEntity&gt; jobApplications = new ArrayList&lt;&gt;();
  
  }
  
  public class JobApplicationEntity {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(name = "app_id")
      private long applicationId;
  
  @JsonBackReference
      @ManyToOne(fetch = FetchType.LAZY)
      @JoinColumn(name = "JOB_OFFER",updatable = false)
      private JobOfferEntity relatedJobOffer;
  }
  </code></pre>
  
  <p>I am trying to fetch the job application on the basis of applicationId;</p>
  
  <pre><code>JobApplicationEntity jobApplicationEntity = this.jobApplnRepo.findById(appId).orElseThrow(() -&gt; new DataNotFoundException(""));
  </code></pre>
  
  <p>But this operation returns the job application entity , however the problem is it returns the child entity JobOfferEntity and again the job apllication entity embedded inside the Job Offer entity recursively . Please find below json </p>
  
  <pre><code>{
      "jobId": 0,
      "applicationId": 1,
      "candidateEmail": "Lalit.mishra@gmail.com",
      "resumeTxt": "Sample resume",
      "applicationStatus": "APPLIED",
      "relatedJobOffer": {
          "jobId": 1,
          "jobTitle": "Amruta  dev",
          "jobDesc": "Sample C++ scientist",
          "contactPerson": "Basho",
          "createdDate": "2019-03-03",
          "modifiedDate": "2019-03-03",
          "jobOfferStatus": "ACTIVE",
          "jobApplications": [
              {
                  "applicationId": 1,
                  "candidateEmail": "Lalit.mishra@gmail.com",
                  "resumeTxt": "Sample resume",
                  "applicationStatus": "APPLIED"
              }
          ]
      }
  }
  </code></pre>
  
  <p>As mentioned above I only need the related job offer but I dont want the related job applications in the related job offers again recursively.</p>
  
  <p>Could you please recommend me any solution?</p>