Home > Back-end >  Spring data jpa specifications and projections error
Spring data jpa specifications and projections error

Time:11-19

I am getting below error when I use (https://github.com/pramoth/specification-with-projection)

Caused By: org.springframework.data.mapping.PropertyReferenceException: No property findOne found for type <Entity class>

any idea why its throwing this exception?

CodePudding user response:

Looks like you are using incorrect Spring Data version.

This library works with the old versions only. The last changes to support new Spring Data were merged, but not still published.

You can try to use the last version from here https://mvnrepository.com/artifact/th.co.geniustree.springdata.jpa/specification-with-projections

Maybe it will work.

Also I have a fork of the library that supports the last Spring Boot versions and Java 17. It can be temporarily used before the last version of the library will be published

https://github.com/v-ladynev/specification-with-projection-embeded

  • Related