title: Jpa recursive query
body: <p>consider the following schema </p>
  
  <pre><code>@Entity
  Class employee{
  
  @OneToMany()
  List&lt;employee&gt; manaagedEmps;
  @OneToOne
  employee manager;
  
  }
  </code></pre>
  
  <p>how to write a query that get all the managed employee for a certain manager , direct(the list of managedEmps) and indirect (managed by managed employee).</p>