title: Spring Data JPA - How to find by param with underscore
body: <p>Here is my model:</p>
  
  <pre><code>public class Log {
  
      @Id
      private String id;
      private String project;
      private String test_no;
  
      // Constructor, getters and setters.
  }
  </code></pre>
  
  <p>How can I add a <code>findBy</code> query which allows me to finding an element by its <code>test_no</code> value? I have tried those method headers but they don't work:</p>
  
  <pre><code>List&lt;Log&gt; findByTest_No(String test_no);
  </code></pre>
  
  <p>The error that my STS reports is: Invalid delivery query! No property test found in type Log!</p>
  
  <pre><code>List&lt;Log&gt; findByTest_no(String test_no);
  </code></pre>
  
  <p>The error that my STS reports is: Invalid delivery query! No property test found in type Log!</p>
  
  <pre><code>List&lt;Log&gt; findByTestno(String test_no);
  </code></pre>
  
  <p>The error that my STS reports is: Invalid derived query! No property testno found for type Log! Did you mean 'test_no'?</p>