title: Spring JPA: PropertyReferenceException: No property findAll found for type
body: <p>I've searched for hours on this issue but cannot find one that matches my situation exactly and has a solution.</p>
  
  <p>I have an existing Cassandra database but intend to migrate to MongoDB in the near future. I'm writing a Spring Rest API with Spring Data JPA to use the Cassandra DB but want to make sure that I can easily switch to Mongo without much pain in the future.</p>
  
  <pre class="lang-java prettyprint-override"><code>@Entity
  @Table("stb") 
  public class NetworkDevice {
      @Id
      @PrimaryKeyColumn(name = "deviceid", type = PrimaryKeyType.PARTITIONED)
      private String deviceid;
  // remaining fields/getters/setters/etc omitted
  </code></pre>
  
  <p>The common NetworkDeviceRepository</p>
  
  <pre class="lang-java prettyprint-override"><code>public interface NetworkDeviceRepository {
      NetworkDevice findByDeviceid(String deviceid);
  }
  </code></pre>
  
  <p>The Cassandra Repository</p>
  
  <pre class="lang-java prettyprint-override"><code>public interface NetworkDeviceCassandraRepository extends NetworkDeviceRepository, CassandraRepository&lt;NetworkDevice, String&gt;{}
  </code></pre>
  
  <p>The Mongo Repository</p>
  
  <pre class="lang-java prettyprint-override"><code>public interface NetworkDeviceMongoRepository extends NetworkDeviceRepository, MongoRepository&lt;NetworkDevice, String&gt; {}
  </code></pre>
  
  <p>When the project starts I end up with the following error</p>
  
  <pre><code>Invocation of init method failed; nested exception is org.springframework.data.mapping.PropertyReferenceException: No property findAll found for type NetworkDevice!
  </code></pre>
  
  <p>It appears as though Spring is getting confused and looking for <code>CrudRepository</code> method names as fields on my <code>NetworkDevice</code> object, but that makes absolutely no sense to me and nothing I've tried (for hours) affects the issue. </p>
  
  <p>Any help would be greatly appreciated, thanks</p>