working code with spring data jpa