79790562

Date: 2025-10-14 19:44:33
Score: 1
Natty:
Report link

You cannot hide individual Spring Data repository methods, all interface methods are public by design. Spring Data creates a proxy that implements your repository interface. The methods it implements must be part of that public contract. A method in an interface is effectively public for consumers (and Spring Data won’t create a query for a private interface method anyway). So annotating a private method with @Query won’t be picked up.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anck8