title: Spring boot using foreign key in crudRepository
body: <p>I have 3 entities  </p>
  
  <ul>
  <li><code>CarWash</code> (<code>Wash</code> set)</li>
  <li><code>Wash</code> (<code>car_wash_id</code> FK to <code>CarWash</code>)</li>
  <li><code>WashComment</code>(<code>wash_id</code> FK to <code>Wash</code>)</li>
  </ul>
  
  <p>Is there any way to write this query</p>
  
  <pre><code>   @Query(value="select * from wash_comment where wash_comment.wash_id=(select wash_id from wash where wash.car_wash_id=2", nativeQuery=true))
  List&lt;WashComment&gt; findAllByCarWashId(CarWash carWash)
  </code></pre>
  
  <p>without using nativeQuery?</p>