I am looking for a way to overload several queries from my jpa repository. 
for example i want to have the "regular" :    public Player findPlayerById(Long Id);
but also : 
 @Lock(LockModeType.PESSIMISTIC_WRITE)
    public Player findPlayerById(Long Id);
I found this: How to add custom method to Spring Data JPA but i don't think its relevant for my case. I thought about creating PlayerRepositoryPessimestic with the locked annotation.
Is there a way to use the same repository?
 
     
    