title: Spring Data find by inner relation
body: <p>My question is about the way Spring data is generating the query .</p>
  
  <p>I have two entities  : Message , Sender</p>
  
  <pre><code>@Entity
  public class Message extends BaseEntity {
   @ManyToOne
   protected Account sender;
  }
  </code></pre>
  
  <p>I have a call to </p>
  
  <pre><code>messageDao.findBySenderId(Long id)
  </code></pre>
  
  <p>The result is query all columns from the two two table with a <code>left outer join</code> between the two tables , but my expectation was simply to just select from message table <code>where sender_id =</code> the passed value.</p>
  
  <p>So is there a way to force selecting only the first message entity and not to join with the other one? I want simple condition in the where clause 
  by using findBy not custom @Query </p>