graphql-filter-java icon indicating copy to clipboard operation
graphql-filter-java copied to clipboard

Compabible with Spring Boot 3.1 / jakarta

Open JOOmsH opened this issue 2 years ago • 2 comments

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."

JOOmsH avatar Sep 24 '23 17:09 JOOmsH

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.

Harlekin06 avatar Oct 18 '23 11:10 Harlekin06

Bump. Thanks!

GrantGochnauer avatar Apr 01 '24 14:04 GrantGochnauer