title: How to do select with where clause using JPA CrudRepository
body: <p>Hello I would like create a method to execute the follow query</p>
  
  <pre><code>SELECT * FROM Customer where customer.customerpremium=true;
  </code></pre>
  
  <p>I tired implement this method but not working.</p>
  
  <pre><code>public interface CustomerRepository extends CrudRepository&lt;Customer, String&gt;{
  
      Iterable&lt;Customer&gt; findByCustomerPremium(boolean customerpremium);
  }
  </code></pre>
  
  <p>follow my Entity</p>
  
  <pre><code>@Entity
  @Table(name = "customer")
  public class Customer implements Serializable {
  
      private static final long serialVersionUID = 1L;
  
      @Id
      @GeneratedValue(strategy= GenerationType.AUTO)
      @Column(name = "customerid")
      private Integer customerid;
  
      @NotEmpty
      @Column(name = "customername")
      private String customername;
  
      @NotEmpty
      @Column(name = "customeremail")
      private String customeremail;
  
      @Column(name = "customerpremium")
      private boolean customerpremium;
  
      /**gets and sets*/
  }
  </code></pre>