graphql-filter-java
graphql-filter-java copied to clipboard
Compabible with Spring Boot 3.1 / jakarta
Hello,
i saw in your example that you used Spring Boot 2. Is it your lbrary also compatible with v3? I am using v3 and received the current error:
RuntimeException@14876 "java.lang.RuntimeException: java.lang.AbstractMethodError: Receiver class com.intuit.graphql.filter.visitors.JpaSpecificationExpressionVisitor$1 does not define or inherit an implementation of the resolved method 'abstract jakarta.persistence.criteria.Predicate toPredicate(jakarta.persistence.criteria.Root, jakarta.persistence.criteria.CriteriaQuery, jakarta.persistence.criteria.CriteriaBuilder)' of interface org.springframework.data.jpa.domain.Specification."
Spring Boot 3 require Java17. With newer java versions the javax.persistence namespace is renmaed to jakarta.persistence. You can checkout the project and change the values in pom file. Then you have to fix the namespace issue and everything is fine.
Bump. Thanks!