java.lang.IllegalArgumentException: Validation failed for query for method public abstract org.springframework.data.domain.Page com.zilliant.webnext.repository.CustomerRepository.findByNameOrNumber(java.lang.String,org.springframework.data.domain.Pageable)!

Stack Overflow | mentegy | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    spring data jpa @query parsing error

    Stack Overflow | 8 months ago | mentegy
    java.lang.IllegalArgumentException: Validation failed for query for method public abstract org.springframework.data.domain.Page com.zilliant.webnext.repository.CustomerRepository.findByNameOrNumber(java.lang.String,org.springframework.data.domain.Pageable)!

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Validation failed for query for method public abstract org.springframework.data.domain.Page com.zilliant.webnext.repository.CustomerRepository.findByNameOrNumber(java.lang.String,org.springframework.data.domain.Pageable)!

      at org.springframework.data.jpa.repository.query.SimpleJpaQuery.validateQuery()
    2. Spring Data JPA
      SimpleJpaQuery.<init>
      1. org.springframework.data.jpa.repository.query.SimpleJpaQuery.validateQuery(SimpleJpaQuery.java:92)[spring-data-jpa-1.9.4.RELEASE.jar:na]
      2. org.springframework.data.jpa.repository.query.SimpleJpaQuery.<init>(SimpleJpaQuery.java:62)[spring-data-jpa-1.9.4.RELEASE.jar:na]
      2 frames