spring-projects / spring-projects/spring-data-commons

Provide simple way of capturing repository invocation and its executing target.

Open
#3,336 3 comments 3 reactions 1 assignee View on GitHub

@christophstrobl is already working on this.

Since Aug 4, 2025.

for: team-attention type: enhancement
Dominant language
Java
Stars
838
Forks
730
PR merge metrics
No merged PRs in 30d

Description

Currently there is no simple way for users to figure out which method is actually called via the RepositoryMethodInvoker since the class does not offer any kind of logging.

We should consider either adding straight forward logging statements (trace maybe) or enhancing RepositoryMethodInvocationListener.RepositoryMethodInvocation to include information, like the fragment type, about the target method.

The logger might be easier to understand as it does not require additional setup. RepositoryMethodInvocationListener is not well documented nor trivial to configure requiring a BeanPostProcessor.

Knowing the configuration we could also consider logging a report containing the method mappings once at startup.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.