Open derkoe opened 2 years ago
Application compiles when using org.springframework.data.jpa.repository.JpaRepository like this:
org.springframework.data.jpa.repository.JpaRepository
package com.example; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface TestEntityRepository extends JpaRepository<TestEntity, Integer> { }
An error is shown:
Unable to implement Repository method: TestEntityRepository.flush(). No possible implementations found.
https://github.com/derkoe/micronaut-spring-jpa-issue
3.2.4
A workaround is to override the flush method and define it like:
@DataMethod(interceptor = FlushInterceptor.class) void flush();
Expected Behavior
Application compiles when using
org.springframework.data.jpa.repository.JpaRepository
like this:Actual Behaviour
An error is shown:
Steps To Reproduce
Environment Information
Example Application
https://github.com/derkoe/micronaut-spring-jpa-issue
Version
3.2.4