having a class such as (this is kotlin, but the code is very understandable):
kotlin
@Repository interface ScoresRepository : MongoRepository