title: Selecting from Multiple Tables in Spring Data
body: <p>I need to write a select query fetching data from multiple tables in Spring Data Repository layer. I know we can use @Query to write custom queries, but that returns value from a single table only?</p>
  
  <pre><code>SELECT s.service_id, s.name, us.rating_id 
  FROM services s, 
       ratings r, 
       user_services us
  where 
      us.service_id = s.service_id and
      us.rating_id = r.rating_id and
      us.user_id= ?;
  </code></pre>