rwitzel / CouchRepository

Spring Data repositories for CouchDB
Apache License 2.0
17 stars 8 forks source link

Exist not found! #1

Closed Magicperf closed 5 years ago

Magicperf commented 5 years ago

Description:

An attempt was made to call the method com.github.rwitzel.couchrepository.api.CouchDbCrudRepository.exists(Ljava/io/Serializable;)Z but it does not exist. Its class, com.github.rwitzel.couchrepository.api.CouchDbCrudRepository, is available

rwitzel commented 5 years ago

Hi Magic! How did you get this error?

Magicperf commented 5 years ago

I set it up from scratch using Spring Boot 2.1. Just copied your code with my own logic and when trying to run in tomcat 9, i get that error during initialization

rwitzel commented 5 years ago

Could you tell me the Spring Data JPA version you are using?

mueller-jens commented 5 years ago

We are also use actual version of spring boot (2.0.8.RELEASE) this provides spring-data-comons: 2.0.13.Release. here the api has changed. The method signature has changed to boolean existsById(ID id). There are also changes in the find method signatures

chrisinmtown commented 5 years ago

Spring boot release version is up to 2.1.6.RELEASE, I guess the "exists-method-not-found" problem would affect it equally, is there any news here?

mueller-jens commented 5 years ago

@chrisinmtown it is because the segnature of some methoda has changed in spring-jpa-data i have changed the it and requested a pull request https://github.com/rwitzel/CouchRepository/pull/2 by rwitzel. That is in wait status since some month.

rwitzel commented 5 years ago

Thank you for the reminder! Please note my comment at the PR.

rwitzel commented 5 years ago

Fixed via #2 , thanks to @mueller-jens