title: How to use part of composite key in JPA repository methods?
body: <p>I have a class with embedded Id </p>
  
  <pre><code>@Entity
  @Table(name="account_table")
  Public class AccountLink {
  
  @EmbeddedId
  private AccountLinkKey accountLinkKey;
  //Rest of code
  }
  
  @Embeddable
  Public class AccountLinkKey {
  //Rest code here
  
  @ColumnName(name="i am hiding")
  private String segAccount;
  
  @ColumnName(name="i am hiding")
  private String secAccount;
  //Rest of code
  }
  </code></pre>
  
  <p>Now in my repository I want to have a method to search only by <code>secAccount</code>, so how should I write <code>findBy..</code></p>
  
  <pre><code>List&lt;AccountLink&gt; findBy...(String secAccount); 
  </code></pre>
  
  <p>I tried <code>findByAccountLinkKeySecAccount(String secAccount)</code> but still no success.</p>