title: Java Srping nested exception is java.lang.StackOverflowError
body: <p>I have some entity classes and try to get all data from db, but I got the nested exception problem. Please see details below:
  the Worker entity:</p>
  
  <pre><code>   Worker{
          @Id
          private Long id;
  
          @Transient
          private List&lt;WorkerDepartment&gt; workerDepartments;
  
          @Transient
          private List&lt;WorkerDepartmentPosition&gt; workerDepartmentPositions;
  
          @Transient
          private List&lt;WorkerAdjustmentBonus&gt; workerAdjustmentBonus;
      }
  </code></pre>
  
  <p>WorkerDepartment entity</p>
  
  <pre><code>    WorkerDepartment{
          @Id
          private Long id;
  
          @ManyToOne
          @JsonBackReference(value = "worker")
          @JoinColumn(name = "worker_id")
          private worker worker;
  
      }
  </code></pre>
  
  <p>WorkerDepartmentPosition entity </p>
  
  <pre><code>    WorkerDepartmentPosition{
          @Id
          private Long id;
  
          @Column(name = "worker_id")
          private Long workerId;
      }
  </code></pre>
  
  <p>WorkerBonus</p>
  
  <pre><code>    WorkerBonus{
          @Id
          private Long id;
  
          @ManyToOne
          @JsonBackReference(value = "worker")
          @JoinColumn(name = "worker_id")
          private worker worker;
  
          @ManyToOne
          @JoinColumn(name = "payment_id")
          private WorkerPayment employeePayment;
  
          @Column(name = "bonus")
          private Double bonus;
      }
  </code></pre>
  
  <p>I try to get all worker and the response data is </p>
  
  <pre><code>{"status":"SUCCESS","data":[have full data],"message":"successfully done"}{"status":"ERROR","message":"Handler dispatch failed; nested exception is java.lang.StackOverflowError"}
  </code></pre>
  
  <p>Please advise me.</p>