title: Get "Invalid derived query" error all over the place in our Spring Data JpaRepository interfaces in STS 3.1
body: <p>We have implemented our repositories exactly as demonstrated in the Spring Data documentation. Everything was fine until we upgraded from STS 2.9 to STS 3.1.  All attempts to get these errors to disappear have failed, and in some cases they don't even make sense! They don't match any properties in either the interface or the entities used!</p>
  
  <p>Here is an example:</p>
  
  <pre><code>public interface CreditNotesRepository extends JpaRepository&lt;CreditNotes, Long&gt; {
  
      CreditNotes findCurrentCreditNotes(Long shipmentDetailId);
  }
  </code></pre>
  
  <p>The <code>findCurrentCreditNotes</code> is a named query in our entity.  This code executes perfectly fine.</p>
  
  <pre><code>@NamedQueries({
      @NamedQuery(name = "CreditNotes.getCount", query = "SELECT COUNT(f) FROM CreditNotes f"),
      @NamedQuery(name = "CreditNotes.findCurrentCreditNotes", query =
          "SELECT creditNotes FROM CreditNotes creditNotes"
          + " WHERE creditNotes.shipmentDetail.shipmentDetailId = ?1 "
          + " AND creditNotes.notesSeqNumber =  (SELECT max(creditNotes2.notesSeqNumber) FROM CreditNotes creditNotes2"
          + " WHERE creditNotes.shipmentDetail.shipmentDetailId = creditNotes2.shipmentDetail.shipmentDetailId)")
  })
  </code></pre>
  
  <p>And the error we get:</p>
  
  <pre><code>Invalid derived query! No property find found for type ca.cole.freight.model.CreditNotes
  </code></pre>
  
  <p>Although this is just a flag (doesn't affect compilation), it is annoying and confusing.  Can anyone shed some light on this?  And explain it to me like I'm 6 years old!  ;)</p>