title: How do you create a Spring JPA repository findBy query using a property that contains a keyword?
body: <p>Here is a simplified example of my problem.  I have this repository and entity class.</p>
  
  <pre><code>public interface ThingRepository extends JpaRepository&lt;ThingEntity, Long&gt; {
      ThingEntity findByFooInAndBar(String fooIn, String bar);
  }
  
  @Entity
  public class ThingEntity {
      @Column(name="FOO_IN", nullable=false, length=1)
      private String fooIn;
  
      public String getFooIn() {
          return fooIn;
      }
  
      public setFooIn(String fooIn) {
          this.fooIn = fooIn;
      }
  
      /* not including bar property for brevity's sake */
  }
  </code></pre>
  
  <p>Spring is throwing the following exception.</p>
  
  <pre><code>org.springframework.data.mapping.PropertyReferenceException: No property foo found for type ThingEntity!
  </code></pre>
  
  <p>It looks like Spring is taking the method <code>findByFooInAndBar</code> and thinks that <code>foo</code> is my property name and <code>in</code> is a keyword for matching values within a collection.</p>
  
  <p>How do I get it to understand that the property name is <code>fooIn</code>, not <code>foo</code>?</p>