title: How to query for boolean property with Spring CrudRepository?
body: <p>I'm using Spring <code>CrudRepository</code> for database queries. How can I create a method signature (not writing SQL select statement myself) for a boolean property?</p>
  
  <p>The following does not work:</p>
  
  <pre><code>class MyEntity {
         private boolean active;
  }
  
  
  interface MyEntityRepository implements CrudRepository&lt;MyEntity, Long&gt; {
     List&lt;MyEntity&gt; findActive(); //or also: findNotActive();
  }
  </code></pre>