You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And you then try to use this repository with the extension function of findByIdOrNull, you'll find that the @Cacheable annotation is ignored.
This is due to the fact that the findByIdOrNull will proxy the request to the interface method of findById(Object) instead of findById(String).
As the first one doesn't have any annotation in place, the annotation on the overridden method is never used.
I'm wondering if making the extension an inline extension would already fix the problem (but I didn't try that).