title: JPA No property findAll found for type Product
body: <p>My repository：</p>
  
  <pre><code>@Repository
  public interface ProductDao extends JpaRepository&lt;Product,Long&gt;,JpaSpecificationExecutor&lt;Product&gt; {
  
     Page&lt;Product&gt; findAll(Specification&lt;Product&gt; specification,Pageable pageable);
  }
  </code></pre>
  
  <p>My service:</p>
  
  <pre><code>    ...  
  @Autowired
          public ProductServiceImpl(ProductRepository repository, ProductDao productDao, ProductImgService productImgService, ProductClassService productClassService, AuthUserService authUserService, DeviceService deviceService){
          super(repository);
              this.productDao = productDao;
              this.productImgService = productImgService;
              this.productClassService = productClassService;
              this.authUserService = authUserService;
              this.deviceService = deviceService;
          }
  
          final
          ProductDao productDao; 
  ...
  </code></pre>
  
  <p>I use it in the service like this:</p>
  
  <pre><code>midResult = productDao.findAll((root, criteriaQuery, criteriaBuilder) -&gt; {
              List&lt;Predicate&gt; list = new ArrayList&lt;&gt;();
              list.add(criteriaBuilder.equal(root.get("ouId").as(Long.class),product.getOuId()));
              if(product.getPclassId()!=null)
                  list.add(criteriaBuilder.equal(root.get("pclassId").as(Long.class),product.getPclassId()));
              if(product.getProductStatus()!=null)
                  list.add(criteriaBuilder.equal(root.get("productStatus").as(Integer.class),product.getProductStatus()));
              if(product.getProductName()!=null)
                  list.add(criteriaBuilder.equal(root.get("productName").as(String.class),product.getProductName()));
              if(product.getCreator()!=null)
                  list.add(criteriaBuilder.equal(root.get("creator").as(Integer.class),product.getCreator()));
              list.add(criteriaBuilder.between(root.get("createTimeTmp").as(Long.class),Long.parseLong(finalStarttsp),Long.parseLong(finalEndtsp)));
              Predicate[] p = new Predicate[list.size()];
              criteriaQuery.where(criteriaBuilder.and(list.toArray(p)));
              return criteriaQuery.getRestriction();
          }, pageable);
  </code></pre>
  
  <p>The Product Class definition is good .</p>
  
  <p>And when I run this code , error turned out to be :</p>
  
  <pre><code>Caused by: org.springframework.data.mapping.PropertyReferenceException: No property findAll found for type Product!
      at org.springframework.data.mapping.PropertyPath.&lt;init&gt;(PropertyPath.java:77) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
      at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:329) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
      at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:309) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
      at org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:272) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
      at org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:243) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
      at org.springframework.data.repository.query.parser.Part.&lt;init&gt;(Part.java:76) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
      at org.springframework.data.repository.query.parser.PartTree$OrPart.&lt;init&gt;(PartTree.java:247) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
      at org.springframework.data.repository.query.parser.PartTree$Predicate.buildTree(PartTree.java:398) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
      at org.springframework.data.repository.query.parser.PartTree$Predicate.&lt;init&gt;(PartTree.java:378) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
      at org.springframework.data.repository.query.parser.PartTree.&lt;init&gt;(PartTree.java:86) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
      at org.springframework.data.mybatis.repository.query.PartTreeMybatisQuery.&lt;init&gt;(PartTreeMybatisQuery.java:81) ~[spring-data-mybatis-1.0.17.RELEASE.jar:na]
      at org.springframework.data.mybatis.repository.query.MybatisQueryLookupStrategy$CreateQueryLookupStrategy.resolveQuery(MybatisQueryLookupStrategy.java:71) ~[spring-data-mybatis-1.0.17.RELEASE.jar:na]
      at org.springframework.data.mybatis.repository.query.MybatisQueryLookupStrategy$CreateIfNotFoundQueryLookupStrategy.resolveQuery(MybatisQueryLookupStrategy.java:120) ~[spring-data-mybatis-1.0.17.RELEASE.jar:na]
      at org.springframework.data.mybatis.repository.query.MybatisQueryLookupStrategy$AbstractQueryLookupStrategy.resolveQuery(MybatisQueryLookupStrategy.java:50) ~[spring-data-mybatis-1.0.17.RELEASE.jar:na]
      at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.&lt;init&gt;(RepositoryFactorySupport.java:436) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
      at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:221) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
      at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.initAndReturn(RepositoryFactoryBeanSupport.java:277) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
      at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:263) ~[spring-data-commons-1.13.6.RELEASE.jar:na]
      at org.springframework.data.mybatis.repository.support.MybatisRepositoryFactoryBean.afterPropertiesSet(MybatisRepositoryFactoryBean.java:64) ~[spring-data-mybatis-1.0.17.RELEASE.jar:na]
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
  </code></pre>
  
  <p>I'm using springboot and there's no config like @EnableJpaRepositories 
  But it don't seems to be necessary cause other repository is good .</p>