using spring data jpa for one function.